Opened 11 years ago

Last modified 10 years ago

#40049 closed defect

py27-scipy: problem importing scipy.interpolate.intrep1d, "numpy.dtype has the wrong size" — at Version 7

Reported by: csiebern@… Owned by: sean@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: testing1@…
Port: py27-scipy

Description (last modified by larryv (Lawrence Velázquez))

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?

Change History (1)

comment:7 Changed 11 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Keywords: python scipy removed
Owner: changed from macports-tickets@… to sean@…
Summary: py27-scipy port package issuepy27-scipy: problem importing scipy.interpolate.intrep1d, "numpy.dtype has the wrong size"

Thanks for the ticket. In the future, please Cc relevant port maintainers (port info --maintainers) and use WikiFormatting in your ticket descriptions.

Note: See TracTickets for help on using tickets.