Closed UgoPoddine closed 9 months ago
Sorry for the mistake : the Raspberry is a PI2+ (not PI4), on armv6l
UP
yah this is not surprising. The problem is with the cryptography library being built with rustc instead of C now and unfortunately, most debian based systems have rustc and the build chain for rustc apps is very very old and doesn't work.
This link suggests https://stackoverflow.com/questions/66118337/how-to-get-rid-of-cryptography-build-error
# upgrade pip
pip install --upgrade pip
# install rust toolchain
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
PATH="/root/.cargo/bin:${PATH}"
# build from source
pip install cryptography --no-cache-dir --only-binary=:all: --force-reinstall --upgrade
Hello,
Thanks. As I wrote, pip is at its last version. I was a bit worried to install the full toolchain on a weak Raspberry and to build from source, but I will try and I will let you know.
Ugo
Il giorno 26 lug 2023, 20:52, alle ore 20:52, "Walter A. Boring IV" @.***> ha scritto:
This link suggests https://stackoverflow.com/questions/66118337/how-to-get-rid-of-cryptography-build-error
# upgrade pip pip install --upgrade pip # install rust toolchain curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y PATH="/root/.cargo/bin:${PATH}" # build from source pip install cryptography --no-cache-dir --only-binary=:all: --force-reinstall --upgrade
-- Reply to this email directly or view it on GitHub: https://github.com/craigerl/aprsd/issues/126#issuecomment-1652325654 You are receiving this because you authored the thread.
Message ID: @.***>
I have removed the need for cryptography now that webchat doesn't do ssl by default. You should be able to install this just fine now.
I am closing this due to lack of feedback from the original reporter as well as the removal of the cryptography dependency that caused the issue.
Hello,
I was using aprsd without special issue on a RaspberryPI4 sine yesterday, installed using pip3 I was forced to rebuild the image, but now the installation failed with the following error. I tried also : a) to install criptography from repository b) to install rust separately c) to install openssl from repository
... but the same error is still there.
System is : 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux
Python : Python 3.9.2
pip3 : pip 23.2.1
Can you help ? Thank-you 73 IU1IPB ugo
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cryptography Failed to build cryptography ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects