-
Notifications
You must be signed in to change notification settings - Fork 3
[Bug] - iMOD Python breaks upon import with Python 3.13 #1317
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
Comments
@JoerivanEngelen I looked into it and we are not able to support python 3.13 just yet. For now we can only clearly mention in the documentation that we don't support 3.13 at the moment |
Ah thanks for looking into this. In my quick search on the internet I read that numba already has some pre-releases out for python 3.13, so I expect it won't take too long for them to release a new version that supports python 3.13. I must say this error message looks quite clumsy though, since apparently Path objects cannot be used as contexts since python 3.9(!). It's also throwing warnings. I'll create a subissue for this specific error, as it is still worthy to fix but maybe less critical now. We can already fix this in preparation of the next numba release. |
Update: Recently Numba got a release that supports Python 3.13. See https://numba.readthedocs.io/en/stable/release/0.61.0-notes.html |
Fixes #1317 and #1331 # Description With `Numba` now also supporting python 3.13 we can also add 3.13 support to iMOD-python. This PR adds a 3.13 environment to the pixi.toml and also adds an import test of it to the TC pipelines. One line of code had to be rwritten to be 3.13 compatible. The `importlib.resources.files` no longer provides a context manager and has to wrapped using the `importlib.resources.as_file` method # Checklist <!--- Before requesting review, please go through this checklist: --> - [ ] Links to correct issue - [ ] Update changelog, if changes affect users - [ ] PR title starts with ``Issue #nr``, e.g. ``Issue #737`` - [ ] Unit tests were added - [ ] **If feature added**: Added/extended example
Uh oh!
There was an error while loading. Please reload this page.
Bug description
Python 3.13 has been released since 1 month. I got a report from that iMOD Python broke import with Python 3.13.
Steps to reproduce
Desktop (please complete the following information):
Additional context
Add any other context about the problem here. The more information you can
provide us, the quicker we respond and fix the problem.
Refinement
The text was updated successfully, but these errors were encountered: