[Pythonmac-SIG] .so import bug python 2.3 vs 2.4 (++?)
Ronald Oussoren
ronaldoussoren at mac.com
Fri Apr 13 11:19:58 CEST 2007
On Friday, April 13, 2007, at 09:17AM, "David Worrall" <vip at avatar.com.au> wrote:
>Hello all,
>OSX 2.4.9:
>A (largish) Xcode project compiled to a .so with the /System/Library
>python framework.
>The .so is produced and imports into python (2.3.4)
>
>When the whole process is repeated, replacing python 2.3.4 with 2.4.3
>I get an
>>> ImportError: Inappropriate file type for dynamic loading
>
>can anyone shed any light on this for me please?
>(or just tell me what's gotta change :-)
What kind of object is the .so file you're building? You should build a bundle, not a dylib.
That is file(1) should say "Mach-O bundle", not "Mach-O dynamically linked shared library".
Ronald
More information about the Pythonmac-SIG
mailing list