ps:
Usually the developers version is pretty stable, you happened to have picked an unfortunate moment ;)


Am 09.11.2012 05:13, schrieb Freddie Li:
Hello,

I installed the Enthought python distribution and then followed the instructions on http://scikit-learn.github.com/scikit-learn-tutorial/setup.html to build scikit-learn, but when I ran nosetests sklearn, I got the following error message:


...................S................................................................SS.........................................................S......................./Users/kumquat/scikit-learn/sklearn/decomposition/nmf.py:245: UserWarning: Iteration limit reached in nls subproblem.
  warnings.warn("Iteration limit reached in nls subproblem.")
.................................S......................................................../Users/kumquat/scikit-learn/sklearn/externals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object <functools.partial object at 0x8102540>, ignore list will not work.
  nose.tools.assert_equal(filter_args(ff, ['y'], (1, )),
...........................................................................................................................................................................................................................................................Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.__del__ of memmap(1.107030053096635e-306)> ignored Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.__del__ of memmap(1.0808904601452085e-306)> ignored /Users/kumquat/scikit-learn/sklearn/externals/joblib/test/test_numpy_pickle.py:182: Warning: file "/var/folders/92/s56hkpps66z18jt9s_x1pq7w0000gn/T/tmpzgd_5b/test.pkl404" 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(5.680257357397723e-230)> ignored
.......................................................................................................................................S...............................F..........................................................................................................................................................................F......E.....E.E.......................................................................................................................................................................................................................................................................................................................................................................................................SSS....S....S........................................................................................................
======================================================================
ERROR: sklearn.metrics.cluster.tests.test_supervised.test_perfect_matches
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
File "/Users/kumquat/scikit-learn/sklearn/metrics/cluster/tests/test_supervised.py", line 61, in test_perfect_matches
    assert_equal(score_func([0, 1, 0], [42, 7, 42]), 1.0)
File "/Users/kumquat/scikit-learn/sklearn/metrics/cluster/supervised.py", line 647, in adjusted_mutual_info_score
    emi = expected_mutual_information(contingency, n_samples)
File "expected_mutual_info_fast.pyx", line 29, in expected_mutual_info_fast.expected_mutual_information (sklearn/metrics/cluster/expected_mutual_info_fast.c:1458)
ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'

======================================================================
ERROR: Compute the Adjusted Mutual Information and test against known values
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
File "/Users/kumquat/scikit-learn/sklearn/metrics/cluster/tests/test_supervised.py", line 153, in test_adjusted_mutual_info_score
    emi = expected_mutual_information(C, n_samples)
File "expected_mutual_info_fast.pyx", line 29, in expected_mutual_info_fast.expected_mutual_information (sklearn/metrics/cluster/expected_mutual_info_fast.c:1458)
ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'

======================================================================
ERROR: Check numerical stabability when information is exactly zero
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
File "/Users/kumquat/scikit-learn/sklearn/metrics/cluster/tests/test_supervised.py", line 180, in test_exactly_zero_info_score
    assert_equal(adjusted_mutual_info_score(labels_a, labels_b), 0.0)
File "/Users/kumquat/scikit-learn/sklearn/metrics/cluster/supervised.py", line 647, in adjusted_mutual_info_score
    emi = expected_mutual_information(contingency, n_samples)
File "expected_mutual_info_fast.pyx", line 29, in expected_mutual_info_fast.expected_mutual_information (sklearn/metrics/cluster/expected_mutual_info_fast.c:1458)
ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'

======================================================================
FAIL: sklearn.linear_model.tests.test_least_angle.test_lars_drop_for_good
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
File "/Users/kumquat/scikit-learn/sklearn/linear_model/tests/test_least_angle.py", line 342, in test_lars_drop_for_good
    assert_array_almost_equal(lars_obj, cd_obj)
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/numpy/testing/utils.py", line 800, in assert_array_almost_equal
    header=('Arrays are not almost equal to %d decimals' % decimal))
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/numpy/testing/utils.py", line 636, in assert_array_compare
    raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 6 decimals

