Can't import rhinoscriptsyntax.py

python

#1

All the modules are there in the right folders.
Still I get method not found.

Message: Method not found: ‘Void Microsoft.Scripting.Utils.ExceptionUtils.RemoveData(System.Exception, System.Object)’.

Traceback:
line 67, in , "C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\types.py"
line 6, in , "C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\abc.py"
line 9, in , "C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\numbers.py"
line 8, in , "C:\Users\Bogdan\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\utility.py"
line 8, in , "C:\Users\Bogdan\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\application.py"
line 8, in , "C:\Users\Bogdan\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript_init_.py"
line 2, in , "C:\Users\Bogdan\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscriptsyntax.py"
line 1, in , “C:\Users\Bogdan\AppData\Local\Temp\TempScript.py


(Steve Baer) #3

Do you have a separate installation of IronPython on your computer? That may be interfering with the version that ships with the WIP.


#4

No, I have Python 2.7.12. No Iron Python, I checked using this:


(Steve Baer) #5

I would recommend checking by using the Windows “Add/Remove Programs” feature just to make sure.

Is python working in your Rhino 5 installation?


#6

Yes! Thanks! It was in Add/Remove Programs! I uninstalled and now the problem is solved!
Python always worked on Rhino5.