[Numpy-discussion] Numpy 1.4.0 rc1 released

Nadav Horesh nadavh@visionsense....
Wed Dec 2 02:08:37 CST 2009


I got the following errors with a clean installation of numpy (previous installations deleted):

Running unit tests for numpy
NumPy version 1.4.0rc1
NumPy is installed in /usr/lib64/python2.6/site-packages/numpy
Python version 2.6.4 (r264:75706, Nov  5 2009, 20:27:15) [GCC 4.3.4]
nose version 0.11.1
..........................................................................................EEEEEEEEEEEEEEEEEEEEEEEEE.EE.............................................................SSSSSSSS................................................................................................................................................................................................................................................................................SSS.......................................................................................................................................................................................................................................K..............................................................F.........................K......................K...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_basic (test_defmatrix.TestAlgebra)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 "/usr/lib64/python2.6/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 bug in reduceat with structured arrays copied for speed.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/nose-0.11.1-py2.6.egg/nose/case.py", line 183, in runTest
    self.test(*self.arg)
  File "/usr/lib64/python2.6/site-packages/numpy/core/tests/test_umath.py", line 952, in test_reduceat
    assert_array_almost_equal(h1, h2)
  File "/usr/lib64/python2.6/site-packages/numpy/testing/utils.py", line 765, in assert_array_almost_equal
    header='Arrays are not almost equal')
  File "/usr/lib64/python2.6/site-packages/numpy/testing/utils.py", line 609, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal

(mismatch 100.0%)
 x: array([  9.41165773e+09,   9.41165773e+09,   9.41165773e+09,
         9.41165773e+09], dtype=float32)
 y: array([  700.,   800.,  1000.,  7500.], dtype=float32)

----------------------------------------------------------------------
Ran 2521 tests in 10.292s



I am able to correct the error:

NameError: global name 'matrix' is not defined

but I wonder why I get it.

System: gentoo linux on amd64, python2.6.4

  Nadav 

-----Original Message-----
From: numpy-discussion-bounces@scipy.org on behalf of Jarrod Millman
Sent: Wed 02-Dec-09 02:05
To: Discussion of Numerical Python
Subject: Re: [Numpy-discussion] Numpy 1.4.0 rc1 released
 
On Tue, Dec 1, 2009 at 4:47 AM, David Cournapeau <cournape@gmail.com> wrote:
> The first release candidate for 1.4.0 has been released.

____________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 6168 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/numpy-discussion/attachments/20091202/83b93d6a/attachment-0001.bin 


More information about the NumPy-Discussion mailing list