[Python.NET] pythonnet crashes python 39
Florin Atasiei <[email protected]> Tue, 12 Jul 2022 09:41:03 +0300
| Newsgroups | gmane.comp.python.dotnet |
|---|---|
| Message-ID | <CAB9TbsMA1+rKmQkQyCKxBYC2OtKtuKDTWv43H4b10XyF19ziTg@mail.gmail.com> |
--===============7219937309746372363== Content-Type: multipart/alternative; boundary="00000000000077095205e395f46d" --00000000000077095205e395f46d Content-Type: text/plain; charset="UTF-8" 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. --00000000000077095205e395f46d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">Hello gutlys, thanks for the good work<div dir=3D"auto"><= br></div><div dir=3D"auto"><br></div><div dir=3D"auto">I encountered a prob= lem 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.</div><div dir= =3D"auto"><br></div><div dir=3D"auto">On one od the modules I have import c= lr. When it imports that module I get Fatal Python error:take_gil: NULL tst= ate and then python crashes and also the main thread from my program.</div>= <div dir=3D"auto"><br></div><div dir=3D"auto">This is not happening on 2.5.= 2 release but with that i have other problems since is not for py39</div><d= iv dir=3D"auto"><br></div><div dir=3D"auto">If I open python 39 and do the = import clr it works. Is only happening when the import is done from a subpr= ocess.</div><div dir=3D"auto"><br></div><div dir=3D"auto">I just thought th= is can be a good info for you guys. Keep in touch.</div><div dir=3D"auto"><= br></div></div> --00000000000077095205e395f46d-- --===============7219937309746372363== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ PythonNet mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/pythonnet.python.org/ Member address: [email protected] --===============7219937309746372363==--