You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In both cases, maturin would fail with the following error message:
Python interpreter should be a kind of interpreter (e.g. 'python3.8' or 'pypy3.9') when cross-compiling, got path to interpreter: <EB_PREFIX>/software/Python/3.11.3-GCCcore-12.3.0/bin/python
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
> [6 lines of output]
Found pyo3 bindings
maturin failed
Caused by: Python interpreter should be a kind of interpreter (e.g. 'python3.8' or 'pypy3.9') when cross-compiling, got path to interpreter: /tank/Programs/Linux/EasyBuild/datenlager/Software/software/Python/3.11.3-GCCcore-12.3.0/bin/python
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/eb-ibucduig/pip-modern-metadata-debc3bzs', '--interpreter', '/tank/Programs/Linux/EasyBuild/datenlager/Software/software/Python/3.11.3-GCCcore-12.3.0/bin/python']' returned non-zero exit status 1.
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory /tmp/eb-ibucduig/pip-modern-metadata-debc3bzs --interpreter /tank/Programs/Linux/EasyBuild/datenlager/Software/software/Python/3.11.3-GCCcore-12.3.0/bin/python`
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
> See above for output.
I'm clearly not running on a cross-compiling machine, using my private system with an AMD Ryzen 7800X3D and my home-server with an AMD Ryzen 3700X. I don't know what's going wrong here...
The issue occurs because ARCHFLAGS is set on my systems. I think we may want to unset that variable to make sure that building works regardless of the users environment. The error thrown my maturin certainly doesn't help.
While working on easybuilders/easybuild-easyblocks#3472, I ran into issues with jiter-0.4.1-GCCcore-12.3.0.eb and pydantic-2.9.1-GCCcore-13.3.0.eb.
In both cases,
maturin
would fail with the following error message:Python interpreter should be a kind of interpreter (e.g. 'python3.8' or 'pypy3.9') when cross-compiling, got path to interpreter: <EB_PREFIX>/software/Python/3.11.3-GCCcore-12.3.0/bin/python
I'm clearly not running on a cross-compiling machine, using my private system with an AMD Ryzen 7800X3D and my home-server with an AMD Ryzen 3700X. I don't know what's going wrong here...
A gist of a test-build can be found here: https://gist.github.com/Thyre/abd4413683d3801209f2daa0a6d77ed8
The text was updated successfully, but these errors were encountered: