[PyQt] PyQt without X11

Andreas Pakulat apaku at gmx.de
Wed Jul 29 23:59:12 BST 2009


On 30.07.09 00:02:57, arnau wrote:
> Hello,
> 
> I was wondering if it was possible to run PyQt without a X11 server when no GUI
> is going to be used.

I think that should work, however...

> $ python
> Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47)
> [GCC 4.3.3] on linux
> >>>from PyQt4.QtGui import QApplication
> >>>from PyQt4.QtWebKit import QWebPage
> >>>QApplication([], False)
> >>>webpage = QWebPage()
> Segmentation fault
> 
> ---

...you should try with something simpler first, like creating a QProcess
instance, or a network instance. 

Could be that QWebPage does need a X11 connection...

Andreas
 
-- 
Your lucky color has faded.


More information about the PyQt mailing list