We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pip install maturin Collecting maturin Using cached maturin-1.7.8.tar.gz (195 kB) [...] Rust build failed; unable to locate executable 'maturin'
maturin --version
?
python -V
3.12.7
pip -V
24.3.1
None
cargo build
/
pacman -S python
pip install maturin
maturin.log
The text was updated successfully, but these errors were encountered:
Just found out I have maturin under /c/Users/<user>/.cargo/bin/maturin.exe I renamed it to remove .exe and now I can call it like this:
/c/Users/<user>/.cargo/bin/maturin.exe
.exe
maturin -V maturin 1.7.8
However, pip install maturin fails just as before.
Sorry, something went wrong.
Unfortunately the log does not show anything abnormal, the related code is in https://github.com/PyO3/setuptools-rust/blob/2c6a567ddda35bded2ca91e12965328db7aa4668/setuptools_rust/build.py#L732-L779
You'd need to debug it by inspecting the temp cargo target directory when doing pip install --no-clean maturin.
pip install --no-clean maturin
cc @davidhewitt this could be a general setuptools-rust issue with MSYS2.
There's a workaround:
I was using a venv created by a pacman-based Python (pacman -S python).
pacman
Now I just tested another venv, created by a Windows-native Python (from https://www.python.org/ftp/python/3.12.8/python-3.12.8-amd64.exe).
The latter works.
No branches or pull requests
Bug Description
Your maturin version (
maturin --version
)?
Your Python version (
python -V
)3.12.7
Your pip version (
pip -V
)24.3.1
What bindings you're using
None
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
pacman -S python
to install Python 3.12.7pip install maturin
maturin.log
The text was updated successfully, but these errors were encountered: