[MacPorts] #40049: py27-scipy: problem importing scipy.interpolate.intrep1d, "numpy.dtype has the wrong size" (was: py27-scipy port package issue)

MacPorts noreply at macports.org
Thu Aug 8 12:45:22 PDT 2013


#40049: py27-scipy: problem importing scipy.interpolate.intrep1d, "numpy.dtype has
the wrong size"
-------------------------+--------------------
  Reporter:  csiebern@…  |      Owner:  sean@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.2.0
Resolution:              |   Keywords:
      Port:  py27-scipy  |
-------------------------+--------------------
Changes (by larryv@…):

 * keywords:  python scipy =>
 * owner:  macports-tickets@… => sean@…


Old 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?

New 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?

--

Comment:

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

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


More information about the macports-tickets mailing list