When attempting to bundle an. app which uses only 3 libraries
(pyserial, which comes with python, crcmod, and pyQt) for Mac OS X,
everything appears to build fine, but the final .app does not launch
(even after copying over the qt_menu.nib), and everything appears to
work great.
some-macbook:pyinstaller-1.4 sleepy$ python2.6 Build.py MyApp/
MyApp.spec
checking Analysis
building Analysis because outAnalysis0.toc non existent
running Analysis outAnalysis0.toc
Analyzing: support/_mountzlib.py
Analyzing: support/useUnicode.py
Analyzing: /Users/sleepy/Desktop/MyApp/Main.py
W: library kernel32 required via ctypes not found
Warnings written to MyApp/warnMyApp.txt
checking PYZ
rebuilding outPYZ1.toc because outPYZ1.pyz is missing
building PYZ outPYZ1.toc
checking PKG
rebuilding outPKG3.toc because outPKG3.pkg is missing
building PKG outPKG3.pkg
checking EXE
rebuilding outEXE2.toc because MyApp missing
building EXE from outEXE2.toc
Appending archive to EXE MyApp/dist/MyApp
checking BUNDLE
building because outBUNDLE4.toc missing or bad
building BUNDLE outBUNDLE4.toc
However, clicking on the .app doesn't launch the program, and delving
into the .app bundle from the command line and running the binary
within results in the following.
File "<string>", line 4, in <module>
File "/Users/sleepy/Downloads/pyinstaller-1.4/iu.py", line 436, in
importHook
mod = _self_doimport(nm, ctx, fqname)
File "/Users/sleepy/Downloads/pyinstaller-1.4/iu.py", line 521, in
doimport
exec co in mod.__dict__
File "MyApp/build/pyi.darwin/MyApp/outPYZ1.pyz/MainWindow", line 6,
in <module>
File "/Users/sleepy/Downloads/pyinstaller-1.4/iu.py", line 436, in
importHook
mod = _self_doimport(nm, ctx, fqname)
File "/Users/sleepy/Downloads/pyinstaller-1.4/iu.py", line 521, in
doimport
exec co in mod.__dict__
File "MyApp/build/pyi.darwin/MyApp/outPYZ1.pyz/crcmod", line 2, in
<module>
File "/Users/sleepy/Downloads/pyinstaller-1.4/iu.py", line 454, in
importHook
del sys.modules[fqname]
KeyError: 'crcmod.crcmod.crcmod'
After this happened, I removed the version of crcmod I had installed
and reinstalled the pure python version (without the compiled C
extension -- thinking this was the problem) and it causes the same
result.
Any suggestions would be greatly appreciated!
Also if this is something covered on
http://www.pyinstaller.org/export/latest/tags/1.4/doc/Manual.html?format=raw#build-your-project
and I'm just totally blind, I welcome your ridicule along with a
helpful answer :)
--
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.