Python Script - Cannot edit in read-only editor

Hi all,

Something strange happens when I try to set up a python 3 script on Grasshopper (Rhino 8). It shows me the following message “Cannot edit in read-only editor” and it is impossible to do anything, neither delete the existing lines, nor write new ones. The IronPython component, on the other hand, works fine.

Has anyone else had the same issue?

If you restart Rhino does it seems to make a difference?

One difference is it does not seem to have attached to Python yet. You can see in the example of my Rhino 8:

Unfortunately no. I even retried re-installing Rhino but the problem remains

So, let’s look into this closer.

Many times a Python reset might fix this. After the editor is open try this:

Then to get a good detailed report, please try this:

Close Rhino → delete %HOMEPATH%\.rhinocode → restart Rhino → run ScriptEditor and let it initialize languages → run RhinoCodeLogs and save/post the output. Note the log contains user file paths, so DM is fine if they’d rather not post publicly. Also worth getting SystemInfo, since a third-party plugin conflict is the other common cause.

That will show us where Python 3 may be failing?

Do you have a customer Python environment?