[Pythonmac-SIG] which fortran for pythonmac.org binaries?
Paul Kienzle
pkienzle at jazz.ncnr.nist.gov
Tue May 29 08:56:07 CEST 2007
Hi,
I've downloaded scipy for python2.4 from pythonmac.org today:
http://pythonmac.org/packages/py24-fat/index.html
and saw the following problem:
File "../chisq.py", line 6, in ?
import scipy.interpolate
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/interpolate/__init__.py", line 7, in ?
from interpolate import *
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/interpolate/interpolate.py", line 13, in ?
import fitpack
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/interpolate/fitpack.py", line 34, in ?
import _fitpack
ImportError: Inappropriate file type for dynamic loading
Some web searching suggests that it may be a fortran versioning problem.
Indeed, otool -L reports:
$ otool -L /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/interpolate/_fitpack.so
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/interpolate/_fitpack.so:
/usr/local/lib/libg2c.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libgcc_s.1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.6)
which suggests a pre-4.0 version of fortran was used to compile. The new library replacing g2c is gfortran.
I have gfortran 4.2 downloaded from:
http://r.research.att.com/exp/
and installed in /usr/local.
Until Apple shows some leadership and picks a fortran compiler, is
there some way to package scipy on pythonmac.org so that it contains
it's own fortran libraries?
At the very least, can somebody please point me to the fortran version
that was used to build scipy so that I can drop the libraries in
/Librar/Frames/Python.framework/Versions/2.4/lib and set DYLD_LIBRARY_PATH
to find them?
Thanks in advance,
- Paul
Paul Kienzle
pkienzle at nist.gov
More information about the Pythonmac-SIG
mailing list