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

scipy: _flapack.error in when using eigh #164827

Closed
4 tasks done
fahasch opened this issue Mar 2, 2024 · 1 comment · Fixed by #167846
Closed
4 tasks done

scipy: _flapack.error in when using eigh #164827

fahasch opened this issue Mar 2, 2024 · 1 comment · Fixed by #167846
Labels
bug Reproducible Homebrew/homebrew-core bug outdated PR was locked due to age upstream issue An upstream issue report is needed

Comments

@fahasch
Copy link
Contributor

fahasch commented Mar 2, 2024

brew gist-logs <formula> link OR brew config AND brew doctor output

HOMEBREW_VERSION: 4.2.10-106-g4e65af0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 4e65af03911d03aabe242978ffa9472d933e29fa
Last commit: 7 hours ago
Core tap HEAD: 5aacf8df4ff2465cded3b61e2be9b2369fc57e98
Core tap last commit: 5 hours ago
Core tap JSON: 02 Mar 12:21 UTC
Core cask tap JSON: 02 Mar 12:21 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: octa-core 64-bit arm_blizzard_avalanche
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.2.1-arm64
CLT: 15.1.0.0.1.1700200546
Xcode: N/A
Rosetta 2: false

Your system is ready to brew.

Verification

  • My "brew doctor output" says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

I tried to diagonalize a small matrix using scipy.
So I ran the command

python3.12 -c "from scipy import linalg;linalg.eigh([[1]])"

What happened (include all command output)?

It outputs

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/homebrew/lib/python3.12/site-packages/scipy/_lib/deprecation.py", line 213, in inner_f
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.12/site-packages/scipy/linalg/_decomp.py", line 560, in eigh
    w, v, *other_args, info = drv(a=a1, **drv_args, **lwork_args)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_flapack.error: (liwork>=max(1,10*n)||liwork==-1) failed for 10th keyword liwork: dsyevr:liwork=1
david@lxta444 fabian % python3.12 -c "from scipy import linalg;linalg.eigh([[1]])"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/homebrew/lib/python3.12/site-packages/scipy/_lib/deprecation.py", line 213, in inner_f
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.12/site-packages/scipy/linalg/_decomp.py", line 560, in eigh
    w, v, *other_args, info = drv(a=a1, **drv_args, **lwork_args)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_flapack.error: (liwork>=max(1,10*n)||liwork==-1) failed for 10th keyword liwork: dsyevr:liwork=1

What did you expect to happen?

When I install scipy with pip I do get an error.

When running python3.12 -c "from scipy import linalg;print(linalg.eigh([[1]]))" I get
(array([1.]), array([[1.]]))
as expected.

Step-by-step reproduction instructions (by running brew commands)

brew install scipy
python3.12 -c "from scipy import linalg;linalg.eigh([[1]])"
@fahasch fahasch added the bug Reproducible Homebrew/homebrew-core bug label Mar 2, 2024
@cho-m cho-m added the upstream issue An upstream issue report is needed label Apr 2, 2024
@cho-m
Copy link
Member

cho-m commented Apr 2, 2024

Looks like an upstream issue: scipy/scipy#19831

v1.13.0 was just released upstream (not yet in brew) which may provide a fix https://github.com/scipy/scipy/releases/tag/v1.13.0 / #167846

@cho-m cho-m mentioned this issue Apr 2, 2024
@github-actions github-actions bot added the outdated PR was locked due to age label May 3, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Reproducible Homebrew/homebrew-core bug outdated PR was locked due to age upstream issue An upstream issue report is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@fahasch @cho-m and others