- Notifications
You must be signed in to change notification settings - Fork749
Closed
Description
Environment
- Pythonnet version: 3.0.4
- Python version: 3.13 and 3.14 alpha
- Operating System: Windows 11 64 bits
- .NET Runtime: .net 8.0
Details
Trying to initialize pythonnet with Python 3.13 or higher crashes withMissingMethodException: Failed to load symbol _PyThreadState_UncheckedGet
voidInitialize(){Runtime.PythonDLL="path_to_dll";PythonEngine.Initialize();//crash}
- StackTrace:
enPython.Runtime.Runtime.Delegates.get_Py_IsInitialized() enPython.Runtime.Runtime.Py_IsInitialized() enPython.Runtime.Runtime.<>c.<Initialize>b__32_0() enPython.Runtime.Runtime.TryUsingDll[T](Func`1op) enPython.Runtime.Runtime.Initialize(BooleaninitSigs) enPython.Runtime.PythonEngine.Initialize(IEnumerable`1args,BooleansetSysArgv,BooleaninitSigs)en Python.Runtime.PythonEngine.Initialize(BooleansetSysArgv,BooleaninitSigs)en Python.Runtime.PythonEngine.Initialize()
Metadata
Metadata
Assignees
Labels
No labels