Failed to build cryptography while either updating or installing sabnzbd

Creating a bug report/issue

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=8 G_DIETPI_VERSION_SUB=11 G_DIETPI_VERSION_RC=2 G_GITBRANCH='master' G_GITOWNER='MichaIng' G_LIVE_PATCH_STATUS[0]='not applicable'
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | Linux DietPi 5.15.76-v7+ #1597 SMP Fri Nov 4 12:13:17 GMT 2022 armv7l GNU/Linux
  • SBC model | RPi 3 Model B+ (armv7l)
  • Power supply used | (EG: 5V 1A RAVpower)
  • SD card used | (EG: SanDisk ultra) 128gb

Additional Information (if applicable)

  • Software title | (EG: Nextcloud) SABNZBD
  • Was the software title installed freshly or updated/migrated? Fresh
  • Can this issue be replicated on a fresh installation of DietPi? Yes
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | 712e6e29-75a2-44ac-8a7b-82692a8f9f21

Steps to reproduce

  1. … Either update or install sabnzbd

Expected behaviour

  • … update or install sabnzbd without failing

Actual behaviour

  • … software fails to either update or be installed due to failure to build wheel for cryptography.

Extra details

  • …I encountered this issue while update sabnzbd, after getting frustrated I installed the OS fresh, and try to install the same sabnzbd, and it failed again.

on 32bit we use pre-compiled wheels provided by piwheels.org. Unfortunately, latest build has been failed there. piwheels - cryptography

Therefore you have issues to set it up.

Bad thing, cryptography==38.0.3 is explicitly require by Sabnzbd

As a workaround you could try to install Rust + other dependency (required by cryptography) by your own. But it is quite a large build

curl -sSfL 'https://sh.rustup.rs' -o rustup-init.sh
chmod +x rustup-init.sh
./rustup-init.sh -y --profile minimal
rm rustup-init.sh
source "$HOME/.cargo/env"
dietpi-software install 16 130
apt install libffi-dev libssl-dev
pip3 install cryptography
dietpi-software install 139
1 Like

Thank you sir, this fixes the problem. Hopefully this gets fixed in the future!

@MichaIng I know you are already supporting piwheels guys on the Rust implementation. Just as information, cryptography is currently broken as well :confused:

My fix has not been merged yet :confused:: Install rustup as piwheels user by MichaIng · Pull Request #328 · piwheels/piwheels · GitHub