Python not working in Grasshopper

Hello!
I get an annoying error when trying to use a Python script inside Grasshopper. I’ve had it working before, but for some reason it doesn’t anymore.

  1. Language Python 3.9.10 (mcneel.pythonnet.python) is not ready or failed initialization. This simple script only makes a solid offset on a mesh. Someone on this forum helped me making it. It worked on my old computer, sadly not anymore. I’m not at all versed in python and troubleshooting this is a jungle for me. Someone know how to fix this? Thank you.

Try running the Rhino SystemInfo command and post the output here.

Give it the old “turn it off and on again”, and if the problem persists, maybe a re-install of Rhino.

Hi! For you information I did a _Reset and choose the reset to factory without any luck

Rhino 8 SR14 2024-12-10 (Rhino 8, 8.14.24345.15001, Git hash:master @ cdb74b46090a23fe242c51b288886f76467a741b)
License type: Commercial, build 2024-12-10
License details: LAN Zoo Network Node

Windows 11 (10.0.22631 SR0.0) or greater (Physical RAM: 63GB)
.NET 7.0.20

Computer platform: LAPTOP - Plugged in [100% battery remaining]

Hybrid graphics configuration.
Primary display: Intel(R) Arc™ Pro Graphics (Intel) Memory: 2GB, Driver date: 7-8-2024 (M-D-Y).
> Integrated graphics device with 4 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port
Primary OpenGL: NVIDIA RTX 2000 Ada Generation Laptop GPU (NVidia) Memory: 8GB, Driver date: 9-13-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 553.09
> Integrated accelerated graphics device (shares primary device ports)
- Video pass-through to primary display device

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
GPU Tessellation is: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 9-13-2024
Driver Version: 31.0.15.5309
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 8188 MB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.14.24345.15001
C:\Program Files\Rhino 8\Plug-ins\WebBrowser.rhp “WebBrowser”
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoScript.rhp “RhinoScript”
C:\Program Files\Rhino 8\Plug-ins\IdleProcessor.rhp “IdleProcessor”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.14.24345.15001
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.14.24345.15001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.14.24345.15001
C:\Program Files\Rhino 8\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 8.14.24345.15001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.14.24345.15001
C:\Program Files\Rhino 8\Plug-ins\Grasshopper\GrasshopperPlugin.rhp “Grasshopper” 8.14.24345.15001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.14.24345.15001
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”

We’re at SR18+ now, so maybe try updating your Rhino and see if that helps. The new script editor is quite the work-in-progress.

My version of Rhino is running in a thing called sandbox mode since I’m working for a larger company. Meaning my coworkers run the same instance of Rhino as I am, and they are not running into the same issue.

I’ve tried following this thread for a solution, Rhino Compute - Python 3.9.10 is not yet ready or failed initialization. But I’m scared of making changes with stuff I know nothing about. Also sort of hard to know if anyone actually found any solution or not.

@Linus3 Does the machine running Rhino or Rhino itself has access to internet? Run RhinoCodeLogs in rhino prompt and DM me the report. There has to be an error message there.

Hi Ehsan, yes I got this from the command.
The Laptop is on wifi yes.

Info 04/07/2025 18:19:31 [RhinoCode] Storage Site Registered: Local Drive (mcneel.eto.file)
Info 04/07/2025 18:19:31 [RhinoCode] Storage Site Registered: Rhino Files (mcneel.rhinoFiles.file)
Info 04/07/2025 18:19:31 [RhinoCode] Storage Site Registered: Web (mcneel.console.http)
Info 04/07/2025 18:19:31 [RhinoCode] Rhino3D Initialized on Windows - NETCoreApp
Info 04/07/2025 18:19:31 [RhinoCode] Platform Registered: Rhinoceros 3D @ 8.14.24345.15001 (mcneel.rhino3d.rhino)
Info 04/07/2025 18:19:31 [RhinoCode] Storage Site Registered: Rhino3D Project (mcneel.rhino3d.project)
Info 04/07/2025 18:19:31 [RhinoCode] Operating System: Microsoft Windows NT 10.0.22631.0
Info 04/07/2025 18:19:31 [RhinoCode] RhinoCode server starting on \\.\pipe\rhinocode_remotepipe_18364
Info 04/07/2025 18:20:39 [RhinoCode] Language Registered: Plain Text 1.0 (rhinocode.builtin.text)
Info 04/07/2025 18:20:39 [RhinoCode] Language Registered: JSON 1.0 (rhinocode.builtin.json)
Info 04/07/2025 18:20:39 [RhinoCode] Language Registered: Yaml 1.0 (rhinocode.builtin.yaml)
Info 04/07/2025 18:20:39 [RhinoCode] Language Registered: Git DotFile 1.0 (rhinocode.builtin.gitDotFile)
Info 04/07/2025 18:20:39 [RhinoCode] Language Loader Registered: mcneel.pythonnet.python@3.*
Info 04/07/2025 18:20:39 [RhinoCode] Language Loader Registered: mcneel.ironpython.python@2.*
Info 04/07/2025 18:20:39 [RhinoCode] Language Loader Registered: mcneel.roslyn.csharp@9.*
Info 04/07/2025 18:20:39 [RhinoCode] Language Loader Registered: mcneel.gh1.grasshopper@1.*
Info 04/07/2025 18:20:39 [RhinoCode] Language Loader Registered: mcneel.markdig.markdown@0.*

I tried using the PythionComponent i Grasshopper and ran RhinoCodelogs again after and got this:

