[SciPy-dev] Errors and failures

Nils Wagner nwagner at iam.uni-stuttgart.de
Wed Jul 5 13:49:00 CDT 2006


A short bug report wrt to latest svn numpy/scipy

>>> scipy.__version__
'0.5.0.2041'
>>> numpy.__version__
'0.9.9.2735'

numpy.test(1,10)

======================================================================
ERROR: check_basic 
(numpy.core.tests.test_defmatrix.test_algebra)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/numpy/core/tests/test_defmatrix.py", 
line 125, in check_basic
     Ainv = linalg.inv(A)
   File 
"/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", 
line 122, in inv
     return wrap(solve(a, identity(a.shape[0])))
   File 
"/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", 
line 109, in solve
     results = lapack_routine(n_eq, n_rhs, a, n_eq, 
pivots, b, n_eq, 0)
LapackError: Parameter ipiv is not of type PyArray_INT in 
lapack_lite.dgesv

======================================================================
ERROR: check_instance_methods 
(numpy.core.tests.test_defmatrix.test_matrix_return)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/numpy/core/tests/test_defmatrix.py", 
line 157, in check_instance_methods
     f = eval('a.%s' % attrib)
   File "<string>", line 0, in ?
   File 
"/usr/lib/python2.4/site-packages/numpy/core/defmatrix.py", 
line 293, in getI
     return matrix(inv(self))
   File 
"/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", 
line 122, in inv
     return wrap(solve(a, identity(a.shape[0])))
   File 
"/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", 
line 109, in solve
     results = lapack_routine(n_eq, n_rhs, a, n_eq, 
pivots, b, n_eq, 0)
LapackError: Parameter ipiv is not of type PyArray_INT in 
lapack_lite.dgesv

======================================================================
ERROR: check_basic 
(numpy.core.tests.test_defmatrix.test_properties)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/numpy/core/tests/test_defmatrix.py", 
line 48, in check_basic
     assert allclose(linalg.inv(A), mA.I)
   File 
"/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", 
line 122, in inv
     return wrap(solve(a, identity(a.shape[0])))
   File 
"/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", 
line 109, in solve
     results = lapack_routine(n_eq, n_rhs, a, n_eq, 
pivots, b, n_eq, 0)
LapackError: Parameter ipiv is not of type PyArray_INT in 
lapack_lite.dgesv

----------------------------------------------------------------------
Ran 387 tests in 0.821s

FAILED (errors=3)


scipy.test(1,10)

======================================================================
ERROR: Compare dgbtrs  solutions for linear equation 
system  A*x = b
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/linalg/tests/test_decomp.py", 
line 383, in check_dgbtrs
     y_lin = linalg.solve(self.real_mat, self.b)
   File 
"/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", 
line 109, in solve
     results = lapack_routine(n_eq, n_rhs, a, n_eq, 
pivots, b, n_eq, 0)
LapackError: Parameter ipiv is not of type PyArray_INT in 
lapack_lite.dgesv

======================================================================
ERROR: Compare zgbtrs  solutions for linear equation 
system  A*x = b
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/linalg/tests/test_decomp.py", 
line 393, in check_zgbtrs
     y_lin = linalg.solve(self.comp_mat, self.bc)
   File 
"/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", 
line 109, in solve
     results = lapack_routine(n_eq, n_rhs, a, n_eq, 
pivots, b, n_eq, 0)
LapackError: Parameter ipiv is not of type PyArray_INT in 
lapack_lite.zgesv

======================================================================
ERROR: check_random 
(scipy.linalg.tests.test_basic.test_det)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/linalg/tests/test_basic.py", 
line 287, in check_random
     d2 = basic_det(a)
   File 
"/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", 
line 453, in det
     results = lapack_routine(n, n, a, n, pivots, 0)
LapackError: Parameter ipiv is not of type PyArray_INT in 
lapack_lite.dgetrf

======================================================================
ERROR: check_random_complex 
(scipy.linalg.tests.test_basic.test_det)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/linalg/tests/test_basic.py", 
line 297, in check_random_complex
     d2 = basic_det(a)
   File 
"/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", 
line 453, in det
     results = lapack_routine(n, n, a, n, pivots, 0)
LapackError: Parameter ipiv is not of type PyArray_INT in 
lapack_lite.zgetrf

======================================================================
FAIL: check_hyp2f1 
(scipy.special.tests.test_basic.test_hyp2f1)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/special/tests/test_basic.py", 
line 1174, in check_hyp2f1
     assert_almost_equal(cv, v, 8, err_msg='test #%d' % i)
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 154, in assert_almost_equal
     assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal: test #6
  ACTUAL: 1.7976931348623157e+308
  DESIRED: 0.12499999999999999

======================================================================
FAIL: check_simple 
(scipy.optimize.tests.test_cobyla.test_cobyla)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/optimize/tests/test_cobyla.py", 
line 20, in check_simple
     assert_almost_equal(x, [x0, x1], decimal=5)
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 152, in assert_almost_equal
     return assert_array_almost_equal(actual, desired, 
decimal, err_msg)
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 222, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File 
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py", 
line 207, in assert_array_compare
     assert cond, msg
AssertionError:
Arrays are not almost equal

(mismatch 100.0%)
  x: array([ 4.957975  ,  0.64690335])
  y: array([ 4.95535625,  0.66666667])

----------------------------------------------------------------------
Ran 1552 tests in 6.465s

FAILED (failures=2, errors=4)


More information about the Scipy-dev mailing list