build error for cryptogtaphy and bcrypt
guysoft opened this issue · 2 comments
guysoft commented
running build_ext
running build_rust
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install bcrypt:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Ensure you have a recent Rust toolchain installed. bcrypt requires
rustc >= 1.56.0.
Python: 3.9.2
platform: Linux-5.15.76-v8+-aarch64-with-glibc2.31
pip: n/a
setuptools: 66.1.1
setuptools_rust: 1.5.2
rustc: 1.48.0 (471d696c7 2020-12-10)
=============================DEBUG ASSISTANCE=============================
error: Rust 1.48.0 does not match extension requirement >=1.56.0
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for bcrypt
Building wheel for cryptography (pyproject.toml): started
Building wheel for cryptography (pyproject.toml): still running...
Building wheel for cryptography (pyproject.toml): still running...
Building wheel for cryptography (pyproject.toml): still running...
Building wheel for cryptography (pyproject.toml): still running...
Building wheel for cryptography (pyproject.toml): still running...
Building wheel for cryptography (pyproject.toml): still running...
Building wheel for cryptography (pyproject.toml): finished with status 'done'
Created wheel for cryptography: filename=cryptography-39.0.0-cp39-cp39-linux_aarch64.whl size=2482402 sha256=3be86c306acf93296007a018cd0f53c0f4215e39ca5bd66e880e577582fac237
Stored in directory: /root/.cache/pip/wheels/64/cb/4b/432dfe297d01eac7bf8a7d3c6494dca0feba56bf92ac0d1874
Building wheel for pynacl (pyproject.toml): started
Building wheel for pynacl (pyproject.toml): still running...
Building wheel for pynacl (pyproject.toml): still running...
Building wheel for pynacl (pyproject.toml): still running...
Building wheel for pynacl (pyproject.toml): still running...
Building wheel for pynacl (pyproject.toml): still running...
Building wheel for pynacl (pyproject.toml): finished with status 'done'
Created wheel for pynacl: filename=PyNaCl-1.5.0-cp39-cp39-linux_aarch64.whl size=603468 sha256=f6c055688153da43de285103a10ff024616761d9e8f5cadb44b8e33df255ca8f
Stored in directory: /root/.cache/pip/wheels/59/59/e9/1f70a3380a5f28eb7af4e455cc90575e9a280723af4c55d4bd
Building wheel for cffi (setup.py): started
Building wheel for cffi (setup.py): finished with status 'done'
Created wheel for cffi: filename=cffi-1.15.1-cp39-cp39-linux_aarch64.whl size=370760 sha256=b5225efcaf7920d2c4b68a7b78c9f4b3bb2d17e7952d29adb4a7182a617e9f1c
Stored in directory: /root/.cache/pip/wheels/f7/2f/c9/36969207bdb71d6830e29c5ecdcc6f54aee2c5631ce15f724e
Successfully built dockerpty docopt PyYAML cryptography pynacl cffi
Failed to build bcrypt
ERROR: Could not build wheels for bcrypt, which is required to install pyproject.toml-based projects
++++ echo_red 'build failed, unmounting image...'
++++ echo -e -n '\e[91m'
�[91m++++ echo build failed
webattitude commented
Ok hi
I guess it's because bcrypt is now in Rust, and minimum version required is not available in bullseye...
guysoft commented
Indeed, and the rust shipped in debian bullseye is too old. so for now Fixed with this commit:
guysoft/CustomPiOS@d8c6380
If you have any better idea would love to hear