Skip to content
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

Python 3.12 support #779

Closed
juhoinkinen opened this issue Mar 21, 2024 · 6 comments · Fixed by #780
Closed

Python 3.12 support #779

juhoinkinen opened this issue Mar 21, 2024 · 6 comments · Fixed by #780

Comments

@juhoinkinen
Copy link
Member

juhoinkinen commented Mar 21, 2024

Python 3.12 was released last October, so we should try to support it in Annif.

Currently support is not possible because of the following (to be continued...):

@juhoinkinen
Copy link
Member Author

juhoinkinen commented Mar 21, 2024

Actually this was resolved by installing python3.12-dev system package, which was missing from my laptop.

@juhoinkinen
Copy link
Member Author

As gensim can be installed, provided that the python3.12-dev system package is available, even currently it is possible to install Annif (or at least Poetry can resolve dependencies) if the unsupported dependencies are resctricted to Python <3.12, that is using this in pyproject.toml:

tensorflow-cpu = { version = "2.15.*", optional = true, python = "<3.12" }
stwfsapy = { version = "0.4.*", optional = true, python = "<3.12" }

@osma
Copy link
Member

osma commented Mar 21, 2024

It looks like Ubuntu 24.04, to be released in April 2024, will come with Python 3.12. So it would be nice if we could support it soon. But of course, older Python versions can also be installed on Ubuntu.

@juhoinkinen
Copy link
Member Author

tensorflow-cpu = { version = "2.15.*", optional = true, python = "<3.12" }

Also TensorFlow could be installed, if it could be upgraded to version 2.16.*, but this is blocked by tensorflow/tensorflow#63585.

@juhoinkinen juhoinkinen added this to the Short term milestone Apr 19, 2024
@juhoinkinen
Copy link
Member Author

Not fully closed, because stwfsapy and NN ensemble do not work on Python 3.12.

@juhoinkinen
Copy link
Member Author

Closed by #796.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants