[Scipy-tickets] [SciPy] #1243: netcdf tests fail with Python 2.4

SciPy Trac scipy-tickets@scipy....
Tue Jul 20 09:02:19 CDT 2010


#1243: netcdf tests fail with Python 2.4
----------------------+-----------------------------------------------------
 Reporter:  bsouthey  |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  normal    |   Milestone:  0.8.0   
Component:  scipy.io  |     Version:  devel   
 Keywords:            |  
----------------------+-----------------------------------------------------
 Under 64bit Linux, Python2.4 fails 3 tests in the same place. However no
 test failures are reported under Python2.6

 $ 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'

 ======================================================================
 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

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1243>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list