[PyKDE] PyQT: webbrowser.open crashes

Phil Thompson phil at river-bank.demon.co.uk
Sat Oct 5 17:20:01 BST 2002


On Saturday 05 October 2002 3:54 pm, Ingo Linkweiler wrote:
> All my Qt-applications crash, when I try to do this:
>
> import webbrowser
> webbrowser.open_new("hilfe.html")
>
> Tested on many systems, all with Win2000 and IE6 as default browser
> (Python 2.2*, PyQt All versions, Qt NC)
> Sometimes it works, but most time I get a general protection fault
> caused by python.
> I get the same error when doing some os.spawn* with the iexplore.exe,
> when using other applications (notepad.exe) it seems to work.
>
> A small demo showing the problem can be found here:
> http://www.ingo-linkweiler.de/crashtest.py
> Click "? -> Help" to see the error.
> Please restart one or two times, if you do not get the error soon.
>
> Any ideas to avoid this? Perhaps a problem of threading, because I get
> similar errors when I use the module "threading" ?

This probably won't help much but it seems to work fine under Linux and KDE 
with Qt 3.0.5 - once you fix the buggy Konqueror support in webbrowser.py.

Phil




More information about the PyQt mailing list