question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistent Numpy dependency version for Numba

See original GitHub issue

Problem description Currently, the requirements.txt in PyElastica states the required version of numpy as >=1.19.2 and numba as ==0.51.0. However this seems to be inconsistent with numba release notes, which state that even the latest version of numba i.e. 0.55.0 doesnt support numpy latest release 1.22.1 and only has support till numpy version 1.21. While numba installs its own compatible numpy during installation, an update to numpy by the user can lead to dependency issues with numba.

Suggested solution An upper limit on installation version of numpy i.e. >=1.19.2,<1.22 in requirements.txt and other related locations (setup.py). An additional suggestion is to update the numba dependency to 0.55.0, since all tests pass in PyElastica, with the latest numba version installed (on my Mac).

@armantekinalp please confirm the above, after which I can take this issue.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
bhosale2commented, Jan 23, 2022

I see I agree with all of the above and if numba will catch up in a few weeks, then we don’t need to worry about putting an upper bound on numpy. I guess so we can close this issue after numba is bumped up as you mentioned.

0reactions
skim0119commented, Jan 25, 2022

The numba version is updated in 5c31cfc0ad9e50fd2b0e05b926aa0d34644ff929 and 9bcfd0f050f3ce8fbd5995b65827397693e27544.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dependency conflict with numpy 1.23 #8242 - numba ...
I'm getting a dependency conflict reported by pipdeptree: numba 0.55.2 requires numpy<1.23 ... but you have numpy 1.23.1 which is incompatible.
Read more >
Numba needs NumPy 1.20 or less for shapley import
I believe the numba's dependency with numpy 1.22 have been resolved in the most recent version. Try upgrading numba (works for me with...
Read more >
Installation — Numba 0.50.1 documentation
This will download all of the needed dependencies as well. You do not need to have LLVM installed to use Numba (in fact,...
Read more >
Numba/python error during fresh installation
When I first launch the application I get an error because numpy==1.21.2 cannot be used with numba==0.54.0. When run Isaac shows
Read more >
Installation - Numba documentation
Other versions of the dependencies (especially NumPy) may work reasonably well but were not tested. The use of x in a version number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found