[SciPy-dev] Updated OS X build instructions -- test failures.

Andrew Jaffe a.h.jaffe at gmail.com
Fri Jan 6 04:34:06 CST 2006


Pearu Peterson wrote:
> 
> 
>>From the comment in the machar.py source it seems to be a gcc 4.0 issue 
> (PPC). What compiler are you using? Could you resend the error report 
> after updating numpy from svn? Or better file a ticket to
> 

Pearu, thanks for the reminder: the old gcc 3.3 vs 4.0 problem. The good 
news is that switching to 3.3 fixes the machar problem. However, there 
are new failures, at least with the version 1840 from svn.

See further down for another, unrelated problem in linalg.

I will keep this thread going, but also post tickets.

In [5]: numpy.test(1,1)
   Found 2 tests for numpy.core.umath
   Found 21 tests for numpy.core.ma
   Found 6 tests for numpy.core.records
   Found 3 tests for numpy.distutils.misc_util
   Found 3 tests for numpy.lib.getlimits
   Found 9 tests for numpy.lib.twodim_base
   Found 44 tests for numpy.lib.shape_base
   Found 4 tests for numpy.lib.index_tricks
   Found 42 tests for numpy.lib.type_check
   Found 3 tests for numpy.dft.helper
   Found 6 tests for numpy.core.defmatrix
   Found 33 tests for numpy.lib.function_base
   Found 0 tests for __main__
............F..............................................................................................................................F...FF.................................
======================================================================
FAIL: Test of masked element
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/core/tests/test_ma.py", 
line 508, in check_testMasked
     self.failUnlessRaises(Exception, lambda x,y: x+y, masked, masked)
AssertionError: Exception not raised

======================================================================
FAIL: check_basic (numpy.core.defmatrix.test_defmatrix.test_algebra)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/core/tests/test_defmatrix.py", 
line 111, in check_basic
     assert allclose((mA ** -i).A, B)
AssertionError

======================================================================
FAIL: check_basic (numpy.core.defmatrix.test_defmatrix.test_properties)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/core/tests/test_defmatrix.py", 
line 34, in check_basic
     assert allclose(linalg.inv(A), mA.I)
AssertionError

======================================================================
FAIL: check_comparisons 
(numpy.core.defmatrix.test_defmatrix.test_properties)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/core/tests/test_defmatrix.py", 
line 50, in check_comparisons
     assert all(mB == matrix(A+0.1))
AssertionError

----------------------------------------------------------------------
Ran 178 tests in 1.136s

FAILED (failures=4)
Out[5]: <unittest.TextTestRunner object at 0x16a7850>

> http://projects.scipy.org/scipy/numpy
> 
> Pearu

Also, I've found another problem, not in the unittests, with 
linalg.cholesky_decomposition:

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/linalg/linalg.py 
in cholesky_decomposition(a)
     127     if results['info'] > 0:
     128         raise LinAlgError, 'Matrix is not positive definite - 
Cholesky decomposition cannot be computed'
--> 129     return transpose(triu(a,k=0)).copy()
     130
     131

NameError: global name 'triu' is not defined

triu() is found in numpy/lib/twodim_base; I suppose this means it's not 
being imported correctly here.


Thanks for the great and quick work to all, especially Travis!

A




More information about the Scipy-dev mailing list