[Pythonmac-SIG] P4Python, MySQLdb, or Python Extensions
Ronald Oussoren
ronaldoussoren at mac.com
Mon Nov 19 13:37:26 CET 2007
On Monday, November 19, 2007, at 10:05AM, "sparklight" <ken at sparklight.com> wrote:
>
>
>Lyndsey - I see your resolution to the -framework Carbon problem, I
>discovered that also. But I'm still groping for the solution to the
>"Inappropriate file type for dynamic loading" problem. My linker (gcc
>running under the Eclipse IDE) produces a .dylib by default, not a .so, and
>if I simply rename the file, I get the same traceback you got. Clearly
>.dylib is an Apple dynamic library format, and MacPython 2.4 is not prepared
>to recognize it. How did you resolve this? Did going to Python 2.5
>suffice?
Python extensions are bundles (created with 'cc -bundle'), not shared libraries (created with 'cc -shared').
BTW. Why not use distutils to build extensions, that will automaticly do the right thing on all platforms.
Ronald
More information about the Pythonmac-SIG
mailing list