Running Python Scripts no longer works

I’m getting this error message when running Python scripts since yesterday when I installed update 6.16

---------------------------

Exception Occured

---------------------------

Message: No module named rhinoscript.application

Traceback:

  line 2, in <module>, "C:\Users\hbxma\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscriptsyntax.py"

  line 2, in <module>, "D:\Resources\Scripts\Rhino\MappingJiggler2.py"


---------------------------
OK   
---------------------------

Regular Rhino scripts work.

Hello - I’d try a repair on the Rhino installation from Windows control panel - does that help?

-Pascal

Sadly no dice, I found this thread by Mitch : Major snafu with python/rhinoscriptsyntax and a Rhino freeze but my directory contains a bunch of files.

So your folder:

“C:\Users\USERNAME\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython Scripting (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript”

has the ‘application.py’ file, is that correct?

Does it also have ‘init.py’?

-Pascal

Hi Pascal

The directory has neither of the files and the directory that I have is: C:\Users\USERNAME\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)

No “Scripting” name.

Yeah… I have one of each, the one with Scripting in the name appears to be from 6.0… So, can you tell me what folders you see in ‘lib’ if any? Are there any sub-folders inside
\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)?

-Pascal

Inside of \IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib:


Inside of \IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript:

That is weird - just as a test, try dropping these files into your lib\rhinoscript folder:

application.py (43.2 KB)
init.py|attachment (654 Bytes)

-Pascal

Well we got a new error now:

---------------------------
Exception Occured
---------------------------
Message: No module named block

Traceback:

  line 8, in <module>, "C:\Users\hbxma\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\__init__.py"

  line 2, in <module>, "C:\Users\hbxma\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscriptsyntax.py"

  line 2, in <module>, "D:\Resources\Scripts\Rhino\MappingJiggler.py"


---------------------------
OK   
---------------------------

block.py (23.1 KB) dimension.py (40.1 KB) curve.py (156.9 KB)

Did I get them all?

-Pascal

Yes! Fantastic! Thanks so much.

OK, good… but still… @stevebaer - do you know how this could happen? Some but not all files missing from
\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\

-Pascal

If you delete that folder, Rhino will repair it the next time you run Rhino.

1 Like

Thanks! I did not know that.

-Pascal