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

Phil Thompson phil at riverbankcomputing.com
Wed Jun 15 08:24:07 BST 2011


On Tue, 14 Jun 2011 19:48:10 -0700, Brian Zambrano <brianz at gmail.com>
wrote:
> 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

Have a look at the --deployment-target option...

http://www.riverbankcomputing.com/static/Docs/sip4/installation.html#configuring

Phil


More information about the PyQt mailing list