Problem creating executable, with PyQwt
Gib Bogle
g.bogle at auckland.no.spam.ac.nz
Sun Feb 21 19:17:10 EST 2010
My student is trying to build an executable version of a program that uses PyQt
and PyQwt, on Windows XP. She has installed: Python 2.6.1, Qt 4.5.0, PyQt 4.5,
and PyQwt 5.2.0. There is a module error on running the executable produced by
py2exe. Here is the info I got from my student:
<quote>
Traceback (most recent call last):
File "ABM15.pyw", line 15, 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
If you Google this last line, you'll find that I've posted this to a forum, but
no one answered me. Someone has also had this problem before, although I think
they were using PyInstaller and not py2exe. They say that its because Qwt has a
hidden import for QtSvg. If I can turn this off, maybe it'll work, but I don't
know how.
I have downloaded py2exe and I run the attached setup.py file in my working
directory. It creates two directories: 'dist' and 'build'. An executable is
created in the 'dist' directory along with other things. When I tried running
it, it produces a log file, in which I find the error messages.
<\quote>
Perhaps someone can recognize these symptoms.
Thanks,
Gib
More information about the Python-list
mailing list