Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lstsq related test failures on windows binaries from numpy-vendor #5539

Closed
ev-br opened this issue Nov 25, 2015 · 5 comments
Closed

lstsq related test failures on windows binaries from numpy-vendor #5539

ev-br opened this issue Nov 25, 2015 · 5 comments
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.linalg
Milestone

Comments

@ev-br
Copy link
Member

ev-br commented Nov 25, 2015

I see circa 14 test failures which all look like this:

======================================================================
ERROR: test_simple_rows (test_basic.TestPinv)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\scipy\linalg\tests\test_basic.py", line 999, in test_simple_rows
    a_pinv = pinv(a)
  File "C:\Python27\lib\site-packages\scipy\linalg\basic.py", line 959, in pinv
    x, resids, rank, s = lstsq(a, b, cond=cond, check_finite=False)
  File "C:\Python27\lib\site-packages\scipy\linalg\basic.py", line 867, in lstsq
    raise LinAlgError("internal gelsd driver lwork query error,"
LinAlgError: internal gelsd driver lwork query error,required iwork dimension not returned. This is likely the result of LAPACK bug 0038, fixed in LAPACK 3.2.2 (released July 21, 2010). Use a different lapack_driver when calling lstsq or upgrade LAPACK.

This is on a venerable Windows XP laptop with binaries built with numpy-vendor.

@ev-br ev-br added defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.linalg labels Nov 25, 2015
@ev-br ev-br added this to the 0.17.0 milestone Nov 25, 2015
@rgommers
Copy link
Member

Hmm, not good. This is with ATLAS 3.8.2, so the error message is probably misleading.

Do the tests pass if you change back to the old situation with lapack_driver=gelss?

@rgommers
Copy link
Member

I didn't see this on Wine, but maybe I haven't tested with a recent enough version of master. This was merged just last week IIRC.

@rgommers
Copy link
Member

Eh, ignore that. ATLAS version != LAPACK version. ATLAS 3.8.2 is from 2007.

@ev-br
Copy link
Member Author

ev-br commented Nov 26, 2015

Reran the tests on Wine too. The failures are still there, all 80-odd of them (lstsq is quite heavily used in scipy itself, it seems).

@pv
Copy link
Member

pv commented Nov 26, 2015

lstsq should check for the issue on first call, and change the default value accordingly.
Only explicitly given lapack_driver argument should result to the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.linalg
Projects
None yet
Development

No branches or pull requests

3 participants