Script Editor Python 3.9.10 initialization fails

Script editor fails to load python after resetting python runtime. None of the troubleshooting from the forums works.

Pip is failing. I’m behind a firewall.

Is there a way to fix this or to install the runtime manually
rhinocode_log.log (7.0 KB)

logfile attached

the error is in the pip failure, can you modify the firewall rules or install outside the firewall? Ehsan is limited this week and might not see this for a few days.

Error 4/23/2025 4:17:40 PM [RhinoCode] Process exited with code 1
Error 4/23/2025 4:17:40 PM [RhinoCode] Failed to install latest pip |

I have elevated privileges, but it would not extend to making changes in the firewall. Just wanted to confirm this is in fact the case to speed up the troubleshooting process with my IT team. I’ll see if I can get them to temporarily open the correct port and let you know if this solves the issue.

Thank you for the quick response!

@benjamin.moulton System security settings need to allow running python.exe binary from your %USERPROFILE%\.rhinocode path. Alternatively, IT can set up and deploy a managed .rhinocode folder somewhere else. See this guide please

I’m also having an issue with the initialization of python and it has also something to do with the installation of pip. How can I tell if it’s an issue with the firewall ?

Here are my logs if you need them :
rhinocode_33880.log (4 KB)

@Loïc2 Seems like the SSL connection is failing when pip is trying to install packages. This is usually due to security configurations in the firewall. Consult with your IT to allow access to https://pypi.org

Also use the latest Rhino version. Alternatively you can disable the internet and let Rhino setup the python environment from embedded packages instead of internet

Hi @eirannejad

We’re having the same issue here where the corporate firewall SSL/TLS inspection taints the certificate and then the online pip install fails after a few retries due to verification errors.

This leaves the editor in a disabled error state and renders it unusable, even if I just wanted to write some C# or IronPython instead of Python3…

Is there any chance to at least have an automatic fallback, where it uses the default (embedded?) stuff if the online initialization fails due to a time out?

Disabling the internet/ethernet connection or using a different managed .rhinocode folder just for having a working ScriptEditor seems kind of unreasonable to me, sorry.

Also, unfortunately, the discussion with IT to disable the firewall for certain online package repositories is a rather moot point due to their security concerns.

Looks like we’re still tied to the old Rhino Python Editor. :frowning:

@mikeJM Automatic fallback sounds like a good idea. I have improved this in Rhino wip so when python 3 is not used, the environment is not set up and script editor is usable if it fails.

I will get this fallback into Rhino soon and will report back here.

RH-88296 Python 3 to fallback to embedded packages when install from internet fails

1 Like

Awesome. Thank you!