[Pythonmac-SIG] problem compiling extension modules for 10.5
Garry Willgoose
Garry.Willgoose at newcastle.edu.au
Thu Jul 31 09:05:14 CEST 2008
I have posted this problem a few months ago on several places but it
has languished.
I have been developing an extension using ActivePython 2.5.2 under
10.4 for some time now. When I switched to 10.5 I can no longer do
this. The module compiles fine but when I import the library I get the
following message ...
willgoose-macpro:modules garrywillgoose$ python
ActivePython 2.5.2.2 (ActiveState Software Inc.) based on
Python 2.5.2 (r252:60911, Mar 27 2008, 17:40:23)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tsim
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort trap
Now when the module is compiled on an old 10.4 machine (same python,
everything) and then copied to the new 10.5 machine it works fine. The
error I believe from what little I have already found out is because
the versions (compilers, libraries, etc??) of python and my module are
incompatible (somewhere I saw that activepython is compiled against
10.4). I tried setting the environment variable
MACOSX_DEPLOYMENT_TARGET=10.4
but still no go. Any suggestions.
====================================================================
Prof Garry Willgoose,
Australian Professorial Fellow in Environmental Engineering,
Director, Centre for Climate Impact Management (C2IM),
School of Engineering, The University of Newcastle,
Callaghan, 2308
Australia.
Centre webpage: www.c2im.org.au
Phone: (International) +61 2 4921 6050 (Tues-Fri AM); +61 2 6545 9574
(Fri PM-Mon)
FAX: (International) +61 2 4921 6991 (Uni); +61 2 6545 9574 (personal
and Telluric)
Env. Engg. Secretary: (International) +61 2 4921 6042
email: garry.willgoose at newcastle.edu.au; g.willgoose at telluricresearch.com
email-for-life: garry.willgoose at alum.mit.edu
personal webpage: www.telluricresearch.com/garry
====================================================================
"Do not go where the path may lead, go instead where there is no path
and leave a trail"
Ralph Waldo Emerson
====================================================================
More information about the Pythonmac-SIG
mailing list