[PyQt] py2exe and Qwt Problem: ImportError: No module named QtSvg

Helvin Lui helvinlui at gmail.com
Tue Feb 9 04:13:49 GMT 2010

Hi all,

I am trying to package my PyQt app which uses PyQwt plots. py2exe seems to
generate the executable fine, but when run, the error log records this:

Traceback (most recent call last):
  File "ABM13.pyw", line 16, in <module>
  File "PyQt4\Qwt5\__init__.pyc", line 32, in <module>
  File "PyQt4\Qwt5\Qwt.pyc", line 12, in <module>
  File "PyQt4\Qwt5\Qwt.pyc", line 10, in __load
ImportError: No module named QtSvg

The PyQt4 directory is in my python path. I found these files: QtSvg.pyd and
QtSvg4.dll in:


I'm not sure if these files were what py2exe were referring to, so I copied
it into my working directory anyway, but still the same error results. I've
noticed that these two files were not in the build directory created by


I'm using PyQt4.5, and PyQwt 5.2.

Help much appreciated!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100209/4b164e96/attachment.html>

More information about the PyQt mailing list