[SciPy-dev] recursion error in tests

Christopher Hanley chanley@stsci....
Mon Nov 10 09:49:03 CST 2008


Hi,

I am running scipy.test() for version 0.7.0.dev5042.  When I do so I 
receive the following error:

..........................................................................................................................................................................................................................................
======================================================================
ERROR: Regression test for #653.
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Users/chanley/dev/site-packages/lib/python/nose/case.py", line 
182, in runTest
     self.test(*self.arg)
   File 
"/Users/chanley/dev/site-packages/lib/python/scipy/io/matlab/tests/test_mio.py", 
line 343, in test_regression_653
     savemat(StringIO(), {'d':{1:2}}, format='5')
   File 
"/Users/chanley/dev/site-packages/lib/python/scipy/io/matlab/mio.py", 
line 159, in savemat
     MW.put_variables(mdict)
   File 
"/Users/chanley/dev/site-packages/lib/python/scipy/io/matlab/mio5.py", 
line 996, in put_variables
     mat_writer.write()
   File 
"/Users/chanley/dev/site-packages/lib/python/scipy/io/matlab/mio5.py", 
line 855, in write
     MW.write()
   File 
"/Users/chanley/dev/site-packages/lib/python/scipy/io/matlab/mio5.py", 
line 855, in write
     MW.write()
<snip> ... </snip>
   File 
"/Users/chanley/dev/site-packages/lib/python/scipy/io/matlab/mio5.py", 
line 855, in write
     MW.write()
   File 
"/Users/chanley/dev/site-packages/lib/python/scipy/io/matlab/mio5.py", 
line 855, in write
     MW.write()
   File 
"/Users/chanley/dev/site-packages/lib/python/scipy/io/matlab/mio5.py", 
line 849, in write
     self.write_header(mclass=mxCELL_CLASS)
   File 
"/Users/chanley/dev/site-packages/lib/python/scipy/io/matlab/mio5.py", 
line 757, in write_header
     self.write_element(np.array(shape, dtype='i4'))
   File 
"/Users/chanley/dev/site-packages/lib/python/scipy/io/matlab/mio5.py", 
line 704, in write_element
     self.write_smalldata_element(arr, mdtype, byte_count)
   File 
"/Users/chanley/dev/site-packages/lib/python/scipy/io/matlab/mio5.py", 
line 714, in write_smalldata_element
     self.write_dtype(tag)
   File 
"/Users/chanley/dev/site-packages/lib/python/scipy/io/matlab/mio5.py", 
line 696, in write_dtype
     self.file_stream.write(arr.tostring())
   File "/usr/stsci/pyssgdev/Python-2.5.1/lib/python2.5/StringIO.py", 
line 213, in write
     _complain_ifclosed(self.closed)
RuntimeError: maximum recursion depth exceeded

----------------------------------------------------------------------
Ran 2547 tests in 33.578s

FAILED (SKIP=28, errors=1)

Chris

-- 
Christopher Hanley
Senior Systems Software Engineer
Space Telescope Science Institute
3700 San Martin Drive
Baltimore MD, 21218
(410) 338-4338


More information about the Scipy-dev mailing list