[Numpy-discussion] URGENT: Re: 1.1.0rc1, Mac Installer: please test it

George Nurser gnurser at googlemail.com
Wed May 21 09:58:37 EDT 2008


Hmm. I also get some problems with test(all=True)
2 failures (though they look spurious to me) + 18 errors.

Intel MBP, 10.5.2, macPython 2.5.2, apple gcc 4.0.1

George Nurser.
>>> numpy.test(all=True)
Numpy is installed in
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy
Numpy version 1.1.0rc1
Python version 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1
(Apple Computer, Inc. build 5363)]
....
======================================================================
ERROR: Ticket #396
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_regression.py",
line 602, in check_poly1d_nan_roots
    self.failUnlessRaises(np.linalg.LinAlgError,getattr,p,"r")
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/unittest.py",
line 320, in failUnlessRaises
    callableObj(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/lib/polynomial.py",
line 661, in __getattr__
    return roots(self.coeffs)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/lib/polynomial.py",
line 124, in roots
    roots = _eigvals(A)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/lib/polynomial.py",
line 40, in _eigvals
    return eigvals(arg)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/decomp.py",
line 478, in eigvals
    return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/decomp.py",
line 150, in eig
    a1 = asarray_chkfinite(a)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/lib/function_base.py",
line 527, in asarray_chkfinite
    raise ValueError, "array must not contain infs or NaNs"
ValueError: array must not contain infs or NaNs

======================================================================
ERROR: Ticket #396
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/tests/test_regression.py",
line 602, in check_poly1d_nan_roots
    self.failUnlessRaises(np.linalg.LinAlgError,getattr,p,"r")
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/unittest.py",
line 320, in failUnlessRaises
    callableObj(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/lib/polynomial.py",
line 661, in __getattr__
    return roots(self.coeffs)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/lib/polynomial.py",
line 124, in roots
    roots = _eigvals(A)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/lib/polynomial.py",
line 37, in _eigvals
    return eigvals(arg)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/decomp.py",
line 478, in eigvals
    return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/decomp.py",
line 150, in eig
    a1 = asarray_chkfinite(a)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/lib/function_base.py",
line 527, in asarray_chkfinite
    raise ValueError, "array must not contain infs or NaNs"
ValueError: array must not contain infs or NaNs

======================================================================
ERROR: Tests the confidence intervals of the trimmed mean.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_morestats.py",
line 43, in test_trimmedmeanci
    assert_equal(numpy.round(trimmed_mean_ci(data,0.2),1), [561.8, 630.6])
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/morestats.py",
line 200, in trimmed_mean_ci
    tstde = trimmed_stde(data, proportiontocut=proportiontocut, axis=axis)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/mstats.py",
line 210, in trimmed_stde
    return _trimmed_stde_1D(data.ravel(), proportiontocut)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/mstats.py",
line 204, in _trimmed_stde_1D
    winstd = winsorized.stdu()
AttributeError: 'MaskedArray' object has no attribute 'stdu'

======================================================================
ERROR: test_hdquantiles (numpy.ma.tests.test_morestats.TestQuantiles)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_morestats.py",
line 97, in test_hdquantiles
    hdq = hdquantiles_sd(data,[0.25, 0.5, 0.75])
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/morestats.py",
line 168, in hdquantiles_sd
    result = _hdsd_1D(data.compressed(), p)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/morestats.py",
line 144, in _hdsd_1D
    xsorted = numpy.sort(data.compressed())
AttributeError: 'numpy.ndarray' object has no attribute 'compressed'

======================================================================
ERROR: Test creation by view
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mrecords.py",
line 51, in test_byview
    assert_equal_records(mbase._data, base._data.view(recarray))
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 74, in assert_equal_records
    assert_equal(getattr(a,f), getattr(b,f))
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 103, in assert_equal
    return _assert_equal_on_sequences(actual.tolist(),
RuntimeError: array_item not returning smaller-dimensional array

======================================================================
ERROR: Test filling the array
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mrecords.py",
line 258, in test_filled
    assert_equal(mrecfilled['c'], np.array(('one','two','N/A'), dtype='|S8'))
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 103, in assert_equal
    return _assert_equal_on_sequences(actual.tolist(),
RuntimeError: array_item not returning smaller-dimensional array

======================================================================
ERROR: Tests fields retrieval
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mrecords.py",
line 62, in test_get
    assert_equal(getattr(mbase,field), mbase[field])
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 104, in assert_equal
    desired.tolist(),
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/core.py",
line 2552, in tolist
    result = self.filled().tolist()
RuntimeError: array_item not returning smaller-dimensional array

======================================================================
ERROR: Test pickling
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mrecords.py",
line 243, in test_pickling
    assert_equal_records(mrec_._data, mrec._data)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 74, in assert_equal_records
    assert_equal(getattr(a,f), getattr(b,f))
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 103, in assert_equal
    return _assert_equal_on_sequences(actual.tolist(),
RuntimeError: array_item not returning smaller-dimensional array

======================================================================
ERROR: test_set_elements (numpy.ma.tests.test_mrecords.TestMRecords)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mrecords.py",
line 185, in test_set_elements
    assert_equal(mbase._fieldmask.tolist(),
RuntimeError: array_item not returning smaller-dimensional array

======================================================================
ERROR: Tests setting fields.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mrecords.py",
line 104, in test_set_fields
    assert_equal(mbase._fieldmask.tolist(),
RuntimeError: array_item not returning smaller-dimensional array

======================================================================
ERROR: test_set_mask (numpy.ma.tests.test_mrecords.TestMRecords)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mrecords.py",
line 142, in test_set_mask
    assert_equal(mbase._fieldmask.tolist(),
RuntimeError: array_item not returning smaller-dimensional array

======================================================================
ERROR: Test tolist.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mrecords.py",
line 269, in test_tolist
    assert_equal(mrec.tolist(),
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/mrecords.py",
line 474, in tolist
    result = narray(self.filled().tolist(), dtype=object)
RuntimeError: array_item not returning smaller-dimensional array

======================================================================
ERROR: Test construction from records.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mrecords.py",
line 312, in test_fromrecords
    assert_equal_records(pa,mpa)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 74, in assert_equal_records
    assert_equal(getattr(a,f), getattr(b,f))
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 103, in assert_equal
    return _assert_equal_on_sequences(actual.tolist(),
RuntimeError: array_item not returning smaller-dimensional array

======================================================================
ERROR: Tests construction from records w/ mask.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mrecords.py",
line 333, in test_fromrecords_wmask
    _mrec = fromrecords(nrec.tolist(), dtype=ddtype, mask=[0,1,0,])
RuntimeError: array_item not returning smaller-dimensional array

======================================================================
ERROR: Tests the trimmed mean standard error.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mstats.py",
line 144, in test_trimmed_stde
    assert_almost_equal(trimmed_stde(data,0.2), 56.1, 1)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/mstats.py",
line 210, in trimmed_stde
    return _trimmed_stde_1D(data.ravel(), proportiontocut)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/mstats.py",
line 204, in _trimmed_stde_1D
    winstd = winsorized.stdu()
AttributeError: 'MaskedArray' object has no attribute 'stdu'

======================================================================
ERROR: Tests the Winsorization of the data.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mstats.py",
line 150, in test_winsorization
    assert_almost_equal(winsorize(data).varu(), 21551.4, 1)
AttributeError: 'MaskedArray' object has no attribute 'varu'

======================================================================
ERROR: check_testUfuncRegression (numpy.ma.tests.test_old_ma.TestUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_old_ma.py",
line 657, in check_testUfuncRegression
    uf = getattr(umath, f)
NameError: global name 'umath' is not defined

======================================================================
ERROR: Tests whether the subclass is kept.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_subclassing.py",
line 86, in check_data_subclassing
    assert_equal(xmsub._data, xsub)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 106, in assert_equal
    return assert_array_equal(actual, desired, err_msg)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 201, in assert_array_equal
    header='Arrays are not equal')
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 185, in assert_array_compare
    reduced = reduced.tolist()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/core.py",
line 2552, in tolist
    result = self.filled().tolist()
RuntimeError: array_item not returning smaller-dimensional array

======================================================================
FAIL: Tests the Marits-Jarrett estimator
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_morestats.py",
line 36, in test_mjci
    assert_almost_equal(mjci(data),[55.76819,45.84028,198.8788],5)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 134, in assert_almost_equal
    return assert_array_almost_equal(actual, desired, decimal, err_msg)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 227, in assert_array_almost_equal
    header='Arrays are not almost equal')
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 193, in assert_array_compare
    assert cond, msg
AssertionError:
Arrays are not almost equal

(mismatch 33.3333333333%)
 x: array([  55.76818915,   45.84027529,  198.8787528 ])
 y: array([  55.76819,   45.84028,  198.8788 ])

======================================================================
FAIL: Test quantiles 1D - w/ mask.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/tests/test_mstats.py",
line 60, in test_1d_mask
    [24.833333, 50.0, 75.166666])
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 134, in assert_almost_equal
    return assert_array_almost_equal(actual, desired, decimal, err_msg)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 227, in assert_array_almost_equal
    header='Arrays are not almost equal')
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/ma/testutils.py",
line 193, in assert_array_compare
    assert cond, msg
AssertionError:
Arrays are not almost equal

(mismatch 66.6666666667%)
 x: array([ 24.83333333,  50.        ,  75.16666667])
 y: array([ 24.833333,  50.      ,  75.166666])

----------------------------------------------------------------------
Ran 1292 tests in 2.053s

FAILED (failures=2, errors=18)
<unittest._TextTestResult run=1292 errors=18 failures=2>



More information about the NumPy-Discussion mailing list