I've been following this thread with interest, since I'm also having
trouble with PyQt. Specifically, I am trying to create an executable
with the --onefile option. When I run it, I get 2 R6034 errors, and
the following output (I added the message to iu.py):
C:/DOCUME~1/dhensley/LOCALS~1/Temp/_MEI88242\PyQt4.QtCore.pyd ('.pyd',
'rb', 3)
C:/DOCUME~1/dhensley/LOCALS~1/Temp/_MEI88242\sip.pyd ('.pyd', 'rb', 3)
Successful
Successful
C:/DOCUME~1/dhensley/LOCALS~1/Temp/_MEI88242\win32api.pyd ('.pyd', 'rb', 3)
Traceback (most recent call last):
File "<string>", line 34, in <module>
File
"U:\dhensley\Projects\SRA\SRA\build_PyQt\pyinstaller-trunk\iu.py", line
438, in importHook
mod = _self_doimport(nm, ctx, fqname)
File
"U:\dhensley\Projects\SRA\SRA\build_PyQt\pyinstaller-trunk\iu.py", line
523, in doimport
exec co in mod.__dict__
File "sraApp\build\pyi.win32\sraApp\outPYZ1.pyz/win32com", line 5, in
<module>
File
"U:\dhensley\Projects\SRA\SRA\build_PyQt\pyinstaller-trunk\iu.py", line
438, in importHook
mod = _self_doimport(nm, ctx, fqname)
File
"U:\dhensley\Projects\SRA\SRA\build_PyQt\pyinstaller-trunk\iu.py", line
507, in doimport
mod = director.getmod(nm)
File
"U:\dhensley\Projects\SRA\SRA\build_PyQt\pyinstaller-trunk\iu.py", line
299, in getmod
mod = owner.getmod(nm)
File
"U:\dhensley\Projects\SRA\SRA\build_PyQt\pyinstaller-trunk\iu.py", line
110, in getmod
mod = imp.load_module(nm, fp, attempt, (ext, mode, typ))
ImportError: DLL load failed: A dynamic link library (DLL)
initialization routine failed.
Compiling without --onefile also causes the same errors. I updated to
the latest trunk to see if the recent manifest file changes made any
difference, and they didn't. Any ideas on what I should try next?
Thanks,
Dan
Martin Zibricky wrote, On 1/17/2011 11:43 AM:
Could you please create a small example, which would reproduce it?
Maybe just starting a script with 'import PyQt4.QtCore' if it will work.
Could you also please instead
import PyQt4.QtCore
try this:
from PyQt4 import QtCore
Ram píše v Po 17. 01. 2011 v 10:02 -0800:
I can create a .exe file for my application but when I run it, I get
Traceback (most recent call last):
File "<string>", line 14, in<module>
File "d:\cygwin\tmp\temp\pyinstaller-1.5-rc1\pyinstaller-1.5-
rc1\iu.py", line
455, in importHook
raise ImportError, "No module named %s" % fqname
ImportError: No module named PyQt4.QtCore
Any ideas on how to fix this?
--
Dan Hensley, P.E.
Manager, Rocky Mountain Operations - ATA Engineering, Inc.
1687 Cole Blvd, Suite 125
Golden, CO W:303/945-2360
http://www.ata-e.com/
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.