[Numpy-discussion] mac osx10.5 and external library crash (possible f2py/numpy problem?)
Wed May 14 00:27:33 CDT 2008
I've just moved all my stuff from a Intel Imac on 10.4.11 to a Macpro
on 10.5.2. On both machines I have the same universal activestate
python (both 2.5.1 and 184.108.40.206 give the same problem). I have some
codes in fortran from which I build a shared library using f2py from
numpy. Now when I import the library as built on osx10.4 it all works
fine but when I import library as built on 10.5 I get the following
willgoose-macpro:system garrywillgoose$ python
ActivePython 220.127.116.11 (ActiveState Software Inc.) based on
Python 2.5.1 (r251:54863, May 1 2007, 17:40:00)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tsimdtm
Fatal Python error: Interpreter not initialized (version mismatch?)
Its only my libraries that are the problem. Now also (1) if I move
this library back to my 10.4 machine it works fine, and (2) if I move
the library built on my 10.4 machine over to 10.5 it also works fine.
Its only the library built on 10.5 and run on 10.5 that is the
problem. Re f2py it appears to be independent of fortran compiler
(g95, gfortran and intel fortran all give same result). I upgraded to
the latest version of activestate 2.5.2 but same problem. OSX 10.4 has
xcode 2.4 installed, 10.5 has 3.0 installed. Reinstalled all the
fortran compilers and the numpy support library ... still the same.
Any ideas (1) what the error means in the first place and (2) what I
I've cross-posted this on the Python-mac and numpy discussion since it
appears to be a OSX/numpy/f2py interaction.
Prof Garry Willgoose,
Australian Professorial Fellow in Environmental Engineering,
Director, Centre for Climate Impact Management (C2IM),
School of Engineering, The University of Newcastle,
Centre webpage: www.c2im.org.au
Phone: (International) +61 2 4921 6050 (Tues-Fri AM); +61 2 6545 9574
FAX: (International) +61 2 4921 6991 (Uni); +61 2 6545 9574 (personal
Env. Engg. Secretary: (International) +61 2 4921 6042
email: email@example.com; firstname.lastname@example.org
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 Numpy-discussion