[SciPy-Dev] Schur decomposition test failure under Python 2.5

josef.pktd@gmai... josef.pktd@gmai...
Sat Nov 5 22:08:04 CDT 2011


On Sat, Nov 5, 2011 at 10:26 PM, Bruce Southey <bsouthey@gmail.com> wrote:
> On Sat, Nov 5, 2011 at 1:40 PM, Ralf Gommers
> <ralf.gommers@googlemail.com> wrote:
>> Hi,
>>
>> There's a problem with schur(.., sort='lhp') under Python 2.5 that seems to
>> be related to the Lapack function gees:
>> http://projects.scipy.org/scipy/ticket/1555
>>
>> It would be great if someone could have a look at this for the 0.10.0
>> release, but if not I'll mark it as a knownfailure because it's not a
>> regression.
>>
>> Ralf
>>
>>
>> _______________________________________________
>> SciPy-Dev mailing list
>> SciPy-Dev@scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-dev
>>
>>
> I have only tested the RC on my 32-bit Windows install using the
> provided binary.
> I get the test_decomp.TestSchur and syntax error in test_distributions.py.
>
> But buried in the test output (when run within command line Python but
> not under IDLE) is this:
> "capi_return is NULL
> Call-back cb_dselect_in_dgees__user__routines failed."
>
> This also appears with the current dev version under Linux.
>
> Bruce
>
> $ python2.5 test_decomp.py
> ................................................................................................................................................capi_return
> is NULL
> Call-back cb_dselect_in_dgees__user__routines failed.
> E.....................................................................................................................................E
> ======================================================================
> ERROR: test_sort (test_decomp.TestSchur)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/home/bsouthey/python/scipystuff/git/scipy/scipy/linalg/tests/test_decomp.py",
> line 1498, in test_sort
>    s,u,sdim = schur(a,sort='lhp')
>  File "/usr/local/lib/python2.5/site-packages/scipy/linalg/decomp_schur.py",
> line 118, in schur
>    sort_t=sort_t)
>  File "/usr/local/lib/python2.5/site-packages/scipy/linalg/decomp_schur.py",
> line 106, in <lambda>
>    sfunction = lambda x: (x.real < 0.0)
> AttributeError: 'float' object has no attribute 'real'
>
> ======================================================================
> ERROR: test_decomp.test_lapack_misaligned
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/local/lib/python2.5/site-packages/nose/case.py", line
> 186, in runTest
>    self.test(*self.arg)
>  File "/usr/local/lib/python2.5/site-packages/numpy/testing/decorators.py",
> line 213, in knownfailer
>    raise KnownFailureTest, msg
> KnownFailureTest: Ticket #1152, triggers a segfault in rare cases.
>
> ----------------------------------------------------------------------
>
> Windows errors:
> ======================================================================
> ERROR: test_sort (test_decomp.TestSchur)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "C:\Python25\Lib\site-packages\scipy\linalg\tests\test_decomp.py",
> line 1230, in test_sort
>    s,u,sdim = schur(a,sort='lhp')
>  File "C:\Python25\Lib\site-packages\scipy\linalg\decomp_schur.py",
> line 118, in schur
>    sort_t=sort_t)
>  File "C:\Python25\Lib\site-packages\scipy\linalg\decomp_schur.py",
> line 106, in <lambda>
>    sfunction = lambda x: (x.real < 0.0)
> AttributeError: 'float' object has no attribute 'real'
>
> ======================================================================
> ERROR: Failure: SyntaxError (invalid syntax (test_distributions.py, line 739))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "c:\python25\lib\site-packages\nose-1.1.2-py2.5.egg\nose\loader.py",
> line 390, in loadTestsFromName
>    addr.filename, addr.module)
>  File "c:\python25\lib\site-packages\nose-1.1.2-py2.5.egg\nose\importer.py",
> line 39, in importFromPath
>    return self.importFromDir(dir_path, fqname)
>  File "c:\python25\lib\site-packages\nose-1.1.2-py2.5.egg\nose\importer.py",
> line 86, in importFromDir
>    mod = load_module(part_fqname, fh, filename, desc)
>  File "C:\Python25\lib\site-packages\scipy\stats\tests\test_distributions.py",
> line 739
>    x = stats.lognorm.rvs(*true, size=100)
>                                    ^
> SyntaxError: invalid syntax

This one is my mistake, I only tested with python 2.7, and I get used
to newer syntax.

Josef

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


More information about the SciPy-Dev mailing list