[SciPy-Dev] io/matlab test errors

Matthew Brett matthew.brett at gmail.com
Sat May 29 00:12:57 EDT 2010


Hi,

On Thu, May 27, 2010 at 11:32 AM,  <josef.pktd at gmail.com> wrote:
> does anyone get these?  WindosXP32, numpy 1.4.0, scipy 0.8.0.dev6416

They should be fixed as of r6419 ?

It was mostly the age-old opening files as text mode difference.   I
keep forgetting.

Thanks a lot,

Matthew

> ======================================================================
> ERROR: Failure: TypeError (Expecting miMATRIX type here, got 3917)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\loader
> .py", line 224, in generate
>    for test in g():
>  File "C:\Josef\_progs\Subversion\scipy-trunk_after\trunk\dist\scipy-0.8.0.dev6
> 416.win32\Programs\Python25\Lib\site-packages\scipy\io\matlab\tests\test_mio.py"
> , line 718, in test_func_read
>    d = rdr.get_variables()
>  File "\Programs\Python25\Lib\site-packages\scipy\io\matlab\mio5.py", line 410,
>  in get_variables
>  File "\Programs\Python25\Lib\site-packages\scipy\io\matlab\mio5.py", line 372,
>  in read_var_header
> TypeError: Expecting miMATRIX type here, got 3917
>
> ======================================================================
> ERROR: Failure: TypeError (Expecting miMATRIX type here, got 1224736768)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\loader
> .py", line 224, in generate
>    for test in g():
>  File "C:\Josef\_progs\Subversion\scipy-trunk_after\trunk\dist\scipy-0.8.0.dev6
> 416.win32\Programs\Python25\Lib\site-packages\scipy\io\matlab\tests\test_mio.py"
> , line 728, in test_mat_dtype
>    d = rdr.get_variables()
>  File "\Programs\Python25\Lib\site-packages\scipy\io\matlab\mio5.py", line 410,
>  in get_variables
>  File "\Programs\Python25\Lib\site-packages\scipy\io\matlab\mio5.py", line 372,
>  in read_var_header
> TypeError: Expecting miMATRIX type here, got 1224736768
>
> ======================================================================
> ERROR: Failure: error (Error -3 while decompressing: invalid distance too far ba
> ck)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\loader
> .py", line 379, in loadTestsFromName
>    addr.filename, addr.module)
>  File "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\import
> er.py", line 39, in importFromPath
>    return self.importFromDir(dir_path, fqname)
>  File "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\import
> er.py", line 86, in importFromDir
>    mod = load_module(part_fqname, fh, filename, desc)
>  File "C:\Josef\_progs\Subversion\scipy-trunk_after\trunk\dist\scipy-0.8.0.dev6
> 416.win32\Programs\Python25\Lib\site-packages\scipy\io\matlab\tests\test_mio_fun
> cs.py", line 57, in <module>
>    ws_vars = read_workspace_vars(fname)
>  File "C:\Josef\_progs\Subversion\scipy-trunk_after\trunk\dist\scipy-0.8.0.dev6
> 416.win32\Programs\Python25\Lib\site-packages\scipy\io\matlab\tests\test_mio_fun
> cs.py", line 44, in read_workspace_vars
>    vars = rdr.get_variables()
>  File "\Programs\Python25\Lib\site-packages\scipy\io\matlab\mio5.py", line 410,
>  in get_variables
>  File "\Programs\Python25\Lib\site-packages\scipy\io\matlab\mio5.py", line 362,
>  in read_var_header
> error: Error -3 while decompressing: invalid distance too far back
>
> ======================================================================
> ERROR: test suite for <module 'test_streams' from 'C:\Josef\_progs\Subversion\sc
> ipy-trunk_after\trunk\dist\scipy-0.8.0.dev6416.win32\Programs\Python25\Lib\site-
> packages\scipy\io\matlab\tests\test_streams.pyc'>
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\suite.
> py", line 201, in run
>    self.tearDown()
>  File "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\suite.
> py", line 323, in tearDown
>    self.teardownContext(ancestor)
>  File "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\suite.
> py", line 339, in teardownContext
>    try_run(context, names)
>  File "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\util.p
> y", line 487, in try_run
>    return func()
>  File "C:\Josef\_progs\Subversion\scipy-trunk_after\trunk\dist\scipy-0.8.0.dev6
> 416.win32\Programs\Python25\Lib\site-packages\scipy\io\matlab\tests\test_streams
> .py", line 37, in teardown
>    os.unlink(fname)
> WindowsError: [Error 32] The process cannot access the file because it is being
> used by another process: 'c:\\docume~1\\josef\\locals~1\\temp\\tmpcx8egl'
>
> ======================================================================
> FAIL: test_mio_utils.test_squeeze_element(False,)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\case.p
> y", line 183, in runTest
>    self.test(*self.arg)
> AssertionError
>
> ----------------------------------------------------------------------
> Ran 386 tests in 2.328s



More information about the SciPy-Dev mailing list