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