- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 304
error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported #1960
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
This is due to PyO3/pyo3#3821, consider commit your |
Add Cargo.lock as recommended by PyO3/maturin#1960 (comment). Maybe this will be worth removing once Maturin>1.4.0 is released.
Should I also pin to a specific version? Because just committing |
Yeah, pin to pyo3 <= 0.20.2, generating the lock file now will update to 0.20.3 which contains the version check. Generally speaking, you should commit |
Thanks, it now works!
I generally do, but I thought it was not so important for this project, so I removed it to "clean a bit the repo", but I get it serves some purposes. |
* fix(ci): build issue Add Cargo.lock as recommended by PyO3/maturin#1960 (comment). Maybe this will be worth removing once Maturin>1.4.0 is released. * chore(deps): downgrade to pyo3 <= 0.20.2 * fix(tests): floating point issue
@jeertmans as a late follow-up here, the point of the PyO3 change is to protect people from shipping builds which might be horribly broken due to lack of support. I would recommend un-pinning PyO3 and instead set the environment variable If the build doesn't succeed with that environment variable set, then either:
|
@messense maybe in |
Following suggestion from PyO3/maturin#1960 (comment)
@davidhewitt thanks for the clarification! Looks like this also fixes the previous issues, see jeertmans/DiffeRT#59. I would tend to prefer this fix over the above one, as I do not need to restrict the pyo3 version with this one :-) |
Following suggestion from PyO3/maturin#1960 (comment)
Builds are currently failing because the maturin action is attempting to build the wheel for every Python interpreter in the linux job. This includes an alpha version of 3.13, but since 0.20.3 pyo3 will refuse to build for that version of Python because forward-compatibility with future 3.13 versions isn't guaranteed. We've also ended up with some 3.13 versions of augurs on PyPI :( This commit restricts the versions to 3.7 - 3.12, the currently supported versions of Python. In future it's possible that maturin will allow us to only include non-alpha/beta versions of Python with the '--find-interpreter' flag, but until then we'll need to update them manually. Relevant issue: PyO3/maturin#1960
Builds are currently failing because the maturin action is attempting to build the wheel for every Python interpreter in the linux job. This includes an alpha version of 3.13, but since 0.20.3 pyo3 will refuse to build for that version of Python because forward-compatibility with future 3.13 versions isn't guaranteed. We've also ended up with some 3.13 versions of augurs on PyPI :( This commit restricts the versions to 3.7 - 3.12, the currently supported versions of Python. In future it's possible that maturin will allow us to only include non-alpha/beta versions of Python with the '--find-interpreter' flag, but until then we'll need to update them manually. Relevant issue: PyO3/maturin#1960
What should we update to the CI yaml? |
I believe that maturin 1.5 no longer detects 3.13, so maybe start by retrying? |
Thanks @davidhewitt |
Didn’t see it was released! It now works without the environ variable trick: jeertmans/DiffeRT#67. Thank you! |
@victorteokw can you share job logs? |
Hi @davidhewitt, sorry about this. I forgot to upgrade Maturin. Maturin 1.5 and pyo3 0.20.3 works fine. |
Hello,
Two days ago, my CI suddenly started to fail, and it seems to be caused by the
build command from the maturin action:
My CI setup is mostly the same as you provide, see https://github.com/jeertmans/DiffeRT/actions/runs/8039642162/workflow#L16-L43
Any idea how to fix this? I haven't found any similar issue on the web :/
I guess this issue is finding CPython3.13, but should be skipped I guess if unsupported?
The text was updated successfully, but these errors were encountered: