PySide packaging error (macholib) python setup.py py2app
I am quite new to Python and PySide and trying to package a very simplified test case into an standalone app OS X. I put the test on github https://github.com/eerne/pyside-py2app-test
- Python 2.6.1 that is shipped with OS X 10.6.7
- Qt 4.7.3 from http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x
- PySide 1.02 from http://developer.qt.nokia.com/wiki/PySide_Binaries_MacOSX
The test just opens a QWebView() and loads test.html, this runs fine with python tes开发者_JAVA技巧t.py
but when trying to package with python setup.py py2app
it errors:
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/macholib/MachO.py", line 180, in load
raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
ValueError: Unknown load command: 34
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/macholib/MachO.py(180)load()
-> raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
Interestingly it builds an app in dist/test.app which does run on my machine, but not on others. Here the complete log http://pastie.org/1891942
I am clueless if it is a pyside related issue, Qt or something I'm missing setup.py
Other tests that do not include PySide package fine, without errors. So I assume this is either Qt or PySide related.
At this point I'm looking for any pointers or suggestions to which mailing-lists I could ask.
My guess is that you need to upgrade macholib. That load command (0x22) is defined in the version here, which is the dev version.
精彩评论