[Pythonmac-SIG] ImportError, no suitable image found (app not running under 10.5)

David Brooks dave at bcs.co.nz
Mon Sep 17 23:11:41 CEST 2012


On 18/09/12 6:03 AM, Paul Wiseman wrote:
> On 17 September 2012 18:13, Paul Wiseman <poalman at gmail.com 
> <mailto:poalman at gmail.com>> wrote:
>
>     This app runs fine on 10.6 and 10.7, but when I run it on 10.5 I
>     an apple error report, and the following error in console
>
>     Traceback (most recent call last):
>       <some traceback>
>     ImportError:
>     dlopen(/Applications/TestApp.app/Contents/Resources/lib/python2.7/lib-dynload/_librsync.so,
>     2): Library not loaded:
>     @executable_path/../Frameworks/librsync.1.dylib
>       Referenced from:
>     /Applications/TestApp.app/Contents/Resources/lib/python2.7/lib-dynload/_librsync.so
>       Reason: no suitable image found.  Did find:
>     /Applications/TestApp.app/Contents/MacOS/../Frameworks/librsync.1.dylib:
>     unknown required load command 0x80000022
>     /Applications/TestApp.app/Contents/MacOS/../Frameworks/librsync.1.dylib:
>     unknown required load command 0x80000022
>     TestApp Error
>     ([0x0-0x1e01e].org.pythonmac.unspecified.TestApp[342]) Exited
>     abnormally: Bus error
>
>     I searched around and found this,
>     http://www.riverbankcomputing.com/pipermail/pyqt/2009-November/025098.htmlalthough
>     I think it might be specific to compiling pyqt and this solution
>     http://www.riverbankcomputing.com/pipermail/pyqt/2011-June/029975.htmlbut
>     not really sure if it applies to my case or not.
>
>     I have both Xcode 3 and 4 installed and I have the 10.5 SDK, I'm
>     just not sure about how I can compile the extensions I need to use it?
>
>
>
> Just did file on the librsync.1.dylib and it only supports i386 which 
> I guess is the problem. Any idea why this wouldn't have been built 
> with ppc like the so was?
>
> I've tried building again with -isysroot /Xcode3/SDKs/MacOSX10.5.sdk 
> -mmacosx-version-min=10.5 CFLAGS but doesn't seem to help
>
When and how did you install librsync?? Manually or using Brew, 
MacPorts, or Fink? What about re-installing and setting whatever options 
are needed to include the PPC architecture?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20120918/5a812508/attachment.html>


More information about the Pythonmac-SIG mailing list