[Numpy-discussion] NameError: global name 'matrix' is not defined

Robert Kern robert.kern@gmail....
Wed Sep 16 11:41:15 CDT 2009


On Wed, Sep 16, 2009 at 11:39, Nils Wagner<nwagner@iam.uni-stuttgart.de> wrote:
> Ran 2235 tests in 25.593s
>
> FAILED (KNOWNFAIL=1, errors=28, failures=1)
> <nose.result.TextTestResult run=2235 errors=28 failures=1>
>>>> import numpy
>>>> numpy.__version__
> '1.4.0.dev7400'
>
> ======================================================================
> ERROR: test_basic (test_defmatrix.TestAlgebra)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/home/nwagner/local/lib64/python2.6/site-packages/numpy/core/tests/test_defmatrix.py",
> line 190, in test_basic
>     mA = matrix(A)
> NameError: global name 'matrix' is not defined

Clean out old files before reinstalling.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the NumPy-Discussion mailing list