Hello,
I have a standard setup script for py2exe with which I bundle PyQt-based applications into Windows .exe files.

Today I tried a simple script that uses the PyQwt module, and it doesn't seem to work. py2exe runs alright, but when I execute the .exe it creates, it dumps the following into a log file and doesn't run:

Traceback (most recent call last):
 
File "qwt_test.pyw", line 5, in <module>
 
File "zipextimporter.pyo", line 82, in load_module
 
File "PyQt4\Qwt5\__init__.pyo", line 32, in <module>
 
File "zipextimporter.pyo", line 98, in load_module
ImportError: MemoryLoadLibrary failed loading PyQt4\Qwt5\Qwt.pyd

When I look in PyQt4\Qwt5\ in the build\bdist.win32\winexe\collect-2.5 directory, Qwt.pyd is definitely there.

I can't seem to find anything useful online regarding this error. What could cause it? Thanks.

Versions: Python 2.5.2, PyQt 4.4.3, PyQwt 5.1, py2exe 0.6.9