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:<div>
<br></div><div><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">6/13/11 10:36:35 AM com.apple.launchd[73] (0x10bab0.Locum[647]) Exited: Terminated <br>
6/13/11 10:37:19 AM [0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656] <_FuncPtr object at 0x4b47b0> <br>6/13/11 10:37:19 AM [0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656] Traceback (most recent call last): <br>
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> <br>6/13/11 10:37:19 AM [0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656] _run('RoastLogger.py') <br>
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 <br>6/13/11 10:37:19 AM [0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656] execfile(path, globals(), globals()) <br>
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> <br>6/13/11 10:37:19 AM [0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656] from roastloggerlib import main <br>
6/13/11 10:37:19 AM [0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656] File "roastloggerlib/main.pyo", line 8, in <module> <br>6/13/11 10:37:19 AM [0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656] File "PyQt4/QtGui.pyo", line 18, in <module> <br>
6/13/11 10:37:19 AM [0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656] File "PyQt4/QtGui.pyo", line 11, in __load <br>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: <br>
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 <br>6/13/11 10:37:19 AM RoastLogger[656] RoastLogger Error <br>
6/13/11 10:37:21 AM com.apple.launchd[73] ([0x0-0x66066].org.pythonmac.unspecified.RoastLogger[656]) Exited with exit code: 255 </span><br><div><br></div><div>Googling around for "<span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">unknown required load command 0x80000022" I did find that this can be an issue with compiled apps, PyQt or otherwise:</span></div>
<div><br></div><div><a href="http://www.riverbankcomputing.com/pipermail/pyqt/2009-November/025098.html" target="_blank">http://www.riverbankcomputing.com/pipermail/pyqt/2009-November/025098.html</a></div></div><div><br>
</div><div>I have not yet tried altering the flags as that thread suggests. What's the right/easiest way around this issue?</div><div><br></div><div>BZ</div>