-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Python 3.10 #589
Comments
Now I managed in installing a newer version of cargo (1.60.0) which works with current Omikuji (the cargo version in apt repository was way too old). Downloading the installation script seems to be the official way, for example in Dockerfile: FROM python:3.10-slim-bullseye
RUN pip install --upgrade pip setuptools wheel
RUN apt update && apt install curl build-essential -y
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN pip install omikuji
|
Great that you found a solution, but I wonder if it would be better to ask upstream Omikuji to provide wheels for Python 3.10? |
Yes that would be better. I'll make an issue. |
Omikuji upstream now provides wheels for Python 3.10 as well, according to this comment |
Ubuntu 22.04, which has been just released, comes with Python 3.10 by default. Annif should fully support Python 3.10.
As reported in annif-users, installing Omikuji and NN backends fail, and also installing Gensim and pycld3 dependencies have some issues:
Omikuji
Current Omikuji does not have a wheel for Python 3.10, so installing Omikuji for Python 3.10 requires installing first cargo, but even after that, there is an error (at least on Docker image python:3.10-slim):
I'm not sure if this can be handled some way or should it be fixed in Omikuji.
NN ensemble
Python 3.10 support requires TensorFlow 2.8 or later. Apparently due to NumPy version requirements.
Gensim
Current Gensim releases have wheels only for Python 3.6-3.9, but the next release will have wheel for Python 3.10 too. Before next release, for installing Annif on Python 3.10 it is required to have gcc etc. from build-essential package (which is the case for fastText anyway).
pycld3
Also pycld3 has wheels only for Python 3.6-3.9, and installing pycld3 fails with
Next release of pycld3 should include wheel for Python 3.10.
Other dependencies
Dropping Python 3.7 support would allow upgrading some pinned dependencies.
The text was updated successfully, but these errors were encountered: