<HTML>
<HEAD>
<TITLE>Re: [PyQt] subprocess.Popen() crash after QApplication() ?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>It’s actually way more complicated than that and I don’t think it has to do with multiple threads, just with improper signal handling. Just running normal python I can trigger this error by:<BR>
<BR>
Import webbrowser<BR>
<BR>
A good write up of the problem as originally discovered is here:<BR>
<BR>
<a href="http://twistedmatrix.com/trac/ticket/733">http://twistedmatrix.com/trac/ticket/733</a><BR>
<BR>
I have solved(?) this problem by copying over python 2.6’s subprocess module (and webbrowser.py) and importing them locally. The 2.5 version also appears to work in my embedded python interpreter that runs Qt applications. It has never worked in the standard python interpreter.<BR>
<BR>
You may think about using QProcess in your python Qt application as opposed to subprocess, I’m thinking about wrapping the subprocess API and using a QProcess underneath the hood so I can easily swap them out.<BR>
<BR>
Brian Kelley<BR>
<BR>
On 12/2/08 1:27 PM, "Giovanni Bajo" <<a href="rasky@develer.com">rasky@develer.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>On 12/2/2008 6:43 PM, Denis wrote:<BR>
> Folks,<BR>
> has anyone else seen this or is it me ?<BR>
> Thanks, cheers<BR>
<BR>
Oh yes: subprocess is absolutely useless on Mac with threading programs<BR>
(QApplication probably creates a thread behind the scenes):<BR>
<BR>
<a href="http://bugs.python.org/issue1068268">http://bugs.python.org/issue1068268</a><BR>
--<BR>
Giovanni Bajo<BR>
Develer S.r.l.<BR>
<a href="http://www.develer.com">http://www.develer.com</a><BR>
_______________________________________________<BR>
PyQt mailing list <a href="PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><BR>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>