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.13 is not supported #158

Closed
5 tasks done
veenstrajelmer opened this issue Oct 9, 2024 · 8 comments
Closed
5 tasks done

Python 3.13 is not supported #158

veenstrajelmer opened this issue Oct 9, 2024 · 8 comments

Comments

@veenstrajelmer
Copy link

veenstrajelmer commented Oct 9, 2024

When installing copernicusmarine with pip in a Python 3.13 environment, the installation fails:

(py313_env) c:\DATA>pip install copernicusmarine
ERROR: Ignored the following versions that require a different python version: 0.10.7 Requires-Python >=3.9,<3.12; 1.0.0 Requires-Python >=3.9,<3.12; 1.0.1 Requires-Python >=3.9,<3.13; 1.0.10 Requires-Python <3.13,>=3.9; 1.0.2 Requires-Python >=3.9,<3.13; 1.0.3 Requires-Python >=3.9,<3.13; 1.0.4 Requires-Python >=3.9,<3.13; 1.0.5 Requires-Python >=3.9,<3.13; 1.0.6 Requires-Python >=3.9,<3.13; 1.0.7 Requires-Python <3.13,>=3.9; 1.0.8 Requires-Python <3.13,>=3.9; 1.0.9 Requires-Python <3.13,>=3.9; 1.1.0 Requires-Python <3.13,>=3.9; 1.1.1 Requires-Python <3.13,>=3.9; 1.2.0 Requires-Python <3.13,>=3.9; 1.2.1 Requires-Python <3.13,>=3.9; 1.2.2 Requires-Python <3.13,>=3.9; 1.2.3 Requires-Python <3.13,>=3.9; 1.2.4 Requires-Python <3.13,>=3.9; 1.3.0 Requires-Python <3.13,>=3.9; 1.3.1 Requires-Python <3.13,>=3.9; 1.3.2 Requires-Python <3.13,>=3.9; 1.3.3 Requires-Python <3.13,>=3.9; 2.0.0a0 Requires-Python <3.13,>=3.9; 2.0.0a1 Requires-Python <3.13,>=3.9; 2.0.0a2 Requires-Python <3.13,>=3.9
ERROR: Could not find a version that satisfies the requirement copernicusmarine (from versions: none)
ERROR: No matching distribution found for copernicusmarine

Python 3.13 was released on 7 Oct. Would be great if it can be supported asap, although I realize at least:

@renaudjester
Copy link
Collaborator

@veenstrajelmer Awesome! Thanks a lot for the work :D Let's keep tracking this!

@veenstrajelmer
Copy link
Author

veenstrajelmer commented Oct 9, 2024

@renaudjester The issues with zarr are now fixed and netcdf4 will soon release python 3.13 wheels. After that, #159 is the only blocker for python 3.13 support I think.

@veenstrajelmer
Copy link
Author

veenstrajelmer commented Oct 14, 2024

@renaudjester was it ever consider to use h5netcdf instead of netcdf4? I am just curious since there are some lingering issues in netcdf4-python that seem to stay unresolved and h5netcdf is developed close to xarray.

@renaudjester
Copy link
Collaborator

It hasn't been evaluated no! Do you have any ideas about pros and cons?

As far as I read h5netcdf should be as fast as netcdf4. I don't know about the installation and dependencies if there are a lot of differences 🤔

@veenstrajelmer
Copy link
Author

veenstrajelmer commented Oct 14, 2024

That is also what I heard, although I know of this bottleneck that can cause performance degradations in some cases: h5netcdf/h5netcdf#195. I cannot judge the cons to be honest.

I am not sure what copernicusmarine uses from netcdf4-python, but I learned last week that h5netcdf has a legacy api to make transfering as smooth as possible: https://h5netcdf.org/legacyapi.html. Although I guess it is also not a big effort to move to their normal API, depending on how entangled it is in the code. This is only worthwhile of course if it would of course benefit the toolbox or indeed makes it easy to update to new python/dependency versions.

@veenstrajelmer
Copy link
Author

veenstrajelmer commented Oct 23, 2024

netcdf4 1.7.2 was released very recently and supports python 3.13 and numpy 2.0

EDIT: netcdf4 released no python 3.13 wheels for windows

@veenstrajelmer
Copy link
Author

veenstrajelmer commented Oct 31, 2024

@renaudjester I think all issues are resolved, there are also netcdf4 1.7.2 python 3.13 wheels available for windows now (actually already 1 day after 1.7.2 was released). I see that python 3.13 support was already added in #193. However, you could consider simplifying it again. Either way, I think this issue can be closed.

@renaudjester
Copy link
Collaborator

@veenstrajelmer Yes I agree thanks for tracking this! :D python 3.13 should be supported on main right now

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

No branches or pull requests

2 participants