Opened 11 years ago
Last modified 11 years ago
#40049 closed defect
py27-scipy port package issue — at Initial Version
Reported by: | csiebern@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.0 |
Keywords: | Cc: | testing1@… | |
Port: | py27-scipy |
Description
I am running macports on a MBP with Lion 10.8.4
I have installed python 27 and the scientific packages (Numpy, SciPy etc.) When trying to import the intrep1d function from scipy.interpolate python returns the following error:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2731, in run_code
exec code_obj in self.user_global_ns, self.user_ns
File "<ipython-input-1-5977d52fd447>", line 1, in <module>
from scipy.interpolate import interp1d
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/interpolate/init.py", line 150, in <module>
from .interpolate import *
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/interpolate/interpolate.py", line 12, in <module>
import scipy.special as spec
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/special/init.py", line 529, in <module>
from ._ufuncs import *
File "numpy.pxd", line 155, in init scipy.special._ufuncs (scipy/special/_ufuncs.c:9950)
ValueError: numpy.dtype has the wrong size, try recompiling
I have tested and can use Numpy and dtype alone and agree with the error recommendation that the scipy packge should be recompiled.
Can I do this using the macport installer, or will I need to build scipy from source with Xcode and install independent of macports?