Comments (14)
I believe that maturin 1.5 no longer detects 3.13, so maybe start by retrying?
Didn’t see it was released! It now works without the environ variable trick: jeertmans/DiffeRT#67.
Thank you!
from maturin.
@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
PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1
like the error message suggests.If the build doesn't succeed with that environment variable set, then either:
- PyO3 has a bug or some functionality missing with
abi3
, please report that as a PyO3 issue- The fact you have a successful build at the moment suggests that your 3.13 alpha build is at risk of being broken as soon as a newer alpha comes along.
@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 :-)
from maturin.
Hi @davidhewitt, sorry about this. I forgot to upgrade Maturin. Maturin 1.5 and pyo3 0.20.3 works fine.
from maturin.
This is due to PyO3/pyo3#3821, consider commit your Cargo.lock
to avoid such breakage.
from maturin.
This is due to PyO3/pyo3#3821, consider commit your
Cargo.lock
to avoid such breakage.
Should I also pin to a specific version? Because just committing Cargo.lock
didn't fix: jeertmans/DiffeRT#56 (or directly https://github.com/jeertmans/DiffeRT/actions/runs/8062290415/job/22021733511?pr=56).
from maturin.
Should I also pin to a specific version?
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 Cargo.lock
for reproducibility.
from maturin.
Should I also pin to a specific version?
Yeah, pin to pyo3 <= 0.20.2, generating the lock file now will update to 0.20.3 which contains the version check.
Thanks, it now works!
Generally speaking, you should commit
Cargo.lock
for reproducibility.
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.
from maturin.
@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 PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1
like the error message suggests.
If the build doesn't succeed with that environment variable set, then either:
- PyO3 has a bug or some functionality missing with
abi3
, please report that as a PyO3 issue - The fact you have a successful build at the moment suggests that your 3.13 alpha build is at risk of being broken as soon as a newer alpha comes along.
from maturin.
@messense maybe in maturin-action
we should try to be smart about whether to find 3.13 alpha releases? It is probably not a good idea to be uploading alpha wheels to PyPI unless they are using abi3 only...
from maturin.
What should we update to the CI yaml?
from maturin.
I believe that maturin 1.5 no longer detects 3.13, so maybe start by retrying?
from maturin.
Thanks @davidhewitt
from maturin.
from maturin.
@victorteokw can you share job logs?
from maturin.
Related Issues (20)
- Incompatible with conda or venv, with error "markers XXX don't match your environment" HOT 5
- Add a way to override the resultant Python package version HOT 1
- `cargo metadata --manifest-path Cargo.toml --format-version 1 --locked` errors on macos-12 builds HOT 7
- can't find crate `num_enum_derive` HOT 11
- Gentoo Linux: dev-util/maturin-1.7.0 QA Notice: setuptools warnings detected: `install_requires` overwritten in `pyproject.toml` (dependencies)
- Cannot publish projects to PyPi HOT 1
- Move maturin project metadata from `setup.py` to `pyproject.toml`
- wheel `License-File` metadata is missing the relative path `license_files/`
- Make CI faster and more reliable
- Update to latest cargo deny release
- `--uv` does not allow passing in `--break-system-packages` on system Python HOT 3
- How can I specify a crate version for maturin to compile? HOT 1
- maturin develop builds for mixed python versions HOT 1
- Panic running sdist when `python-source` points outside of Rust source directory HOT 2
- Cross compilation issues with several architectures with Yocto Project
- iOS simulator linking: symbol(s) not found for architecture arm64 HOT 2
- Add -r flag explanation for release builds in Maturin quickstart guide HOT 1
- Copy `.pdb` files to `Editable Installations` and `Wheel`s for easier debugging on windows HOT 4
- msys2: whl is not a supported wheel on this platform. HOT 13
- cannot open shared object file: No such file or directory HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maturin.