Hi David,
One simple suggestion: Did you build numpy, then scipy, and then
scikit-learn using their respective make/setup.py?
Virgile
On Mon, Sep 17, 2012 at 5:31 PM, David Montgomery <[email protected]
> wrote:
> Hi,
>
> I upgraded numpy to 1.6 and sci to .12 and now I get the below. I am
> on ubuntu 10.04 How do I resolve?
>
> Thanks
>
> ''
> from sklearn import linear_model
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/local/lib/python2.6/dist-packages/sklearn/__init__.py",
> line 32, in <module>
> from .base import clone
> File "/usr/local/lib/python2.6/dist-packages/sklearn/base.py", line
> 10, in <module>
> from .metrics import r2_score
> File
> "/usr/local/lib/python2.6/dist-packages/sklearn/metrics/__init__.py",
> line 13, in <module>
> from . import cluster
> File
> "/usr/local/lib/python2.6/dist-packages/sklearn/metrics/cluster/__init__.py",
> line 19, in <module>
> from .unsupervised import silhouette_samples
> File
> "/usr/local/lib/python2.6/dist-packages/sklearn/metrics/cluster/unsupervised.py",
> line 10, in <module>
> from ..pairwise import pairwise_distances
> File
> "/usr/local/lib/python2.6/dist-packages/sklearn/metrics/pairwise.py",
> line 38, in <module>
> from scipy.spatial import distance
> File "/usr/lib/python2.6/dist-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
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general