xliotx
January 24, 2017, 6:18pm
1
Most recent Rhino WIP. with IronPython
2.7.5 (IronPython 2.7.5 (2.7.5.0) on .NET 4.0.30319.42000 (64-bit))
when “import os” in GhPython or python editor in Rhino, system will give:
Similar issues happened before:
i just dowloaded rhino 6 wip, grasshopper pyhton componen will not load “os” module. i cant figure out why. it is in located here C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib as os.py.
error:
MissingMethod Exception, Void Microsoft.Scripting.Utils.ExceptionUtils.RemoveData(System.exception, System.Object)
As a sugestion i would appreciate is it is possible to copy errors from python copmonens as a text (directly in editor)
thanks!
Just downloaded Rhino WIP and tried a couple of plug-ins I use on a daily basis. After opening the .gh file, the plug-ins throw up a red balloon with the following error message (generated by Ladybug/Honeybee Plug-in):
Solution exception:Method not found: ‘Void Microsoft.Scripting.Utils.ExceptionUtils.RemoveData(System.Exception, System.Object)’.
@xliotx , hm not able to reproduce the error over here using (6.0.17030.8011, 30.01.2017):
This is the built in editor. Do you have the os.py module listed in the location above ?
c.e
xliotx
January 31, 2017, 7:55pm
4
Yes I have. But still errors.
@xliotx , did you manually install IronPython in the past ? (If so uninstalling that might help according to the links above).
btw. sys.version
prints this over here:
2.7.5 (IronPython 2.7.5 (2.7.5.0) on .NET 4.0.30319.18063 (64-bit))
c.
xliotx
January 31, 2017, 8:44pm
6
yes.
Please refer to my original post.
Uninstalling/Reinstalling IronPython 2.7.5 doesn’t help.
stevebaer
(Steve Baer)
January 31, 2017, 10:05pm
7
Rhino 6 python does not currently work if you have a separate installation. You would beec to completely uninstall IronPython
xliotx
February 3, 2017, 3:48am
8
I did uninstall the IronPython I installed separately. I did.
Still not working.
stevebaer
(Steve Baer)
February 3, 2017, 7:34pm
9
I’m pretty sure there has to be some interference with another copy of IronPython. Have you seen Giulio’s post on this topic? Maybe that would help.
Over the last few months, we received several reports about issues with independent IronPython installations (IIPI) and Rhino. IIPI are only installations of IronPython made via MSI files, and they appear in the Control Panel like this:
[image]
It is possible to install IronPython via folder decompression, and that has no impact on Rhino.
I installed both IronPython 2.7.5 and IronPython 2.7.7 final from the IronPython website and checked for compatibility with running the _EditPythonScript e…
xliotx
February 4, 2017, 12:45am
10
No it didn’t.
I tried the method in the post, no luck.
I think my problem is even I uninstall independent IronPython, Rhino still report the errors.
Either it is a problem of Rhino, or some part of my system is wrong, which I cannot find.
stevebaer
(Steve Baer)
February 7, 2017, 4:04pm
11
I’m assuming by the another thread that this issue is resolved.
OK, lastest update:
With trying for hours for making at least one python inside rhino work, I finally found the solution.
I need to delete the folder “IronPython (814d908a-e25c-493d-97e9-ee3861957f49)” in my user folder under c:/User/xxx/app data and reinstall Rhino.
And now both Rhino 5 and Rhino 6 start to work.
I think that folder contains some info that will not update when install/uninstall IronPython or Rhino and causes these error.