From: Karl E. <kt...@gm...> - 2011-03-08 18:55:39
|
This simple example does not work and I am quite confused as to why. ------------- setup.py: ------------- from distutils.core import setup import py2exe from glob import glob data_files = [("Microsoft.VC90.CRT", glob(r'c:\dev\ms-visualc-runtime\*.*'))] setup(data_files=data_files, windows=['hello.py']) ------------- hello.py: ------------- # Uncomment any one or all of the PyQt4 # lines and py2exe gets very confused. # Comment them out again and all is well. from PyQt4 import QtCore #from PyQt4 import QtGui #from PyQt4 import QtSvg print "Hello World!" The output from py2exe on failure: C:\Documents and Settings\Karl\Desktop\BloodySimple>python setup.py py2exe running py2exe *** searching for required modules *** *** parsing results *** creating python loader for extension 'unicodedata' (C:\Python27\DLLs\unicodedata .pyd -> unicodedata.pyd) creating python loader for extension 'select' (C:\Python27\DLLs\select.pyd -> se lect.pyd) creating python loader for extension '_hashlib' (C:\Python27\DLLs\_hashlib.pyd - > _hashlib.pyd) creating python loader for extension 'PyQt4.QtCore' (C:\Python27\lib\site-packag es\PyQt4\QtCore.pyd -> PyQt4.QtCore.pyd) creating python loader for extension 'bz2' (C:\Python27\DLLs\bz2.pyd -> bz2.pyd) *** finding dlls needed *** error: MSVCP90.dll: No such file or directory -------------------------- I would love any insight into how to debug this problem and how it might be possible that the dll is found (I assume it is found because everything works fine and the hello.exe file is produced) in the regular hello world example but not when I import PyQt4. - Karl |