Info 04/07/2025 18:19:31 [RhinoCode] Storage Site Registered: Local Drive (mcneel.eto.file)
Info 04/07/2025 18:19:31 [RhinoCode] Storage Site Registered: Rhino Files (mcneel.rhinoFiles.file)
Info 04/07/2025 18:19:31 [RhinoCode] Storage Site Registered: Web (mcneel.console.http)
Info 04/07/2025 18:19:31 [RhinoCode] Rhino3D Initialized on Windows - NETCoreApp
Info 04/07/2025 18:19:31 [RhinoCode] Platform Registered: Rhinoceros 3D @ 8.14.24345.15001 (mcneel.rhino3d.rhino)
Info 04/07/2025 18:19:31 [RhinoCode] Storage Site Registered: Rhino3D Project (mcneel.rhino3d.project)
Info 04/07/2025 18:19:31 [RhinoCode] Operating System: Microsoft Windows NT 10.0.22631.0
Info 04/07/2025 18:19:31 [RhinoCode] RhinoCode server starting on \\.\pipe\rhinocode_remotepipe_18364
Info 04/07/2025 18:20:39 [RhinoCode] Language Registered: Plain Text 1.0 (rhinocode.builtin.text)
Info 04/07/2025 18:20:39 [RhinoCode] Language Registered: JSON 1.0 (rhinocode.builtin.json)
Info 04/07/2025 18:20:39 [RhinoCode] Language Registered: Yaml 1.0 (rhinocode.builtin.yaml)
Info 04/07/2025 18:20:39 [RhinoCode] Language Registered: Git DotFile 1.0 (rhinocode.builtin.gitDotFile)
Info 04/07/2025 18:20:39 [RhinoCode] Language Loader Registered: mcneel.pythonnet.python@3.*
Info 04/07/2025 18:20:39 [RhinoCode] Language Loader Registered: mcneel.ironpython.python@2.*
Info 04/07/2025 18:20:39 [RhinoCode] Language Loader Registered: mcneel.roslyn.csharp@9.*
Info 04/07/2025 18:20:39 [RhinoCode] Language Loader Registered: mcneel.gh1.grasshopper@1.*
Info 04/07/2025 18:20:39 [RhinoCode] Language Loader Registered: mcneel.markdig.markdown@0.*
Info 04/07/2025 18:22:16 [RhinoCode] Language Registered: Python 3.9.10 (mcneel.pythonnet.python)
Info 04/07/2025 18:22:16 [RhinoCode] Initializing CPython 3.9.10/43 runtime
Info 04/07/2025 18:22:16 [RhinoCode] Configuring runtime@py39-rh8 for the first time on X64
Info 04/07/2025 18:22:16 [RhinoCode] Deploying CPython 3.9.10/43 runtime
Info 04/07/2025 18:22:16 [RhinoCode] Clearing exiting runtime
Info 04/07/2025 18:22:16 [RhinoCode] Successfully uninstalled existing runtime at C:\Users\104-10\.rhinocode\py39-rh8
Info 04/07/2025 18:22:19 [RhinoCode] Installing pip (get-pip)
Info 04/07/2025 18:22:19 [RhinoCode] Running process: C:\Users\104-10\.rhinocode\py39-rh8\python.exe -I get-pip.py --no-warn-script-location pip setuptools wheel
Error 04/07/2025 18:22:19 [RhinoCode] Error Initializing Python | An error occurred trying to start process 'C:\Users\104-10\.rhinocode\py39-rh8\python.exe' with working directory 'C:\Users\104-10\.rhinocode\py39-rh8'. Dette programmet er blokkert for gruppepolicy. Kontakt systemansvarlig for mer informasjon.
   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 config, Boolean setPythonHome)
   at Rhino.Runtime.Code.Languages.PythonNet.Attributes.RuntimeBinariesPackage.Deploy(CPythonRuntime runtime)
   at Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.DeployCPythonRuntime(CPythonStartupSteps startup)
   at Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.<>c__DisplayClass111_0.<InitRuntime>b__0(Access access)
   at Rhino.Runtime.Code.Languages.Runtime.Access.Run(String id, Action`1 task)
   at Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.InitRuntime(CPythonStartupSteps startup)
   at Rhino.Runtime.Code.Languages.PythonNet.CPython`1.Start()

@Linus3 Okay seems like there is an admin group policy setup that does not allow Rhino the python.exe binary that is deployed to C:\Users\104-10\.rhinocode\py39-rh8\python.exe.

Dette programmet er blokkert for gruppepolicy. Kontakt systemansvarlig for mer informasjon

Discuss this with your system admin to see if they can whitelist this directory for users.

Another option is to change the .rhinocode directory to another location that system admin is comfortable with. They can let Rhino set up the scripting environment and put all the deployed files under a different folder.

Thank you Ehsan I will speak to the IT guys about this. Hopefully they can whitelist it. If not I may have to ask you haow to change the directory to a different folder. I work in a branch of a hospital and many folder are “locked”.
I think this change happened when I got a new Laptop and they switched to Windows 11 or something.

1 Like

I am always here and feel free to tag me anytime. The guide that I linked above provides info on how to setup an alternate directory for rhinocode but please let me know if I am missing anything there. :folded_hands:

Hi again.
I can’t seem to find the RhinoCodePlugin.Rootpath at all. Am I missing something?


Run the ScriptEditor command once. This is a known Rhino oddity. The advanced options does not show the options for a plugin that is not loaded :smiley:

Hi. No matter where I create the folder I can see the same error line in the Codelogs. Now I know how to do it. So I guess I have to take it up with the IT department to get them to whitelist said folder or create some new area which I can use. Thank you Ehsan for the help. I will keep at it.

1 Like