Dear Weiwei,
The way you ran the tests is not the recommended way to test,
exactly because of this problem. This is an issue in the numpy testing, not scikit-learn.
Your installation is fine.
You can find the recommended way to test your installation here:
http://scikit-learn.org/stable/install.html#install-bleeding-edge
It is

nosetests sklearn --exe


By the way, you did not sent your question to the main mailing list,
which is [email protected].

Best,
Andy


On 01/05/2013 10:59 AM, weiwei wrote:I
Hey,

I did the installation exactly as the user guide reads. But when I came to the test, "sudo python -c "import sklearn; sklearn.test()", it failed. Error message is as follows:
Running unit tests and doctests for sklearn
/usr/lib/python2.7/dist-packages/nose/util.py:14: DeprecationWarning: The compiler package is deprecated and removed in Python 3.x.
  from compiler.consts import CO_GENERATOR
NumPy version 1.6.2
NumPy is installed in /usr/lib/python2.7/dist-packages/numpy
Python version 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2]
nose version 1.1.2
I: Seeding RNGs with 636230263
......................................................S.2.17927109077 55.4082834902
.......None
..............EE..SS.......................................................S......................................................SEE....................................................../usr/local/lib/python2.7/dist-packages/sklearn/exter nals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object <functools.partial object at 0x3e40e68>, ignore list will not work.
nose.tools.assert_equal(filter_args(ff, ['y'], (1, )),
.........................................................................................________________________________________________________________________________
test_memory setup
________________________________________________________________________________
________________________________________________________________________________
t est_memory teardown
________________________________________________________________________________
..________________________________________________________________________________
test_memory setup
________________________________________________________________________________
..........................................................................................................................________________________________________________________________________________
test_memory teardown
________________________________________________________________________________
.________________________________________________________________________________
setup numpy_pickle
________________________________________________________________________________
.....................................Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.__del__ of memmap(3.4564872e-316)> ignored Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.__del__ of memmap(2.88920104e-316)> ignored Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.__del__ of memmap(2.88920104e-316)> ignored /usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/test/test_numpy_pickle.py:182: Warning: file "/tmp/tmpA4t5Hn/test.pkl582" appears to be a zip, ignoring mmap_mode "r" flag passed
numpy_pickle.load(this_filename, mmap_mode='r')
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.__del__ of memmap(2.64624485e-316)> ignored ....._______________________________________________________________ _________________
teardown numpy_pickle
________________________________________________________________________________
............An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (39, 0))

..................................................................................................EE........S......................---
..........................................................................................................................................................................................................................................................................................................................................................................EEE.........................................................................................................................SSS....S....S...........................................................................................EE
======================================================================
ERROR: Doctest: sklearn.datasets.base.load_sample_image
------------------------------------------ ----------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 395, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.datasets.base.load_sample_images
---------------------------------------------------------- ------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 395, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.ensemble.gradient_boosting.GradientBoostingClassifier
----------------------------------------------------- -----------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 395, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.ensemble.gradient_boosting.GradientBoostingRegressor
------------------------------------------------- ---------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 395, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.linear_model.randomized_l1.RandomizedLasso
------------------------------------------------------- ---------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 395, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.linear_model.randomized_l1.RandomizedLogisticRegression
------------------------------------------------ ----------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 395, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.tree.tree.DecisionTreeClassifier
---------------------------------------------------------------- ------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 395, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.tree.tree.DecisionTreeRegressor
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 395, in tearDown
    delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.tree.tree.export_graphviz
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 395, in tearDown
    delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn._NoseTester.test
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 395, in tearDown
    delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.test
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 395, in tearDown
    delattr(builtin_mod, self._result_var)
AttributeError: _

----------------------------------------------------------------------
Ran 1241 tests in 54.424s

FAILED (SKIP=11, errors=11)

Please help!

Thanks in advance!




------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912


_______________________________________________
Scikit-learn-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-commits

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to