Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Rhino 8 change Python 3.9 installation path

$
0
0

Hello,
We have updated to Rhino 8 at our company, however our coworkers can’t use the new Python 3 scripts feature. When they try it, they get the following error message:

Language Python 3.9.10 (mcnell.pythonnet.python) is not yet ready or failed initialization.

By checking the error logs, we identified that Python in Rhino is blocked by group policy (see logs below). I have talked with our IT and they mention that this is a security policy at the User folder level.

My question:

  • Is it possible to configure the installation path for .rhinocode\py39-rh8\python.exe? For example, to setup the installation at C:\ProgramData\.rhinocode\py39-rh8\.

Logs

Info {date} [RhinoCode] Initializing CPython 3.9.10/43 runtime
Info {date} [RhinoCode] Configuring runtime@py39-rh8 for the first time on X64
Info {date} [RhinoCode] Deploying CPython 3.9.10/43 runtime
Info {date} [RhinoCode] Clearing exiting runtime
Info {date} [RhinoCode] Successfully uninstalled existing runtime at C:\Users\{user}\.rhinocode\py39-rh8
Info {date} [RhinoCode] Installing pip
Info {date} [RhinoCode] Running process: C:\Users\{user}\.rhinocode\py39-rh8\python.exe get_pip.py --no-warn-script-location pip setuptools wheel
Error {date} [RhinoCode] Error Initializing Python | An error occurred trying to start process 'C:\Users\{user}\.rhinocode\py39-rh8\python.exe' with working directory 'C:\Users\{user}\.rhinocode\py39-rh8'. This program is blocked by group policy. For more information, contact your system administrator.
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at Rhino.Runtime.Code.RhinoCode.RunProcess(String filename, String args, CancellationToken token, Action`1 processConfigurator)
   at Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.RunPython(String arguments, CancellationToken token, Action`1 processConfigurator)
   at Rhino.Runtime.Code.Languages.PythonNet.Attributes.RuntimeBinariesPackage.Deploy(CPythonRuntime runtime)
   at Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.DeployCPythonRuntime(CPytho

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles