pythonnet crashes python 39
Hello gutlys, thanks for the good work I encountered a problem on all 3.0.0 versions. I have a small exe written in C# that opens up a python process and then puts it to execute python modules. On one od the modules I have import clr. When it imports that module I get Fatal Python error:take_gil: NULL tstate and then python crashes and also the main thread from my program. This is not happening on 2.5.2 release but with that i have other problems since is not for py39 If I open python 39 and do the import clr it works. Is only happening when the import is done from a subprocess. I just thought this can be a good info for you guys. Keep in touch.
While I am new to this list, I did find a Python 3.9 wheel here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
… in case you are suggesting that you couldn’t find a 3.9 wheel to install from.
I am not running my pythonnet scripts from a subprocess, so I can’t guarantee that would fix your issue, but it was just offered in case it helps.
Steven
From: Florin Atasiei
participants (2)
-
Florin Atasiei
-
Steven Manross