[SciPy-Dev] scipy.test() errors

Warren Weckesser warren.weckesser@enthought....
Mon Jun 13 15:37:01 CDT 2011


Hi Nils,

Thanks for the update.  I just fixed the import error ("ERROR: Failure:
ImportError (No module named array_tools)") in commit 20b32fe.

Warren


On Mon, Jun 13, 2011 at 3:02 PM, Nils Wagner
<nwagner@iam.uni-stuttgart.de>wrote:

> Hi all,
>
> I found two scipy.test() errors and a new failure...
>
> >>> scipy.__version__
> '0.10.0.dev7179'
>
> python2.6.5
>
> Nils
>
> ======================================================================
> ERROR: test_netcdf.test_read_example_data
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
> line 183, in runTest
>     self.test(*self.arg)
>   File
>
> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/tests/test_netcdf.py",
> line 124, in test_read_example_data
>     f = netcdf_file(fname, 'r')
>   File
> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/netcdf.py",
> line 205, in __init__
>     self._read()
>   File
> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/netcdf.py",
> line 492, in _read
>     self._read_var_array()
>   File
> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/netcdf.py",
> line 536, in _read_var_array
>     typecode, size, dtype_, begin_, vsize) =
> self._read_var()
>   File
> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/netcdf.py",
> line 624, in _read_var
>     attributes = self._read_att_array()
>   File
> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/netcdf.py",
> line 522, in _read_att_array
>     attributes[name] = self._read_values()
>   File
> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/netcdf.py",
> line 649, in _read_values
>     values = fromstring(values, dtype='>%s%d' %
> (typecode, size))
> TypeError: data type ">d8" not understood
>
> ======================================================================
> ERROR: Failure: ImportError (No module named array_tools)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/loader.py",
> line 382, in loadTestsFromName
>     addr.filename, addr.module)
>   File
>
> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/importer.py",
> line 39, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File
>
> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/importer.py",
> line 86, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File
>
> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/tests/test_array_tools.py",
> line 7, in <module>
>     from scipy.signal.array_tools import axis_slice,
> axis_reverse, \
> ImportError: No module named array_tools
>
>
> ======================================================================
> FAIL: test_lu (test_decomp.TestLUSolve)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
>
> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/linalg/tests/test_decomp.py",
> line 732, in test_lu
>     assert_array_equal(x1,x2)
>   File
> "/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py",
> line 706, in assert_array_equal
>     verbose=verbose, header='Arrays are not equal')
>   File
> "/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py",
> line 635, in assert_array_compare
>     raise AssertionError(msg)
> AssertionError:
> Arrays are not equal
>
> (mismatch 90.0%)
>  x: array([-0.36278861,  0.75920432,  0.19844271,
>  0.65479681,  0.40510514,
>         0.79604687, -1.05344321, -0.25597019,
> -0.34997286,  0.07080989])
>  y: array([-0.36278861,  0.75920432,  0.19844271,
>  0.65479681,  0.40510514,
>         0.79604687, -1.05344321, -0.25597019,
> -0.34997286,  0.07080989])
>
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20110613/98a718ed/attachment.html 


More information about the SciPy-Dev mailing list