(mismatch 100.0%)
 x: array(5010.305621875)
 y: array(5009.79940745192)
>> raise AssertionError('\nArrays are not almost equal to 6 decimals\n\n(mismatch 100.0%)\n x: array(5010.305621875)\n y: array(5009.79940745192)')


======================================================================
FAIL: Doctest: sklearn.metrics.cluster.supervised.adjusted_mutual_info_score
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/doctest.py", line 2201, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for sklearn.metrics.cluster.supervised.adjusted_mutual_info_score File "/Users/kumquat/scikit-learn/sklearn/metrics/cluster/supervised.py", line 562, in adjusted_mutual_info_score

----------------------------------------------------------------------
File "/Users/kumquat/scikit-learn/sklearn/metrics/cluster/supervised.py", line 610, in sklearn.metrics.cluster.supervised.adjusted_mutual_info_score
Failed example:
    adjusted_mutual_info_score([0, 0, 1, 1], [0, 0, 1, 1])
Exception raised:
    Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
File "<doctest sklearn.metrics.cluster.supervised.adjusted_mutual_info_score[1]>", line 1, in <module>
        adjusted_mutual_info_score([0, 0, 1, 1], [0, 0, 1, 1])
File "/Users/kumquat/scikit-learn/sklearn/metrics/cluster/supervised.py", line 647, in adjusted_mutual_info_score
        emi = expected_mutual_information(contingency, n_samples)
File "expected_mutual_info_fast.pyx", line 29, in expected_mutual_info_fast.expected_mutual_information (sklearn/metrics/cluster/expected_mutual_info_fast.c:1458)
    ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'
----------------------------------------------------------------------
File "/Users/kumquat/scikit-learn/sklearn/metrics/cluster/supervised.py", line 612, in sklearn.metrics.cluster.supervised.adjusted_mutual_info_score
Failed example:
    adjusted_mutual_info_score([0, 0, 1, 1], [1, 1, 0, 0])
Exception raised:
    Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
File "<doctest sklearn.metrics.cluster.supervised.adjusted_mutual_info_score[2]>", line 1, in <module>
        adjusted_mutual_info_score([0, 0, 1, 1], [1, 1, 0, 0])
File "/Users/kumquat/scikit-learn/sklearn/metrics/cluster/supervised.py", line 647, in adjusted_mutual_info_score
        emi = expected_mutual_information(contingency, n_samples)
File "expected_mutual_info_fast.pyx", line 29, in expected_mutual_info_fast.expected_mutual_information (sklearn/metrics/cluster/expected_mutual_info_fast.c:1458)
    ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'
----------------------------------------------------------------------
File "/Users/kumquat/scikit-learn/sklearn/metrics/cluster/supervised.py", line 618, in sklearn.metrics.cluster.supervised.adjusted_mutual_info_score
Failed example:
    adjusted_mutual_info_score([0, 0, 0, 0], [0, 1, 2, 3])
Exception raised:
    Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
File "<doctest sklearn.metrics.cluster.supervised.adjusted_mutual_info_score[3]>", line 1, in <module>
        adjusted_mutual_info_score([0, 0, 0, 0], [0, 1, 2, 3])
File "/Users/kumquat/scikit-learn/sklearn/metrics/cluster/supervised.py", line 647, in adjusted_mutual_info_score
        emi = expected_mutual_information(contingency, n_samples)
File "expected_mutual_info_fast.pyx", line 29, in expected_mutual_info_fast.expected_mutual_information (sklearn/metrics/cluster/expected_mutual_info_fast.c:1458)
    ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'

>> raise self.failureException(self.format_failure(<StringIO.StringIO instance at 0x85720a8>.getvalue()))


----------------------------------------------------------------------
Ran 1370 tests in 72.249s

FAILED (SKIP=11, errors=3, failures=2)



----


It's on a Mac OS X 10.7.4, and I have Python 2.7.3 -- EPD_free 7.3-2 (32-bit), IPython 0.12.1, numpy 1.6.1, scipy 0.10.1, and matplotlib 1.1.0.

What should I do now?

Thanks and sorry for the trouble!
Fred



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov


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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to