I was editing some of my python code in Rhino 5 as I always do, and then closed Rhino down. When I now try and open Rhino, then open the Python editor, Rhino crashes. Same occurs in Safe Mode.
I’m thinking that it may be related to an open python code file in the editor.
I’ve tried to rebuild the Rhino installation but I get an error when doing this (something about not finding the cab file).
Any suggestions?
An update on this -
I found the issue which was because I was trying to also install a remote debugger and had IronPyon 2.7.7 installed which must have caused a clash.
Do you know if there is an IronPython version that can be downloaded that is compatible with the version used by Rhino 5?
Since Rhino ships with a version of IronPython, you shouldn’t be installing this yourself.
It’s possible that there are conflicts with other versions that you install yourself or are installed by other applications on your system.
Hi Dale, Thanks very much for your reply.
The article was useful and stopped my Rhino crashing.
Could I extend this topic a little to get your assistance with what I’m ultimately trying to do?
I have extensive VB scripts ( most > 10,000 lines of code) which I’m converting to Python.
I’ve found that the debug engine in Rhino just isn’t up to the job when dealing with that many lines of code, and thus I started to follow the (old) articles from Steve Baer on configuring a remote debugger using Eclipse and PyDev.
With your latest help I have been able to get things joined and “working”, however I get code syntax issues from the “pydev” code when I start my debug sessions.
I suspect that their is some kind of incompatibility between Rhino and IronPython (or Pydev) code. I’m not a configuration expert and thus it’s starting to push out of my area of expertise.
The configurations I run are -
Rhino 64bit on Windows 10
IronPython 2.7.7 (using 64bit version)
Eclipse 2019-03 with PyDev installed
Can you provide any suggestions as to how I could get the remote debugging working?
I found that there is an error with using IronPythan v2.7.7 so I changed to 2.7.6 (64b)
I played around with different versions of pydev and found one that seemed to execute and not give me a code error (v5.9.2)
My only issue now appears when I start the whole debugging process, I get a windows “Server Busy” alert asking me to “Switch Programs” from Rhino. I’m assuming this is to do with how the connection occurs between Rhino and Eclipse/Pydev, but at this point I’m stuck again. Could it be a Port issue? Are there Port settings beyond ensuring pydev and the Rhino python code are specifying the same port to use?
Yes, Independent IronPython Installations are not always compatible with Rhino. At best, always remove the option “Install in the GAC”.
I think this would rather be a different topic. In the new topic, please tell exactly how you are invoking Rhino. I saw the server busy rarely, and usually there was some COM involved. Maybe @dale can tell regarding that dialog.