[SciPy-User] error import scipy.spatial

markus.proeller at ifm.com markus.proeller at ifm.com
Wed Jan 27 02:59:44 EST 2010


Hi,

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 
(scipy\spatial\ckdtree.c:6087)
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?

Markus
-------------- 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