[PyQt] py2exe and QtWebKit problem

echo0101 at gmail.com echo0101 at gmail.com
Tue Sep 9 18:50:19 BST 2008

I am having the same problem using py2exe with a pyqt application with
qwebview.  Has anyone found a solution?


Original Message:


I'm trying to make an exe from a PyQt4 app that uses WebKit. But I've got
following problem :

Traceback (most recent call last):
   File "main.py", line 11, in <module>
   File "app_ui.pyc", line 172, in <module>
   File "PyQt4\QtWebKit.pyc", line 12, in <module>
   File "PyQt4\QtWebKit.pyc", line 10, in __load
ImportError: No module named QtNetwork

Here's my setup.py file :

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from distutils.core import setup
import py2exe

setup(  windows=[{"script":"main.py"}],
             "py2exe":{"includes":["sip"]}} )

Any idea on how to fix this ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080909/4d7e25f8/attachment-0001.html

More information about the PyQt mailing list