So you are having trouble with PyQt -> Qprocess -> python as well as PyQt -> subprocess?
I guess I get around this somehow with the embedded interpereter, i.e. C Qapplication -> Python embedded -> PyQt -> Qprocess/subprocess That is very interesting... Brian On 12/3/08 11:36 AM, "denis" <[EMAIL PROTECTED]> wrote: Thanks Brian, oddly, the C QApplication -> C QProcess -> python subprocess works (mac 10.4.11 ppc, py 2.5.1, Qt 4.4.3, PyQt 4.4.2): QApplication app( argc, argv ); qPipe( "| python2.5 crash.py" ); -> QProcess # crash.py is just subprocess.Popen( "date" ) as posted So does C QApplication or C QProcess do the set_SA_RESTART stuff in that twistedmatrix ticket, and the pyqt QApp / QProcess not ? Also import webbrowser is ok on mac, 20592 2 May 2007 /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/webbrowser.py cheers -- denis Brian Kelley wrote: > 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: > > Import webbrowser > > A good write up of the problem as originally discovered is here: > > http://twistedmatrix.com/trac/ticket/733 > > 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. > > 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. > > Brian Kelley > >
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
