Hi Japhy,
Here is the last 2 logs referring the error.
Thanks for your help
Info 04/03/2024 16:50:31 [RhinoCode] Language Registered: Plain Text 1.0 (rhinocode.builtin.text)
Info 04/03/2024 16:50:31 [RhinoCode] Language Registered: JSON 1.0 (rhinocode.builtin.json)
Info 04/03/2024 16:50:32 [RhinoCode] Language Loader Registered: mcneel.pythonnet.python@3.*
Info 04/03/2024 16:50:32 [RhinoCode] Language Loader Registered: mcneel.ironpython.python@2.*
Info 04/03/2024 16:50:32 [RhinoCode] Language Loader Registered: mcneel.roslyn.csharp@*.*
Info 04/03/2024 16:50:32 [RhinoCode] Language Loader Registered: mcneel.gh1.grasshopper@1.*
Info 04/03/2024 16:50:32 [RhinoCode] Language Loader Registered: mcneel.markdig.markdown@*.*
Info 04/03/2024 16:50:32 [RhinoCode] Storage Site Registered: File (mcneel.eto.file)
Info 04/03/2024 16:50:32 [RhinoCode] Storage Site Registered: Web (mcneel.eto.http)
Info 04/03/2024 16:50:32 [RhinoCode] Platform Registered: Rhinoceros 3D @ 8.4.24044.15001 (mcneel.rhino3d.rhino)
Info 04/03/2024 16:50:32 [RhinoCode] RhinoCode server starting on \\.\pipe\rhinocode_remotepipe_18988
Info 04/03/2024 16:50:32 [RhinoCode] Rhino3D Initialized on Windows - NETFramework
Info 03/04/2024 16:51:05 [RhinoCode] Using existing runtime
Info 03/04/2024 16:51:05 [RhinoCode] Creating python 3.9.10 runtime
Info 03/04/2024 16:51:05 [RhinoCode] Deploying python packages
Info 03/04/2024 16:51:05 [RhinoCode] Deploying package from "site-interop.zip"
Info 03/04/2024 16:51:05 [RhinoCode] Deploying package from "utils.zip"
Info 03/04/2024 16:51:05 [RhinoCode] Deploying package from "pylint-2.10.2-py3-none-any.whl"
Info 03/04/2024 16:51:05 [RhinoCode] Deploying package from "pyflakes-2.4.0-py2.py3-none-any.whl"
Info 03/04/2024 16:51:05 [RhinoCode] Deploying package from "pycodestyle-2.8.0-py2.py3-none-any.whl"
Info 03/04/2024 16:51:05 [RhinoCode] Deploying package from "jedi-0.18.0-py2.py3-none-any.whl"
Info 03/04/2024 16:51:05 [RhinoCode] Deploying package from "black-21.8b0-py3-none-any.whl"
Info 03/04/2024 16:51:05 [RhinoCode] Deploying package from "pywin32-302-cp39-cp39-win_amd64.whl"
Info 03/04/2024 16:51:05 [RhinoCode] Deploying package from "psutil-5.9.1-cp39-cp39-win_amd64.whl"
Info 03/04/2024 16:51:05 [RhinoCode] Saving python runtime configs
Info 03/04/2024 16:51:05 [RhinoCode] PYTHONHOME: \\?\C:\Users\Thomas.PITIOT\.rhinocode\py39-rh8
Info 03/04/2024 16:51:05 [RhinoCode] PYTHONPATH:
Info 03/04/2024 16:51:05 [RhinoCode] Loading python runtime from C:\Users\Thomas.PITIOT\.rhinocode\py39-rh8\McNeel.Python39.Runtime.dll
Info 03/04/2024 16:51:05 [RhinoCode] Engine Type: Python.Runtime.RhinoCodePythonEngine
Error 03/04/2024 16:51:06 [RhinoCode] Error Initializing Python | Error loading python engine | Une exception a été levée par la cible d'un appel.
à System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
à System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
à System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
à System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
à System.Activator.CreateInstance(Type type, Object[] args)
à Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.LoadEngine(CPythonStartupSteps startup)
à Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.LoadEngine(CPythonStartupSteps startup)
à Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.<>c__DisplayClass98_0.<InitRuntime>b__0(Access access)
à Rhino.Runtime.Code.Languages.PythonNet.CPython`1.Start()
Error 03/04/2024 16:51:06 [RhinoCode] [CPY001] Runtime failed to initialize (Python 3.9.10 (mcneel.pythonnet.python))
Error loading python engine | Une exception a été levée par la cible d'un appel.
à System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
à System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
à System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
à System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
à System.Activator.CreateInstance(Type type, Object[] args)
à Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.LoadEngine(CPythonStartupSteps startup)
à Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.LoadEngine(CPythonStartupSteps startup)
à Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.<>c__DisplayClass98_0.<InitRuntime>b__0(Access access)
à Rhino.Runtime.Code.Languages.PythonNet.CPython`1.Start()
Info 03/04/2024 16:51:06 [RhinoCode] Added Python 3.9.10 (mcneel.pythonnet.python) search path: C:\Users\Thomas.PITIOT\AppData\Roaming\McNeel\Rhinoceros\8.0\scripts
Info 03/04/2024 16:51:06 [RhinoCode] Language Registered: Python 3.9.10 (mcneel.pythonnet.python)
Info 03/04/2024 16:51:06 [RhinoCode] Using existing runtime
Info 03/04/2024 16:51:06 [RhinoCode] Creating python 2.7.12 runtime
Info 03/04/2024 16:51:06 [RhinoCode] Added IronPython 2.7.12 (mcneel.ironpython.python) search path: C:\Users\Thomas.PITIOT\AppData\Roaming\McNeel\Rhinoceros\8.0\scripts
Info 03/04/2024 16:51:06 [RhinoCode] Language Registered: IronPython 2.7.12 (mcneel.ironpython.python)
Info 03/04/2024 16:51:07 [RhinoCode] Added C# 9.0 (mcneel.roslyn.csharp) search path: C:\Users\Thomas.PITIOT\AppData\Roaming\McNeel\Rhinoceros\8.0\scripts
Info 03/04/2024 16:51:07 [RhinoCode] Language Registered: C# 9.0 (mcneel.roslyn.csharp)
Info 03/04/2024 16:51:07 [RhinoCode] Language Registered: Grasshopper 1.0 (mcneel.gh1.grasshopper)
Info 03/04/2024 16:51:07 [RhinoCode] Language Registered: Markdown 0.30.4 (mcneel.markdig.markdown)
Info 04/03/2024 16:42:52 [RhinoCode] Language Registered: Plain Text 1.0 (rhinocode.builtin.text)
Info 04/03/2024 16:42:52 [RhinoCode] Language Registered: JSON 1.0 (rhinocode.builtin.json)
Info 04/03/2024 16:42:52 [RhinoCode] Language Loader Registered: mcneel.pythonnet.python@3.*
Info 04/03/2024 16:42:52 [RhinoCode] Language Loader Registered: mcneel.ironpython.python@2.*
Info 04/03/2024 16:42:52 [RhinoCode] Language Loader Registered: mcneel.roslyn.csharp@*.*
Info 04/03/2024 16:42:52 [RhinoCode] Language Loader Registered: mcneel.gh1.grasshopper@1.*
Info 04/03/2024 16:42:52 [RhinoCode] Language Loader Registered: mcneel.markdig.markdown@*.*
Info 04/03/2024 16:42:52 [RhinoCode] Storage Site Registered: File (mcneel.eto.file)
Info 04/03/2024 16:42:52 [RhinoCode] Storage Site Registered: Web (mcneel.eto.http)
Info 04/03/2024 16:42:52 [RhinoCode] Platform Registered: Rhinoceros 3D @ 8.4.24044.15001 (mcneel.rhino3d.rhino)
Info 04/03/2024 16:42:52 [RhinoCode] RhinoCode server starting on \\.\pipe\rhinocode_remotepipe_44292
Info 04/03/2024 16:42:52 [RhinoCode] Rhino3D Initialized on Windows - NETCoreApp
Info 03/04/2024 16:43:17 [RhinoCode] Using existing runtime
Info 03/04/2024 16:43:17 [RhinoCode] Creating python 3.9.10 runtime
Info 03/04/2024 16:43:17 [RhinoCode] Deploying python packages
Info 03/04/2024 16:43:17 [RhinoCode] Deploying package from "site-interop.zip"
Info 03/04/2024 16:43:17 [RhinoCode] Deploying package from "utils.zip"
Info 03/04/2024 16:43:17 [RhinoCode] Deploying package from "pylint-2.10.2-py3-none-any.whl"
Info 03/04/2024 16:43:17 [RhinoCode] Deploying package from "pyflakes-2.4.0-py2.py3-none-any.whl"
Info 03/04/2024 16:43:17 [RhinoCode] Deploying package from "pycodestyle-2.8.0-py2.py3-none-any.whl"
Info 03/04/2024 16:43:17 [RhinoCode] Deploying package from "jedi-0.18.0-py2.py3-none-any.whl"
Info 03/04/2024 16:43:17 [RhinoCode] Deploying package from "black-21.8b0-py3-none-any.whl"
Info 03/04/2024 16:43:17 [RhinoCode] Deploying package from "pywin32-302-cp39-cp39-win_amd64.whl"
Info 03/04/2024 16:43:17 [RhinoCode] Deploying package from "psutil-5.9.1-cp39-cp39-win_amd64.whl"
Info 03/04/2024 16:43:17 [RhinoCode] Saving python runtime configs
Info 03/04/2024 16:43:17 [RhinoCode] PYTHONHOME: \\?\C:\Users\Thomas.PITIOT\.rhinocode\py39-rh8
Info 03/04/2024 16:43:17 [RhinoCode] PYTHONPATH:
Info 03/04/2024 16:43:17 [RhinoCode] Loading python runtime from C:\Users\Thomas.PITIOT\.rhinocode\py39-rh8\McNeel.Python39.Runtime.dll
Info 03/04/2024 16:43:17 [RhinoCode] Engine Type: Python.Runtime.RhinoCodePythonEngine
Error 03/04/2024 16:43:17 [RhinoCode] Error Initializing Python | Error loading python engine | Exception has been thrown by the target of an invocation.
at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
at System.Activator.CreateInstance(Type type, Object[] args)
at Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.LoadEngine(CPythonStartupSteps startup)
at Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.LoadEngine(CPythonStartupSteps startup)
at Rhino.Runtime.Code.Languages.PythonNet.CPythonRuntime.<>c__DisplayClass98_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()
Error 03/04/2024 16:43:17 [RhinoCode] [CPY001] Runtime failed to initialize (Python 3.9.10 (mcneel.pythonnet.python))
Error loading python engine | Exception has been thrown by the target of an invocation.
at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeConstructorIn
I thought that the blank PYTHONPATH was the problem looking at the logs but the log when everything goes smootly also has blank PYTHONPATH. The dll just won’t load a second time