[PyQt] Running a PyQt app compiled on OS X 10.6 on 10.5

Brian Zambrano brianz at gmail.com
Wed Jun 15 03:48:10 BST 2011


I have a PyQt app which I compile into a binary with py2app (latest stable
versions of sip and PyQt [commercial]).  I recently upgraded my build
machine from OSX 10.5 to 10.6.  The binaries built on my new 10.6 system
won't even start up on 10.5:

6/13/11 10:36:35 AM com.apple.launchd[73] (0x10bab0.Locum[647]) Exited:
Terminated
6/13/11 10:37:19 AM [0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]
<_FuncPtr object at 0x4b47b0>
6/13/11 10:37:19 AM [0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]
Traceback (most recent call last):
6/13/11 10:37:19 AM
[0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]   File
"/Applications/RoastLogger.app/Contents/Resources/__boot__.py", line 187, in
<module>
6/13/11 10:37:19 AM
[0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]
_run('RoastLogger.py')
6/13/11 10:37:19 AM
[0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]   File
"/Applications/RoastLogger.app/Contents/Resources/__boot__.py", line 184, in
_run
6/13/11 10:37:19 AM
[0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]     execfile(path,
globals(), globals())
6/13/11 10:37:19 AM
[0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]   File
"/Applications/RoastLogger.app/Contents/Resources/RoastLogger.py", line 6,
in <module>
6/13/11 10:37:19 AM
[0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]     from
roastloggerlib import main
6/13/11 10:37:19 AM
[0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]   File
"roastloggerlib/main.pyo", line 8, in <module>
6/13/11 10:37:19 AM
[0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]   File
"PyQt4/QtGui.pyo", line 18, in <module>
6/13/11 10:37:19 AM
[0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]   File
"PyQt4/QtGui.pyo", line 11, in __load
6/13/11 10:37:19 AM [0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]
ImportError:
dlopen(/Applications/RoastLogger.app/Contents/Resources/lib/python2.6/lib-dynload/PyQt4/QtGui.so,
2): no suitable image found.  Did find:
6/13/11 10:37:19 AM
[0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]
/Applications/RoastLogger.app/Contents/Resources/lib/python2.6/lib-dynload/PyQt4/QtGui.so:
unknown required load command 0x80000022
6/13/11 10:37:19 AM RoastLogger[656] RoastLogger Error
6/13/11 10:37:21 AM com.apple.launchd[73]
([0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]) Exited with exit
code: 255

Googling around for "unknown required load command 0x80000022" I did find
that this can be an issue with compiled apps, PyQt or otherwise:

http://www.riverbankcomputing.com/pipermail/pyqt/2009-November/025098.html

I have not yet tried altering the flags as that thread suggests.  What's the
right/easiest way around this issue?

BZ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110614/4fc898f8/attachment-0001.html>


More information about the PyQt mailing list