-
Notifications
You must be signed in to change notification settings - Fork 17
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
Import error with anndata 0.10.9 on Python 3.9 #82
Comments
I'll leave it to @gtca to answer the rest but in general, scverse follows https://scientific-python.org/specs/spec-0000/ where Python 3.9 is already EOL and even 3.10 is getting there. Numpy, Pandas, Scipy, and others are moving at an increasingly pace and we cannot maintain our packages if we don't follow their support schedules. |
Python 3.9 still gets security updates till the end of 2025 - https://devguide.python.org/versions/. It seems to be inconsistent within the scverse ecosystem since anndata still supports 3.9. I am not suggesting you support Python 3.9, but may be there's better way of setting up dependencies - https://github.com/scverse/mudata/blob/main/pyproject.toml#L26 |
Thanks both! On the consistency: there was a recent discussion on trying to be more aligned with the version support across packages. Broadly speaking, the On the error and dependencies: the Seems like this experience is also related to anndata changing the related (private) API in 0.10.9 so its previous patch release should already work for you. |
Regardless of the drop in support for specific Python versions, it's generally good practice to restrict package versions. For example, the last supported version for Python 3.9 appears to be v0.2.4. However, if you try to install it now, it will attempt to download the most recent release of the To avoid compatibility issues, the version should likely be restricted to 0.10.8 if that's the last known version that works with the package. For reference, I resolved a similar issue in my packages by locking the versions of dependencies that were known to work, as shown here: https://github.com/BiocPy/SingleCellExperiment/pull/47/files (in my case, I used 0.9.2). |
Describe the bug
Running into an import error, seems like its limited to Python 3.9. Python 3.9 EOL is 2025. Is there a reason why the package only supports 3.10 and above. Atleast thats my understanding here - https://github.com/scverse/mudata/blob/main/pyproject.toml#L8
To Reproduce
Install the package version running in one of my github actions here:
anndata==0.10.9
mudata==0.2.4 (last version of the package compatible with Python 3.9)
Expected behaviour
Expected no import errors
System
The text was updated successfully, but these errors were encountered: