[SciPy-user] error with interpolation import?

Robert Kern robert.kern@gmail....
Sun Apr 19 14:50:20 CDT 2009

On Sun, Apr 19, 2009 at 09:56, Joe Barfett <joebarfett@yahoo.ca> wrote:
> Hello,
> I'm a MATLAB user that's recently switched to Python and Scipy. I'm trying
> to use scipy with macPython to fit a 1D spline to some data.
> I'm getting an error message...
> The command: from scipy.signal import cspline1d
> Returns the error...
> Traceback (most recent call last):
>   File "/Users/joe/<string>", line 1, in <module>
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/signal/__init__.py",
> line 9, in <module>
>     from bsplines import *
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/signal/bsplines.py",
> line 3, in <module>
>     import scipy.special
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/special/__init__.py",
> line 8, in <module>
>     from basic import *
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/special/basic.py",
> line 8, in <module>
>     from _cephes import *
> ImportError:
> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/special/_cephes.so,
> 2): Library not loaded: /usr/local/lib/libgfortran.2.dylib
>   Referenced from:
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/special/_cephes.so
>   Reason: image not found
> I've reinstalled scipy a couple times. If anyone knows what's going on I'd
> appreciate some help. I know scipy can do splines.

How are you installing scipy? It appears that you are installing from
a binary installer that was built using gfortran, which you do not
have the runtime libraries for. You can probably work around this by
installing gfortran from here:


Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco

More information about the SciPy-user mailing list