Open vmgustavo opened 1 year ago
It should work with numba 0.55; 0.51.2 is a minimum numba version. Perhaps this is to do with poetry?
It is indeed a problem with dependencies versions that poetry is trying to fix but failing. I am getting this log when it tries to install numba:
1: fact: numba (0.56.0) depends on llvmlite (>=0.39.0dev0,<0.40)
1: fact: numba (0.56.0) depends on numpy (>=1.18,<1.23)
1: fact: numba (0.56.0) depends on importlib-metadata (*)
1: derived: not numba (==0.56.0)
1: fact: numba (0.55.2) depends on llvmlite (>=0.38.0rc1,<0.39)
1: fact: numba (0.55.2) depends on numpy (>=1.18,<1.23)
1: derived: not numba (==0.55.2)
1: fact: numba (0.55.1) depends on llvmlite (>=0.38.0rc1,<0.39)
1: fact: numba (0.55.1) depends on numpy (>=1.18,<1.22)
1: derived: not numba (==0.55.1)
1: fact: numba (0.55.0) depends on llvmlite (>=0.38.0rc1,<0.39)
1: fact: numba (0.55.0) depends on numpy (>=1.18,<1.22)
1: derived: not numba (==0.55.0)
1: fact: numba (0.54.1) requires Python >=3.7,<3.10
1: derived: not numba (==0.54.1)
1: fact: numba (0.54.0) requires Python >=3.7,<3.10
1: derived: not numba (==0.54.0)
1: fact: numba (0.53.1) requires Python >=3.6,<3.10
1: derived: not numba (==0.53.1)
1: fact: numba (0.53.0) requires Python >=3.6,<3.10
1: derived: not numba (==0.53.0)
1: fact: numba (0.52.0) requires Python >=3.6,<3.9
1: derived: not numba (==0.52.0)
1: fact: numba (0.51.2) depends on llvmlite (>=0.34.0.dev0,<0.35)
1: fact: numba (0.51.2) depends on numpy (>=1.15)
1: selecting numba (0.51.2)
I added the following dependency in my pyproject.toml
, and this helped poetry lock properly:
llvmlite = ">=0.39.0dev0,<0.40"
My guess is that numba should add that requirement explicitly when using python 3.10 (not sure if the requirement exists or not, though). Any longer term solucion?
I solved it by installing the last version of numba (0.57) (poetry add numba) since it has support for python 3.10+
When I add
umap-learn
using Poetry it finds the requirements versions as:But fails to install numba as the first version of Numba that supports Python 3.10 is
0.55.0
(Numba 0.55.0 Release Notes)This is the error message I get: