Opened 2 years ago

Closed 2 years ago

#65187 closed request (fixed)

Please create a Numba formula for Python 3.10

Reported by: programmingkidx Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-numba

Description

Hi, Python 3.10 is out and I would like to use it with Numba. Please create a Numba formula for Python 3.10.

Thank you.

Change History (5)

comment:1 Changed 2 years ago by jmroot (Joshua Root)

Keywords: Numba Python removed
Owner: set to stromnov
Port: py-numba added
Priority: Not setNormal
Status: newassigned

comment:2 Changed 2 years ago by jsalort (Julien Salort)

I also need Numba, and version 0.55.1 is compatible with Python 3.10. However, it requires Numpy < 1.22. So Macports Numpy version is too recent (1.22.3). I don't know how to proceed. Would it be desirable to create a py310-numpy121 port ?

That means that the py39-numba port is actually broken if MacPorts is up to date, i.e.

Python 3.9.12 (main, May 10 2022, 10:59:00) 
[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.9/lib/python3.9/site-packages/numba/__init__.py", line 200, in <module>
    _ensure_critical_deps()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numba/__init__.py", line 140, in _ensure_critical_deps
    raise ImportError("Numba needs NumPy 1.21 or less")
ImportError: Numba needs NumPy 1.21 or less
Last edited 2 years ago by jsalort (Julien Salort) (previous) (diff)

comment:3 Changed 2 years ago by jsalort (Julien Salort)

One alternative is to use the latest Numba from Github. This one supports Numpy 1.22. I have opened a PR https://github.com/macports/macports-ports/pull/14886.

comment:4 Changed 2 years ago by programmingkidx

I don't use NumPy so I am ok with using NumPy 1.21 with this port.

comment:5 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.