[SciPy-Dev] Errors in 0.8.x

Vincent Davis vincent@vincentdavis....
Tue Jun 15 21:44:32 CDT 2010


On Tue, Jun 15, 2010 at 8:27 PM, Charles R Harris
<charlesr.harris@gmail.com> wrote:
> Hi All,
>
> I get some error in the tests:
>
> ======================================================================
> ERROR: Failure: ValueError (__builtin__.file does not appear to be the
> correct type object)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/pymodules/python2.6/nose/loader.py", line 379, in
> loadTestsFromName
>     addr.filename, addr.module)
>   File "/usr/lib/pymodules/python2.6/nose/importer.py", line 39, in
> importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/usr/lib/pymodules/python2.6/nose/importer.py", line 86, in
> importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "/usr/local/lib/python2.6/dist-packages/scipy/io/__init__.py", line
> 75, in <module>
>     from matlab.mio import loadmat, savemat
>   File "/usr/local/lib/python2.6/dist-packages/scipy/io/matlab/__init__.py",
> line 2, in <module>
>     from mio import loadmat, savemat
>   File "/usr/local/lib/python2.6/dist-packages/scipy/io/matlab/mio.py", line
> 13, in <module>
>     from mio5 import MatFile5Reader, MatFile5Writer
>   File "/usr/local/lib/python2.6/dist-packages/scipy/io/matlab/mio5.py",
> line 90, in <module>
>     from mio5_utils import VarReader5
>   File "streams.pxd", line 3, in init scipy.io.matlab.mio5_utils
> (scipy/io/matlab/mio5_utils.c:9394)
>   File "streams.pyx", line 26, in init scipy.io.matlab.streams
> (scipy/io/matlab/streams.c:3394)
> ValueError: __builtin__.file does not appear to be the correct type object
>
> ======================================================================
> ERROR: test_decomp.test_lapack_misaligned(<function solve at 0x3851500>,
> (array([[  1.734e-255,   8.189e-217,   4.025e-178,   1.903e-139,
> 9.344e-101,
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/pymodules/python2.6/nose/case.py", line 183, in runTest
>     self.test(*self.arg)
>   File
> "/usr/local/lib/python2.6/dist-packages/scipy/linalg/tests/test_decomp.py",
> line 1118, in check_lapack_misaligned
>     func(*a,**kwargs)
>   File "/usr/local/lib/python2.6/dist-packages/scipy/linalg/basic.py", line
> 133, in solve
>     a1, b1 = map(asarray_chkfinite,(a,b))
>   File "/usr/local/lib/python2.6/dist-packages/numpy/lib/function_base.py",
> line 528, in asarray_chkfinite
>     "array must not contain infs or NaNs")
> ValueError: array must not contain infs or NaNs
>
> ======================================================================
> ERROR: Ticket #1124.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.6/dist-packages/scipy/signal/tests/test_signaltools.py",
> line 287, in test_none
>     signal.medfilt(None)
>   File "/usr/local/lib/python2.6/dist-packages/scipy/signal/signaltools.py",
> line 308, in medfilt
>     return sigtools._order_filterND(volume,domain,order)
> ValueError: order_filterND not available for this type
>
> ----------------------------------------------------------------------
> Ran 4007 tests in 39.457s
>
> FAILED (KNOWNFAIL=12, SKIP=29, errors=3)
>
>
> There are also a lot of compiler warnings like:
>
> gfortran:f77: ./lbfgsb/routines.f
> Warning: Nonconforming tab character in column 1 of line 510
>
>
> Are these things already known?
>
> Chuck


I just built py26 and numopy, scipy this last weekend, These are the
errors I get (ubuntu 10.4, not sure what FORTRAN compiler I have)

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

======================================================================
ERROR: Ticket #1124.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/scipy/signal/tests/test_signaltools.py",
line 287, in test_none
    signal.medfilt(None)
  File "/usr/local/lib/python2.6/dist-packages/scipy/signal/signaltools.py",
line 308, in medfilt
    return sigtools._order_filterND(volume,domain,order)
ValueError: order_filterND not available for this type

======================================================================
ERROR: test_cdf (test_distributions.TestRandInt)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/scipy/stats/tests/test_distributions.py",
line 118, in test_cdf
    out = numpy.select([k>=30,k>=5],[1.0,(k-5.0+1)/(30-5.0)],0)
  File "/usr/local/lib/python2.6/dist-packages/numpy/lib/function_base.py",
line 704, in select
    return choose(S, tuple(choicelist))
  File "/usr/local/lib/python2.6/dist-packages/numpy/core/fromnumeric.py",
line 296, in choose
    return choose(choices, out=out, mode=mode)
RuntimeError: More keyword list entries (5) than format specifiers (2)

----------------------------------------------------------------------
Ran 4412 tests in 60.582s

FAILED (KNOWNFAIL=11, SKIP=33, errors=3)
<nose.result.TextTestResult run=4412 errors=3 failures=0>




>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
>


More information about the SciPy-Dev mailing list