[Numpy-discussion] Numpy 1.4.0 rc1 released

Christopher Barker Chris.Barker at noaa.gov
Wed Dec 2 15:28:02 EST 2009


I downloaded rc1, and built it on my PPC OS-X 10.4 box, with Python 
2.5.2 (from python.org). Then ran the tests. I got:

----------------------------------------------------------------------
Ran 2521 tests in 24.804s

FAILED (KNOWNFAIL=4, SKIP=1, errors=27, failures=2)
<nose.result.TextTestResult run=2521 errors=27 failures=2>

Many of them look like this:

ERROR: test_basic (test_defmatrix.TestAlgebra)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 189, in test_basic
     mA = matrix(A)
NameError: global name 'matrix' is not defined


Some sort of namespace issue? np.matrix does exist.

Then there is an issue have no clue about:

======================================================================
FAIL: test_umath.test_nextafterl
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/case.py", 
line 182, in runTest
     self.test(*self.arg)
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/testing/decorators.py", 
line 215, in knownfailer
     return f(*args, **kwargs)
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_umath.py", 
line 866, in test_nextafterl
     return _test_nextafter(np.longdouble)
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_umath.py", 
line 852, in _test_nextafter
     assert np.nextafter(one, two) - one == eps
AssertionError


Is this something with eps and PPC (endian issue?), maybe?


-Chris

Here is the whole run:

ORRW-W-1275328-Barker:~/Downloads/Python2.5 cbarker$ python
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy as np
 >>> np.__version__
'1.4.0rc1'
 >>> np.test()
Running unit tests for numpy
NumPy version 1.4.0rc1
NumPy is installed in 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy
Python version 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 
(Apple Computer, Inc. build 5363)]
nose version 0.10.4
..........................................................................................EEEEEEEEEEEEEEEEEEEEEEEEE.EE...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K...K...................................................F..F.............................K......................K........................................................................................................................................................................................
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S.................................................................
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_basic (test_defmatrix.TestAlgebra)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 189, in test_basic
     mA = matrix(A)
NameError: global name 'matrix' is not defined

======================================================================
ERROR: Check that 'not implemented' operations produce a failure.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 225, in test_notimplemented
     A = matrix([[1., 2.],
NameError: global name 'matrix' is not defined

======================================================================
ERROR: Test raising a matrix to an integer power works as expected.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 212, in test_pow
     m = matrix("1. 2.; 3. 4.")
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_basic (test_defmatrix.TestCasting)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 167, in test_basic
     mA = matrix(A)
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_basic (test_defmatrix.TestCtor)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 8, in test_basic
     mA = matrix(A)
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_bmat_nondefault_str (test_defmatrix.TestCtor)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 43, in test_bmat_nondefault_str
     assert all(bmat("A,A;A,A") == Aresult)
NameError: global name 'bmat' is not defined

======================================================================
ERROR: test_basic (test_defmatrix.TestIndexing)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 287, in test_basic
     x = asmatrix(zeros((3,2),float))
NameError: global name 'asmatrix' is not defined

======================================================================
ERROR: test_instance_methods (test_defmatrix.TestMatrixReturn)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 247, in test_instance_methods
     a = matrix([1.0], dtype='f8')
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_array_from_matrix_list (test_defmatrix.TestNewScalarIndexing)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 296, in setUp
     self.a = matrix([[1, 2],[3,4]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_array_to_list (test_defmatrix.TestNewScalarIndexing)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 296, in setUp
     self.a = matrix([[1, 2],[3,4]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_boolean_indexing (test_defmatrix.TestNewScalarIndexing)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 296, in setUp
     self.a = matrix([[1, 2],[3,4]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_dimesions (test_defmatrix.TestNewScalarIndexing)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 296, in setUp
     self.a = matrix([[1, 2],[3,4]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_fancy_indexing (test_defmatrix.TestNewScalarIndexing)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 296, in setUp
     self.a = matrix([[1, 2],[3,4]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_list_indexing (test_defmatrix.TestNewScalarIndexing)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 296, in setUp
     self.a = matrix([[1, 2],[3,4]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_matrix_element (test_defmatrix.TestNewScalarIndexing)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 296, in setUp
     self.a = matrix([[1, 2],[3,4]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_row_column_indexing (test_defmatrix.TestNewScalarIndexing)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 296, in setUp
     self.a = matrix([[1, 2],[3,4]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_scalar_indexing (test_defmatrix.TestNewScalarIndexing)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 296, in setUp
     self.a = matrix([[1, 2],[3,4]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_asmatrix (test_defmatrix.TestProperties)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 151, in test_asmatrix
     mA = asmatrix(A)
NameError: global name 'asmatrix' is not defined

======================================================================
ERROR: test_basic (test_defmatrix.TestProperties)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 106, in test_basic
     mA = matrix(A)
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_comparisons (test_defmatrix.TestProperties)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 127, in test_comparisons
     mA = matrix(A)
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_max (test_defmatrix.TestProperties)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 78, in test_max
     x = matrix([[1,2,3],[4,5,6]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_min (test_defmatrix.TestProperties)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 84, in test_min
     x = matrix([[1,2,3],[4,5,6]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_noaxis (test_defmatrix.TestProperties)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 156, in test_noaxis
     A = matrix([[1,0],[0,1]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_pinv (test_defmatrix.TestProperties)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 119, in test_pinv
     x = matrix(arange(6).reshape(2,3))
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_prod (test_defmatrix.TestProperties)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 69, in test_prod
     x = matrix([[1,2,3],[4,5,6]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: test_repr (test_defmatrix.TestProperties)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 161, in test_repr
     A = matrix([[1,0],[0,1]])
NameError: global name 'matrix' is not defined

======================================================================
ERROR: Test whether matrix.sum(axis=1) preserves orientation.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_defmatrix.py", 
line 56, in test_sum
     M = matrix([[1,2,0,0],
NameError: global name 'matrix' is not defined

======================================================================
FAIL: test_umath.test_nextafterl
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/case.py", 
line 182, in runTest
     self.test(*self.arg)
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/testing/decorators.py", 
line 215, in knownfailer
     return f(*args, **kwargs)
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_umath.py", 
line 866, in test_nextafterl
     return _test_nextafter(np.longdouble)
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_umath.py", 
line 852, in _test_nextafter
     assert np.nextafter(one, two) - one == eps
AssertionError

======================================================================
FAIL: test_umath.test_spacingl
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/nose-0.10.4-py2.5.egg/nose/case.py", 
line 182, in runTest
     self.test(*self.arg)
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/testing/decorators.py", 
line 215, in knownfailer
     return f(*args, **kwargs)
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_umath.py", 
line 886, in test_spacingl
     return _test_spacing(np.longdouble)
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_umath.py", 
line 873, in _test_spacing
     assert np.spacing(one) == eps
AssertionError

----------------------------------------------------------------------
Ran 2521 tests in 24.804s

FAILED (KNOWNFAIL=4, SKIP=1, errors=27, failures=2)
<nose.result.TextTestResult run=2521 errors=27 failures=2>
 >>>


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov



More information about the NumPy-Discussion mailing list