when trying to import the random module in an empty Python script, autocomplete doesn’t work and I get the following error when running the script:
Message: Methode nicht gefunden: “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 11, in , “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib_abcoll.py”_
_ line 83, in , “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\UserDict.py”_
_ line 398, in , “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\os.py”_
_ line 9, in , “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\linecache.py”_
_ line 6, in , “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\warnings.py”_
_ line 43, in , “C:\Program Files\Rhino WIP\Plug-ins\IronPython\Lib\random.py”_
_ line 1, in , “C:\Users\WS\AppData\Local\Temp\TempScript.py”_
My guess is that the uninstaller didn’t really uninstall everything. You may want to try and use the gacutil tool to see if IronPython is still installed in your system’s global assembly cache
Believe me, that is what we were always trying to do and didn’t know this was going to happen for people who installed this version of IronPython separate from Rhino. Currently I’m just trying to get your computer back in a state where Rhino’s python interpreter actually runs.
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.