[SciPy-dev] scipy.test() errors/failures

Nils Wagner nwagner@iam.uni-stuttgart...
Thu Dec 4 13:55:14 CST 2008


Hi all,

Can someone reproduce these errors/failures ? I am using

>>> scipy.__version__
'0.7.0.dev5221'
>>> numpy.__version__
'1.3.0.dev6136'


======================================================================
ERROR: Testing that kmeans2 init methods work.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/cluster/tests/test_vq.py", 
line 147, in test_kmeans2_init
     data = data.reshape((200, 2))
ValueError: total size of new array must be unchanged

======================================================================
ERROR: Testing simple call to kmeans2 with rank 1 data.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/cluster/tests/test_vq.py", 
line 127, in test_kmeans2_rank1
     data = data.reshape((200, 2))
ValueError: total size of new array must be unchanged

======================================================================
ERROR: Testing simple call to kmeans2 with rank 1 data.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/cluster/tests/test_vq.py", 
line 139, in test_kmeans2_rank1_2
     data = data.reshape((200, 2))
ValueError: total size of new array must be unchanged

======================================================================
ERROR: This will cause kmean to have a cluster with no 
points.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/cluster/tests/test_vq.py", 
line 96, in test_kmeans_lost_cluster
     data = data.reshape((200, 2))
ValueError: total size of new array must be unchanged

======================================================================
ERROR: test_complex_write_read 
(test_mmio.TestMMIOCoordinate)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/io/tests/test_mmio.py", 
line 290, in test_complex_write_read
     b = mmread(fn).todense()
   File 
"/usr/lib/python2.4/site-packages/scipy/io/mmio.py", line 
52, in mmread
     return MMFile().read(source)
   File 
"/usr/lib/python2.4/site-packages/scipy/io/mmio.py", line 
273, in read
     return self._parse_body(stream)
   File 
"/usr/lib/python2.4/site-packages/scipy/io/mmio.py", line 
407, in _parse_body
     flat_data = flat_data.reshape(-1,4)
ValueError: total size of new array must be unchanged

======================================================================
ERROR: read a hermitian matrix
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/io/tests/test_mmio.py", 
line 213, in test_read_hermitian
     b = mmread(fn).todense()
   File 
"/usr/lib/python2.4/site-packages/scipy/io/mmio.py", line 
52, in mmread
     return MMFile().read(source)
   File 
"/usr/lib/python2.4/site-packages/scipy/io/mmio.py", line 
273, in read
     return self._parse_body(stream)
   File 
"/usr/lib/python2.4/site-packages/scipy/io/mmio.py", line 
407, in _parse_body
     flat_data = flat_data.reshape(-1,4)
ValueError: total size of new array must be unchanged

======================================================================
FAIL: read a general matrix
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/io/tests/test_mmio.py", 
line 199, in test_read_geneal
     assert_array_almost_equal(a,b)
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 310, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 295, in assert_array_compare
     raise AssertionError(msg)
AssertionError:
Arrays are not almost equal

(mismatch 28.0%)
  x: array([[  1.00000000e+00,   0.00000000e+00, 
  0.00000000e+00,
           6.00000000e+00,   0.00000000e+00],
        [  0.00000000e+00,   1.05000000e+01, 
  0.00000000e+00,...
  y: array([[ 1.,  0.,  0.,  0.,  0.],
        [ 0.,  0.,  0.,  0.,  0.],
        [ 0.,  0.,  0.,  0.,  0.],...

======================================================================
FAIL: read a skew-symmetric matrix
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/io/tests/test_mmio.py", 
line 229, in test_read_skew
     assert_array_almost_equal(a,b)
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 310, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 295, in assert_array_compare
     raise AssertionError(msg)
AssertionError:
Arrays are not almost equal

(mismatch 24.0%)
  x: array([[  1.00000000e+00,   0.00000000e+00, 
  0.00000000e+00,
           0.00000000e+00,   0.00000000e+00],
        [  0.00000000e+00,   1.05000000e+01, 
  0.00000000e+00,...
  y: array([[ 1.,  0.,  0.,  0.,  0.],
        [ 0.,  0.,  0.,  0.,  0.],
        [ 0.,  0.,  0.,  0.,  0.],...

======================================================================
FAIL: test_real_write_read (test_mmio.TestMMIOCoordinate)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/io/tests/test_mmio.py", 
line 275, in test_real_write_read
     assert_array_almost_equal(a,b)
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 310, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 295, in assert_array_compare
     raise AssertionError(msg)
AssertionError:
Arrays are not almost equal

(mismatch 24.0%)
  x: array([[  1.00000000e+00,   0.00000000e+00, 
  0.00000000e+00,
           6.00000000e+00,   0.00000000e+00],
        [  0.00000000e+00,   1.05000000e+01, 
  0.00000000e+00,...
  y: array([[  1.,   0.,   0.,   6.,   0.],
        [  0.,  10.,   0.,   0.,   0.],
        [  0.,   0.,   0.,   0.,   0.],...

======================================================================
FAIL: test_sparse_formats (test_mmio.TestMMIOCoordinate)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/io/tests/test_mmio.py", 
line 313, in test_sparse_formats
     assert_array_almost_equal(result, expected)
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 310, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 295, in assert_array_compare
     raise AssertionError(msg)
AssertionError:
Arrays are not almost equal

(mismatch 24.0%)
  x: array([[  1.,   0.,   0.,   6.,   0.],
        [  0.,  10.,   0.,   0.,   0.],
        [  0.,   0.,   0.,   0.,   0.],...
  y: array([[  1.00000000e+00,   0.00000000e+00, 
  0.00000000e+00,
           6.00000000e+00,   0.00000000e+00],
        [  0.00000000e+00,   1.05000000e+01, 
  0.00000000e+00,...

======================================================================
FAIL: test_imresize (test_pilutil.TestPILUtil)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/decorators.py", 
line 82, in skipper
     return f(*args, **kwargs)
   File 
"/usr/lib/python2.4/site-packages/scipy/misc/tests/test_pilutil.py", 
line 24, in test_imresize
     assert_equal(im1.shape,(11,22))
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 174, in assert_equal
     assert_equal(len(actual),len(desired),err_msg,verbose)
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 183, in assert_equal
     raise AssertionError(msg)
AssertionError:
Items are not equal:
  ACTUAL: 0
  DESIRED: 2

----------------------------------------------------------------------
Ran 3460 tests in 159.021s

FAILED (KNOWNFAIL=2, SKIP=17, errors=6, failures=5)
<nose.result.TextTestResult run=3460 errors=6 failures=5>
  

Nils


More information about the Scipy-dev mailing list