Unhandled exception. System.InvalidOperationException: GIL must always be released #2577
tarunsk1998
started this conversation in
General
Replies: 2 comments
This comment has been minimized.
This comment has been minimized.
-
Same issue - 3.9.10; also tried virtually every method I can think of to control GIL state and still get it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an dotnet application that uses pythonnet to invoke a python script.
I am facing the below issue while I am testing the application.
Error:
Unhandled exception. System.InvalidOperationException: GIL must always be released, and it must be released from the same thread that acquired it.
at Python.Runtime.Py.GILState.Finalize()
There is another error printing in the logs:
error message: The type initializer for 'Delegates' threw an exception.
I am facing this issue for both python 3.11 and 3.12 versions.
Has anyone faced this issue or help me debug this issue?
Beta Was this translation helpful? Give feedback.
All reactions