[SciPy-User] scipy compiles, but importing interpolate fails
Jonathan Guyer
guyer at nist.gov
Fri Mar 9 08:50:34 EST 2012
My instructions to FiPy users are at: http://www.matforge.org/fipy/wiki/InstallFiPy/MacOSX/SnowLeopard
They're largely based on hyperjeff's, although his
sudo mv /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy \
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpyX
is evil and unnecessary if you pass --no-site-packages to mkvirtualenv.
I'm still on SciPy 0.9.0, but I don't have any trouble importing scipy.interpolate.
On Mar 8, 2012, at 3:40 PM, Adam Ginsburg wrote:
> Hi, I've recently (surprisingly) gotten scipy to compile by following
> these http://blog.hyperjeff.net/?p=160 instructions. However, if I
> try to import scipy.interpolate, it fails. I'm trying to install
> scipy into a virtualenv environment, though I don't think that's the
> issue because I have another install in a Framework that sees the same
> error.
>
> I'm using numpy 1.6.1, scipy 0.10.1, mac OS X 10.6.8.
>
> Can anyone help me understand the following error?
>
> $ ~/virtual-python/bin/python -c "import scipy, scipy.interpolate"
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/Users/adam/virtual-python/lib/python2.7/site-packages/scipy/interpolate/__init__.py",
> line 156, in <module>
> from ndgriddata import *
> File "/Users/adam/virtual-python/lib/python2.7/site-packages/scipy/interpolate/ndgriddata.py",
> line 9, in <module>
> from interpnd import LinearNDInterpolator, NDInterpolatorBase, \
> File "numpy.pxd", line 174, in init interpnd
> (scipy/interpolate/interpnd.c:7771)
> ValueError: numpy.ndarray has the wrong size, try recompiling
>
> Thanks,
> --
> Adam Ginsburg
> Graduate Student
> Center for Astrophysics and Space Astronomy
> University of Colorado at Boulder
> http://casa.colorado.edu/~ginsbura/
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
More information about the SciPy-User
mailing list