[SciPy-user] sparse test errors

Steve Schmerler elcorto at gmx.net
Tue Mar 28 16:57:39 CST 2006


Hi

The latest svn build fails when testing sparse:

In [55]: scipy.__version__
Out[55]: '0.4.9.1780'

In [56]: numpy.__version__
Out[56]: '0.9.7.2289'

In [57]: scipy.test(level=1)

[...]

======================================================================
ERROR: check_matmat (scipy.sparse.tests.test_sparse.test_csc)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.3/site-packages/scipy/sparse/tests/test_sparse.py", 
line 170, in check_matmat
     B = A*A.T
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
664, in __mul__
     return self.dot(other)
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
306, in dot
     result = self.matmat(other)
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
830, in matmat
     return csc_matrix((c, rowc, ptrc), dims=(M, N))
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
557, in __init__
     self._check()
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
573, in _check
     raise ValueError, "nzmax must not be less than nnz"
ValueError: nzmax must not be less than nnz

======================================================================
ERROR: check_matmat (scipy.sparse.tests.test_sparse.test_csr)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.3/site-packages/scipy/sparse/tests/test_sparse.py", 
line 170, in check_matmat
     B = A*A.T
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
1149, in __mul__
     return self.dot(other)
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
306, in dot
     result = self.matmat(other)
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
1316, in matmat
     return csc_matrix((c, rowc, ptrc), dims=(M, N))
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
557, in __init__
     self._check()
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
573, in _check
     raise ValueError, "nzmax must not be less than nnz"
ValueError: nzmax must not be less than nnz

======================================================================
ERROR: check_matmat (scipy.sparse.tests.test_sparse.test_dok)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.3/site-packages/scipy/sparse/tests/test_sparse.py", 
line 170, in check_matmat
     B = A*A.T
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
1803, in __mul__
     return self.dot(other)
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
306, in dot
     result = self.matmat(other)
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
318, in matmat
     return csc.matmat(other)
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
830, in matmat
     return csc_matrix((c, rowc, ptrc), dims=(M, N))
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
557, in __init__
     self._check()
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
573, in _check
     raise ValueError, "nzmax must not be less than nnz"
ValueError: nzmax must not be less than nnz

======================================================================
ERROR: check_matmat (scipy.sparse.tests.test_sparse.test_lil)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.3/site-packages/scipy/sparse/tests/test_sparse.py", 
line 170, in check_matmat
     B = A*A.T
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
199, in __mul__
     return csc * other
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
664, in __mul__
     return self.dot(other)
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
306, in dot
     result = self.matmat(other)
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
830, in matmat
     return csc_matrix((c, rowc, ptrc), dims=(M, N))
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
557, in __init__
     self._check()
   File "/usr/lib/python2.3/site-packages/scipy/sparse/sparse.py", line 
573, in _check
     raise ValueError, "nzmax must not be less than nnz"
ValueError: nzmax must not be less than nnz

----------------------------------------------------------------------
Ran 1508 tests in 6.736s

FAILED (errors=4)

[...]

cheers,
steve

-- 
Random number generation is the art of producing pure gibberish as 
quickly as possible.



More information about the SciPy-user mailing list