[SciPy-User] error import scipy.spatial

markus.proeller@if... markus.proeller@if...
Wed Jan 27 01:59:44 CST 2010


I get an error message when importing scipy.spatial:

>>> import scipy.spatial
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "C:\Python26\lib\site-packages\scipy\spatial\__init__.py", line 7, 
in <module>
    from ckdtree import *
  File "numpy.pxd", line 30, in scipy.spatial.ckdtree 
ValueError: numpy.dtype does not appear to be the correct type object

when I try to import it again, it seems to work:
>>> import scipy.spatial
>>> scipy.spatial.distance.cdist(array([[0,0,0]]),array([[1,1,1]]))
array([[ 1.73205081]])

Any idea?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100127/d1712492/attachment.html 

More information about the SciPy-User mailing list