[MacPorts] #40049: py27-scipy port package issue

MacPorts noreply at macports.org
Thu Aug 8 08:49:34 PDT 2013


#40049: py27-scipy port package issue
--------------------------+--------------------------------
 Reporter:  csiebern@…    |      Owner:  macports-tickets@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.2.0
 Keywords:  python scipy  |       Port:  py27-scipy
--------------------------+--------------------------------
 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?

-- 
Ticket URL: <https://trac.macports.org/ticket/40049>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list