I ran into a number of problems with PyQt4, and py2app while making my first program (OS 10.6), that I had a hard time finding answers to
- If your program is crashing, check console if it says
1error: argv-emulation is not supported for 64-bit executables
then after generating the setup.py script for py2app, edit it to remove “'argv_emulation': True
”. (from py2exe website, so also works for windows)
You can also try using python 2.5 or setting “arch –i386
”, but I think that this is probably easier. - If your program is still crashing, check the console, if it says
1ImportError: No module named sip
the solution is to add ‘—includes “sip”
’ to the py2app call: ‘python setup.py py2app --includes "sip"
’ - If your program continues to crash, check console and if it says
1Qt internal error: qt_menu.nib could not be loaded
The .nib file should be placed inQtGui.framework/Versions/Current/Resources/
or in the resources directory of your application bundle. In that case, you need to manually copy it into the app bundle. (right-click your app -> Show Package Contents)
Leave a Reply