Opened 2 years ago
Closed 18 months ago
#65482 closed defect (fixed)
py-numba @0.55.2_0: needs numpy 1.22, fails on numpy 1.23
Reported by: | andreavicere | Owned by: | stromnov (Andrey Stromnov) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | Cc: | mascguy (Christopher Nielsen), NickFabry (Nick Fabry) | |
Port: | py-numba |
Description
numba fails to load. Apparently, this is intended, because its init file raises an error upon detecting a numpy version > 1.22.
Here is the transcript of a session reproducing the issue (for python 3.10)
[~] % python Python 3.10.5 (main, Jun 7 2022, 08:51:33) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import numba Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numba/__init__.py", line 200, in <module> _ensure_critical_deps() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numba/__init__.py", line 140, in _ensure_critical_deps raise ImportError("Numba needs NumPy 1.22 or less") ImportError: Numba needs NumPy 1.22 or less >>>
The same error is raised for python 3.9 .
Presently therefore numba is not usable in macports unless manually downgrading numpy.
Change History (4)
comment:1 Changed 2 years ago by mascguy (Christopher Nielsen)
Cc: | mascguy added |
---|---|
Owner: | set to stromnov |
Port: | py-numba added; py310-numba removed |
Status: | new → assigned |
Summary: | py310-numba @0.55.2_0: needs numpy 1.22, fails on numpy 1.23 → py-numba @0.55.2_0: needs numpy 1.22, fails on numpy 1.23 |
Version: | → 2.7.2 |
comment:2 Changed 2 years ago by NickFabry (Nick Fabry)
Cc: | NickFabry added |
---|
comment:3 Changed 20 months ago by jsalort (Julien Salort)
comment:4 Changed 18 months ago by catap (Kirill A. Korinsky)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Update: same problem now with py310-numba @0.56.4 which does not work with NumPy 1.24. Workaround for py310, install NumPy 1.23.5 from old MacPorts repository. The workaround does not work for py311 because there never was a py311-numpy @1.23.5.
Maybe there should be versioned subports of numpy, eg py310-numpy1.23, py310-numpy1.24, etc. That would allow numba to explicitely require a specific numpy version...