[MacPorts] #43520: error import scipy.stats

MacPorts noreply at macports.org
Tue Apr 29 01:59:54 PDT 2014


#43520: error import scipy.stats
--------------------------------------+--------------------------------
 Reporter:  ollinger_s@…              |      Owner:  macports-tickets@…
     Type:  defect                    |     Status:  new
 Priority:  Normal                    |  Milestone:
Component:  ports                     |    Version:  2.2.1
 Keywords:  import error scipy.stats  |       Port:  py-scipy
--------------------------------------+--------------------------------
 Hi,

 I've the following configuration on my Mac OS X 10.6.8 (all installed with
 MacPort):

 {{{
 python27 @2.7.6_0 (active)
 py27-scipy @0.13.3_1+gcc48 (active)
 py27-numpy @1.8.1_0 (active)
 }}}

 All seems to bee allright with this installation, but I can't import
 scipy.stats. The following error occur:

 {{{
 >>> import scipy.stats
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/stats/__init__.py", line 324, in <module>
     from .stats import *
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/stats/stats.py", line 242, in <module>
     import scipy.special as special
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/special/__init__.py", line 531, in <module>
     from ._ufuncs import *
   File "__init__.pxd", line 155, in init scipy.special._ufuncs
 (scipy/special/_ufuncs.c:20976)
 ValueError: numpy.dtype has the wrong size, try recompiling
 }}}

 I've uninstall all the previous version of python27, numpy and scipy.
 I've uninstall and reinstall the current version of numpy and scipy.
 But the problem still persist.

 Do you have any idea to solve this problem?

 Best regards,
 Sandrine

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


More information about the macports-tickets mailing list