Skip to content

Runtime Error: Numpy no available #988

Closed Answered by kaixxx
fredrowland asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I found the issue:

  • Torch is in fact no longer updated for the x86_64 architecture on Mac, 2.2.2 is the latest version. In itself, this is not a problem for QualCoder.
  • Torch 2.2.2, however, is NOT compatible with numpy 2, which is what is most certainly installed on your system.
  • The solution: run pip install "numpy<2" (make sure to include the quotation marks) to install an older version of numpy. This should work fine with QualCoder.

I will try to include this into requirements.txt somehow. Thanks for bringing this up! Feel free to ask if you have further issues.
If you allow, I may ask you in the future to test a compiled version for Intel Mac, since I only have an Apple Silicon ba…

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@fredrowland
Comment options

@kaixxx
Comment options

kaixxx Jan 8, 2025
Collaborator

@fredrowland
Comment options

Comment options

You must be logged in to vote
2 replies
@kaixxx
Comment options

kaixxx Jan 9, 2025
Collaborator

@kaixxx
Comment options

kaixxx Jan 9, 2025
Collaborator

Comment options

You must be logged in to vote
2 replies
@fredrowland
Comment options

@kaixxx
Comment options

kaixxx Jan 9, 2025
Collaborator

Answer selected by kaixxx
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants