[SciPy-Dev] Python2.4 test failures with scipy SVN and rc3

Bruce Southey bsouthey at gmail.com
Tue Jul 20 10:20:27 EDT 2010


Hi,
There are a few tests failing with Python2.4 under Linux 64-bit:
$ python2.4
Python 2.4.5 (#1, Oct  6 2008, 09:54:35)
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy as np
 >>> import scipy as sp
 >>> np.__version__
'2.0.0.dev8391'
 >>> sp.__version__
'0.9.0.dev6630'

One is due to use of the 'functools' module introduced in Python2.5 so I 
added the same workaround as scipy.io.arff
http://projects.scipy.org/scipy/ticket/1244

Three are the same error in 'scipy/io/netcdf.py' file:
http://projects.scipy.org/scipy/ticket/1243

Can the test 'test_decomp.test_lapack_misaligned' be set to known as 
this is ticket 1152
http://projects.scipy.org/scipy/ticket/1152

I do not get these errors under Python2.6.


Bruce


======================================================================
ERROR: Failure: ImportError (No module named functools)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/usr/local/lib/python2.4/site-packages/nose/loader.py", line 
363, in loadTestsFromName
     module = self.importer.importFromPath(
   File "/usr/local/lib/python2.4/site-packages/nose/importer.py", line 
39, in importFromPath
     return self.importFromDir(dir_path, fqname)
   File "/usr/local/lib/python2.4/site-packages/nose/importer.py", line 
84, in importFromDir
     mod = load_module(part_fqname, fh, filename, desc)
   File 
"/usr/local/lib/python2.4/site-packages/scipy/io/matlab/tests/test_mio.py", 
line 11, in ?
     from functools import partial
ImportError: No module named functools

======================================================================
ERROR: test suite
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/usr/local/lib/python2.4/site-packages/nose/suite.py", line 
154, in run
     self.setUp()
   File "/usr/local/lib/python2.4/site-packages/nose/suite.py", line 
180, in setUp
     if not self:
   File "/usr/local/lib/python2.4/site-packages/nose/suite.py", line 65, 
in __nonzero__
     test = self.test_generator.next()
   File "/usr/local/lib/python2.4/site-packages/nose/loader.py", line 
221, in generate
     for test in g():
   File 
"/usr/local/lib/python2.4/site-packages/scipy/io/tests/test_netcdf.py", 
line 52, in test_read_write_files
     f = netcdf_file('simple.nc')
   File "/usr/local/lib/python2.4/site-packages/scipy/io/netcdf.py", 
line 182, in __init__
     self._read()
   File "/usr/local/lib/python2.4/site-packages/scipy/io/netcdf.py", 
line 411, in _read
     self._read_var_array()
   File "/usr/local/lib/python2.4/site-packages/scipy/io/netcdf.py", 
line 451, in _read_var_array
     (name, dimensions, shape, attributes,
   File "/usr/local/lib/python2.4/site-packages/scipy/io/netcdf.py", 
line 533, in _read_var
     dimname = self._dims[dimid]
TypeError: list indices must be integers

======================================================================
ERROR: test suite
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/usr/local/lib/python2.4/site-packages/nose/suite.py", line 
154, in run
     self.setUp()
   File "/usr/local/lib/python2.4/site-packages/nose/suite.py", line 
180, in setUp
     if not self:
   File "/usr/local/lib/python2.4/site-packages/nose/suite.py", line 65, 
in __nonzero__
     test = self.test_generator.next()
   File "/usr/local/lib/python2.4/site-packages/nose/loader.py", line 
221, in generate
     for test in g():
   File 
"/usr/local/lib/python2.4/site-packages/scipy/io/tests/test_netcdf.py", 
line 91, in test_read_write_sio
     f2 = netcdf_file(eg_sio2)
   File "/usr/local/lib/python2.4/site-packages/scipy/io/netcdf.py", 
line 182, in __init__
     self._read()
   File "/usr/local/lib/python2.4/site-packages/scipy/io/netcdf.py", 
line 411, in _read
     self._read_var_array()
   File "/usr/local/lib/python2.4/site-packages/scipy/io/netcdf.py", 
line 451, in _read_var_array
     (name, dimensions, shape, attributes,
   File "/usr/local/lib/python2.4/site-packages/scipy/io/netcdf.py", 
line 533, in _read_var
     dimname = self._dims[dimid]
TypeError: list indices must be integers

======================================================================
ERROR: test_netcdf.test_read_example_data
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/usr/local/lib/python2.4/site-packages/nose/case.py", line 182, 
in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib/python2.4/site-packages/scipy/io/tests/test_netcdf.py", 
line 119, in test_read_example_data
     f = netcdf_file(fname, 'r')
   File "/usr/local/lib/python2.4/site-packages/scipy/io/netcdf.py", 
line 182, in __init__
     self._read()
   File "/usr/local/lib/python2.4/site-packages/scipy/io/netcdf.py", 
line 411, in _read
     self._read_var_array()
   File "/usr/local/lib/python2.4/site-packages/scipy/io/netcdf.py", 
line 451, in _read_var_array
     (name, dimensions, shape, attributes,
   File "/usr/local/lib/python2.4/site-packages/scipy/io/netcdf.py", 
line 533, in _read_var
     dimname = self._dims[dimid]
TypeError: list indices must be integers

======================================================================
ERROR: test_decomp.test_lapack_misaligned(<function solve at 
0x7f2a8eb07e60>, (array([[  1.734e-255,   8.189e-217,   4.025e-178,   
1.903e-139,   9.344e-101,
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/usr/local/lib/python2.4/site-packages/nose/case.py", line 182, 
in runTest
     self.test(*self.arg)
   File 
"/usr/local/lib/python2.4/site-packages/scipy/linalg/tests/test_decomp.py", 
line 1074, in check_lapack_misaligned
     func(*a,**kwargs)
   File "/usr/local/lib/python2.4/site-packages/scipy/linalg/basic.py", 
line 49, in solve
     a1, b1 = map(asarray_chkfinite,(a,b))
   File 
"/usr/local/lib/python2.4/site-packages/numpy/lib/function_base.py", 
line 527, in asarray_chkfinite
     raise ValueError(
ValueError: array must not contain infs or NaNs

----------------------------------------------------------------------
Ran 4472 tests in 79.999s

FAILED (KNOWNFAIL=11, SKIP=40, errors=5)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20100720/c7441bdc/attachment.html>


More information about the SciPy-Dev mailing list