Skip to content
New issue

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

DietPi-Software | cargo fails on 32-bit RPi images with 64-bit kernel #6306

Closed
Myth0ne opened this issue Apr 12, 2023 · 37 comments · Fixed by #6325
Closed

DietPi-Software | cargo fails on 32-bit RPi images with 64-bit kernel #6306

Myth0ne opened this issue Apr 12, 2023 · 37 comments · Fixed by #6325
Labels
External bug 🐞 For bugs which are not caused by DietPi. Raspberry Pi 4 Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible.
Milestone

Comments

@Myth0ne
Copy link

Myth0ne commented Apr 12, 2023

Creating a bug report/issue

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=16
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH='master'
    G_GITOWNER='MichaIng'

  • Distro version | bullseye 1

  • Kernel version |Linux DietPi 5.10.103-v8+ #1529 SMP PREEMPT Tue Mar 8 12:26:46 GMT 2022 aarch64 GNU/Linux

  • SBC model | `RPI4)

  • Power supply used |Official rpi4 power supply )

  • SD card used | (EG: SanDisk high endurance)

Additional Information (if applicable)

  • Software title | Home Assistant)
  • Was the software title installed freshly or updated/migrated?
  • Can this issue be replicated on a fresh installation of DietPi?
  • Bug report ID | e1ad757d-e820-4a1c-a450-aeeda49bf7fb

Steps to reproduce

  1. ... run dietpi-software install 157

Expected behaviour

  • Install home assistant

Actual behaviour

-errors out and cancels install
Failed to build bcrypt cryptography
ERROR: Could not build wheels for bcrypt, cryptography, which is required to install pyproject.toml-based projects

Extra details

  • ...
    `


Details:

  • Date | Wed Apr 12 14:59:49 AEST 2023
  • DietPi version | v8.16.2 (MichaIng/master)
  • Image creator | DietPi Core Team
  • Pre-image | Raspbian Lite
  • Hardware | RPi 4 Model B (aarch64) (ID=4)
  • Kernel version | Linux DietPi 5.10.103-v8+ #1529 SMP PREEMPT Tue Mar 8 12:26:46 GMT 2022 aarch64 GNU/Linux
  • Distro | bullseye (ID=6,RASPBIAN=1)
  • Command | sudo -u homeassistant dash -c . /home/homeassistant/pyenv-activate.sh pyenv install 3.10.11 pyenv local 3.10.11 pip3 install -U pip setuptools wheel [ -z '' ] || pip3 install exec pip3 install homeassistant
  • Exit code | 1
  • Software title | DietPi-Software

Steps to reproduce:

  1. ...
  2. ...

Expected behaviour:

  • ...

Actual behaviour:

  • ...

Extra details:

  • ...

Additional logs:

Logfile attached. Click to expand!
Downloading Python-3.10.11.tar.xz...
-> https://www.python.org/ftp/python/3.10.11/Python-3.10.11.tar.xz
Installing Python-3.10.11...
Installed Python-3.10.11 to /home/homeassistant/.pyenv/versions/3.10.11
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/
Requirement already satisfied: pip in ./.pyenv/versions/3.10.11/lib/python3.10/site-packages (23.0.1)
Requirement already satisfied: setuptools in ./.pyenv/versions/3.10.11/lib/python3.10/site-packages (65.5.0)
Collecting setuptools
  Downloading https://www.piwheels.org/simple/setuptools/setuptools-67.6.1-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 798.9 kB/s eta 0:00:00
Collecting wheel
  Downloading https://www.piwheels.org/simple/wheel/wheel-0.40.0-py3-none-any.whl (64 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.5/64.5 kB 28.1 MB/s eta 0:00:00
Installing collected packages: wheel, setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 65.5.0
    Uninstalling setuptools-65.5.0:
      Successfully uninstalled setuptools-65.5.0
Successfully installed setuptools-67.6.1 wheel-0.40.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/
Collecting homeassistant
  Downloading homeassistant-2023.4.2-py3-none-any.whl (23.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 23.2/23.2 MB 29.5 MB/s eta 0:00:00
Collecting attrs==22.2.0
  Downloading https://www.piwheels.org/simple/attrs/attrs-22.2.0-py3-none-any.whl (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.0/60.0 kB 182.0 kB/s eta 0:00:00
Collecting pyOpenSSL==23.1.0
  Downloading https://www.piwheels.org/simple/pyopenssl/pyOpenSSL-23.1.0-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.6/57.6 kB 28.9 MB/s eta 0:00:00
Collecting async-timeout==4.0.2
  Downloading https://www.piwheels.org/simple/async-timeout/async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting pyyaml==6.0
  Downloading PyYAML-6.0.tar.gz (124 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.0/125.0 kB 31.2 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting jinja2==3.1.2
  Downloading https://www.piwheels.org/simple/jinja2/Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 229.5 kB/s eta 0:00:00
Collecting astral==2.2
  Downloading https://www.piwheels.org/simple/astral/astral-2.2-py2.py3-none-any.whl (30 kB)
Collecting python-slugify==4.0.1
  Downloading https://www.piwheels.org/simple/python-slugify/python_slugify-4.0.1-py2.py3-none-any.whl (7.0 kB)
Collecting httpx==0.23.3
  Downloading https://www.piwheels.org/simple/httpx/httpx-0.23.3-py3-none-any.whl (71 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 71.5/71.5 kB 248.9 kB/s eta 0:00:00
Collecting lru-dict==1.1.8
  Downloading lru-dict-1.1.8.tar.gz (10 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting ulid-transform==0.6.0
  Downloading ulid_transform-0.6.0.tar.gz (14 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting typing-extensions<5.0,>=4.5.0
  Downloading https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting home-assistant-bluetooth==1.9.3
  Downloading home_assistant_bluetooth-1.9.3.tar.gz (10 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: pip<23.1,>=21.0 in ./.pyenv/versions/3.10.11/lib/python3.10/site-packages (from homeassistant) (23.0.1)
Collecting cryptography==40.0.1
  Downloading cryptography-40.0.1.tar.gz (624 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 625.0/625.0 kB 31.4 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting orjson==3.8.7
  Downloading orjson-3.8.7-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (149 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.8/149.8 kB 31.4 MB/s eta 0:00:00
Collecting voluptuous-serialize==2.6.0
  Downloading https://www.piwheels.org/simple/voluptuous-serialize/voluptuous_serialize-2.6.0-py3-none-any.whl (6.8 kB)
Collecting certifi>=2021.5.30
  Downloading https://www.piwheels.org/simple/certifi/certifi-2022.12.7-py3-none-any.whl (155 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.2/155.2 kB 267.8 kB/s eta 0:00:00
Collecting requests==2.28.2
  Downloading https://www.piwheels.org/simple/requests/requests-2.28.2-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 29.5 MB/s eta 0:00:00
Collecting awesomeversion==22.9.0
  Downloading https://www.piwheels.org/simple/awesomeversion/awesomeversion-22.9.0-py3-none-any.whl (12 kB)
Collecting ciso8601==2.3.0
  Downloading ciso8601-2.3.0.tar.gz (26 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting yarl==1.8.1
  Downloading yarl-1.8.1.tar.gz (172 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 172.3/172.3 kB 31.7 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting PyJWT==2.6.0
  Downloading https://www.piwheels.org/simple/pyjwt/PyJWT-2.6.0-py3-none-any.whl (20 kB)
Collecting bcrypt==4.0.1
  Downloading bcrypt-4.0.1.tar.gz (25 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting aiohttp==3.8.4
  Downloading aiohttp-3.8.4.tar.gz (7.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 30.0 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting atomicwrites-homeassistant==1.4.1
  Downloading https://www.piwheels.org/simple/atomicwrites-homeassistant/atomicwrites_homeassistant-1.4.1-py2.py3-none-any.whl (7.1 kB)
Collecting ifaddr==0.1.7
  Downloading https://www.piwheels.org/simple/ifaddr/ifaddr-0.1.7-py2.py3-none-any.whl (10 kB)
Collecting voluptuous==0.13.1
  Downloading https://www.piwheels.org/simple/voluptuous/voluptuous-0.13.1-py3-none-any.whl (35 kB)
Collecting frozenlist>=1.1.1
  Downloading frozenlist-1.3.3.tar.gz (66 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.6/66.6 kB 31.3 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting multidict<7.0,>=4.5
  Downloading multidict-6.0.4.tar.gz (51 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.3/51.3 kB 30.5 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting aiosignal>=1.1.2
  Downloading https://www.piwheels.org/simple/aiosignal/aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting charset-normalizer<4.0,>=2.0
  Downloading charset_normalizer-3.1.0-py3-none-any.whl (46 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.2/46.2 kB 32.4 MB/s eta 0:00:00
Collecting pytz
  Downloading https://www.piwheels.org/simple/pytz/pytz-2023.3-py3-none-any.whl (502 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.4/502.4 kB 454.6 kB/s eta 0:00:00
Collecting cffi>=1.12
  Downloading cffi-1.15.1.tar.gz (508 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 508.5/508.5 kB 31.3 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting rfc3986[idna2008]<2,>=1.3
  Downloading https://www.piwheels.org/simple/rfc3986/rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting httpcore<0.17.0,>=0.15.0
  Downloading https://www.piwheels.org/simple/httpcore/httpcore-0.16.3-py3-none-any.whl (69 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.6/69.6 kB 112.8 kB/s eta 0:00:00
Collecting sniffio
  Downloading https://www.piwheels.org/simple/sniffio/sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting MarkupSafe>=2.0
  Downloading MarkupSafe-2.1.2.tar.gz (19 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting text-unidecode>=1.3
  Downloading https://www.piwheels.org/simple/text-unidecode/text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.2/78.2 kB 254.2 kB/s eta 0:00:00
Collecting urllib3<1.27,>=1.21.1
  Downloading https://www.piwheels.org/simple/urllib3/urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.9/140.9 kB 496.6 kB/s eta 0:00:00
Collecting idna<4,>=2.5
  Downloading https://www.piwheels.org/simple/idna/idna-3.4-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 29.4 MB/s eta 0:00:00
Collecting pycparser
  Downloading https://www.piwheels.org/simple/pycparser/pycparser-2.21-py2.py3-none-any.whl (119 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 119.7/119.7 kB 452.4 kB/s eta 0:00:00
Collecting anyio<5.0,>=3.0
  Downloading https://www.piwheels.org/simple/anyio/anyio-3.6.2-py3-none-any.whl (80 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.6/80.6 kB 10.8 MB/s eta 0:00:00
Collecting h11<0.15,>=0.13
  Downloading https://www.piwheels.org/simple/h11/h11-0.14.0-py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 29.0 MB/s eta 0:00:00
Building wheels for collected packages: aiohttp, bcrypt, ciso8601, cryptography, home-assistant-bluetooth, lru-dict, pyyaml, ulid-transform, yarl, cffi, frozenlist, MarkupSafe, multidict
  Building wheel for aiohttp (pyproject.toml): started
  Building wheel for aiohttp (pyproject.toml): finished with status 'done'
  Created wheel for aiohttp: filename=aiohttp-3.8.4-cp310-cp310-linux_aarch64.whl size=1000385 sha256=107108eb041a6514c9c1c8fc6b3de88aeaf8ed51a5346274adf667b36baa65c8
  Stored in directory: /tmp/pip-ephem-wheel-cache-q7z41pz7/wheels/45/f9/f2/66c145c2f6d7b35277d17b15c7a875b85b5b69ab0f3b3fad38
  Building wheel for bcrypt (pyproject.toml): started
  Building wheel for bcrypt (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  × Building wheel for bcrypt (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [59 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-aarch64-cpython-310
      creating build/lib.linux-aarch64-cpython-310/bcrypt
      copying src/bcrypt/__init__.py -> build/lib.linux-aarch64-cpython-310/bcrypt
      copying src/bcrypt/__about__.py -> build/lib.linux-aarch64-cpython-310/bcrypt
      running egg_info
      writing src/bcrypt.egg-info/PKG-INFO
      writing dependency_links to src/bcrypt.egg-info/dependency_links.txt
      writing requirements to src/bcrypt.egg-info/requires.txt
      writing top-level names to src/bcrypt.egg-info/top_level.txt
      reading manifest file 'src/bcrypt.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files found matching 'requirements.txt'
      warning: no previously-included files found matching 'release.py'
      warning: no previously-included files found matching 'mypy.ini'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files matching '*' found under directory '.circleci'
      warning: no previously-included files found matching 'src/_bcrypt/target'
      warning: no previously-included files matching '*' found under directory 'src/_bcrypt/target'
      adding license file 'LICENSE'
      writing manifest file 'src/bcrypt.egg-info/SOURCES.txt'
      copying src/bcrypt/_bcrypt.pyi -> build/lib.linux-aarch64-cpython-310/bcrypt
      copying src/bcrypt/py.typed -> build/lib.linux-aarch64-cpython-310/bcrypt
      running build_ext
      running build_rust
      error: command failed: 'rustc': No such file or directory (os error 2)

          =============================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.10.11
          platform: Linux-5.10.103-v8+-aarch64-with-glibc2.31
          pip: n/a
          setuptools: 67.6.1
          setuptools_rust: 1.5.2
          rustc: n/a
          =============================DEBUG ASSISTANCE=============================

      error: can't find Rust compiler

      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

      To update pip, run:

          pip install --upgrade pip

      and then retry package installation.

      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

      This package requires Rust >=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 ciso8601 (pyproject.toml): started
  Building wheel for ciso8601 (pyproject.toml): finished with status 'done'
  Created wheel for ciso8601: filename=ciso8601-2.3.0-cp310-cp310-linux_aarch64.whl size=36499 sha256=b6df6002a279bd818239b2d080c6f5eae303dd33a5f37c4f781cdc5804c67c66
  Stored in directory: /tmp/pip-ephem-wheel-cache-q7z41pz7/wheels/f3/43/b0/6e46d9fef6612806b09b4c43ade97c3a908bca242fa61cb402
  Building wheel for cryptography (pyproject.toml): started
  Building wheel for cryptography (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  × Building wheel for cryptography (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [218 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-aarch64-cpython-310
      creating build/lib.linux-aarch64-cpython-310/cryptography
      copying src/cryptography/utils.py -> build/lib.linux-aarch64-cpython-310/cryptography
      copying src/cryptography/fernet.py -> build/lib.linux-aarch64-cpython-310/cryptography
      copying src/cryptography/exceptions.py -> build/lib.linux-aarch64-cpython-310/cryptography
      copying src/cryptography/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography
      copying src/cryptography/__about__.py -> build/lib.linux-aarch64-cpython-310/cryptography
      creating build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/oid.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/ocsp.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/name.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/general_name.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/extensions.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/base.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/_oid.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings
      copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends
      copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/twofactor
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/serialization
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/ciphers
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/openssl
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      running egg_info
      writing src/cryptography.egg-info/PKG-INFO
      writing dependency_links to src/cryptography.egg-info/dependency_links.txt
      writing requirements to src/cryptography.egg-info/requires.txt
      writing top-level names to src/cryptography.egg-info/top_level.txt
      reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'docs/_build'
      warning: no previously-included files found matching 'vectors'
      warning: no previously-included files matching '*' found under directory 'vectors'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files found matching 'release.py'
      warning: no previously-included files found matching '.readthedocs.yml'
      warning: no previously-included files found matching 'ci-constraints-requirements.txt'
      warning: no previously-included files found matching 'mypy.ini'
      adding license file 'LICENSE'
      adding license file 'LICENSE.APACHE'
      adding license file 'LICENSE.BSD'
      adding license file 'LICENSE.PSF'
      writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
      /tmp/pip-build-env-5pc473o2/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'cryptography.hazmat.bindings._rust' as data is deprecated, please list it in `packages`.
          !!


          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'cryptography.hazmat.bindings._rust' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'cryptography.hazmat.bindings._rust' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.


      !!

        check.warn(importable)
      /tmp/pip-build-env-5pc473o2/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'cryptography.hazmat.bindings._rust.openssl' as data is deprecated, please list it in `packages`.
          !!


          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'cryptography.hazmat.bindings._rust.openssl' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'cryptography.hazmat.bindings._rust.openssl' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'cryptography.hazmat.bindings._rust.openssl' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.


      !!

        check.warn(importable)
      copying src/cryptography/py.typed -> build/lib.linux-aarch64-cpython-310/cryptography
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/_openssl.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/pkcs7.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust/openssl
      copying src/cryptography/hazmat/bindings/_rust/openssl/__init__.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust/openssl
      copying src/cryptography/hazmat/bindings/_rust/openssl/x25519.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust/openssl
      running build_ext
      running build_rust
      error: command failed: 'rustc': No such file or directory (os error 2)

          =============================DEBUG ASSISTANCE=============================
          If you are seeing a compilation error please try the following steps to
          successfully install cryptography:
          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) Read https://cryptography.io/en/latest/installation/ for specific
             instructions for your platform.
          3) Check our frequently asked questions for more information:
             https://cryptography.io/en/latest/faq/
          4) Ensure you have a recent Rust toolchain installed:
             https://cryptography.io/en/latest/installation/#rust

          Python: 3.10.11
          platform: Linux-5.10.103-v8+-aarch64-with-glibc2.31
          pip: n/a
          setuptools: 67.6.1
          setuptools_rust: 1.5.2
          rustc: n/a
          =============================DEBUG ASSISTANCE=============================

      error: can't find Rust compiler

      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

      To update pip, run:

          pip install --upgrade pip

      and then retry package installation.

      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

      This package requires Rust >=1.48.0.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cryptography
  Building wheel for home-assistant-bluetooth (pyproject.toml): started
  Building wheel for home-assistant-bluetooth (pyproject.toml): finished with status 'done'
  Created wheel for home-assistant-bluetooth: filename=home_assistant_bluetooth-1.9.3-cp310-cp310-manylinux_2_31_armv7l.whl size=294525 sha256=0003696b68e626480818aa6cd68ac43517ab845b481d84328031b21d09e8aaac
  Stored in directory: /tmp/pip-ephem-wheel-cache-q7z41pz7/wheels/9b/98/ac/55859b7c2ededbf0a6a68538c27484e81fa5898c1a55dbea83
  Building wheel for lru-dict (setup.py): started
  Building wheel for lru-dict (setup.py): finished with status 'done'
  Created wheel for lru-dict: filename=lru_dict-1.1.8-cp310-cp310-linux_aarch64.whl size=26679 sha256=479eb8f96f8195cce0e2cb0b1f71b4bd3a60b2a680aafe7c756f875ae8c08f69
  Stored in directory: /tmp/pip-ephem-wheel-cache-q7z41pz7/wheels/bd/49/9b/a10218396d6813d77e959466f94829cf648779865e85edfe4c
  Building wheel for pyyaml (pyproject.toml): started
  Building wheel for pyyaml (pyproject.toml): finished with status 'done'
  Created wheel for pyyaml: filename=PyYAML-6.0-cp310-cp310-linux_aarch64.whl size=45334 sha256=5df18141cfe9eb9e62585f3743d4dd0b4c48d216cd73432e8d745c7bba152fad
  Stored in directory: /tmp/pip-ephem-wheel-cache-q7z41pz7/wheels/1d/f3/b4/4aea0992adbed14b36ce9c3857d3707c762a4374479230685d
  Building wheel for ulid-transform (pyproject.toml): started
  Building wheel for ulid-transform (pyproject.toml): finished with status 'done'
  Created wheel for ulid-transform: filename=ulid_transform-0.6.0-cp310-cp310-manylinux_2_31_armv7l.whl size=146821 sha256=6c233ebfbbb7802ad3d0da893168a305579d5c44664df32ae654295bb5afb6d7
  Stored in directory: /tmp/pip-ephem-wheel-cache-q7z41pz7/wheels/6a/47/39/0658f195a3ad6a90f063e0d52e2388bd5203832134250ae045
  Building wheel for yarl (pyproject.toml): started
  Building wheel for yarl (pyproject.toml): finished with status 'done'
  Created wheel for yarl: filename=yarl-1.8.1-cp310-cp310-linux_aarch64.whl size=248541 sha256=27ca44171caf845b10e7b470ad7a4e29f4c2d7466de20d55914c3f934933f4b9
  Stored in directory: /tmp/pip-ephem-wheel-cache-q7z41pz7/wheels/55/3c/8b/5668641fde6efc8aed9afe6e01ca9981f314fc8ab320472219
  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-cp310-cp310-linux_aarch64.whl size=402540 sha256=2027a5e6b4230d4b86f5e68e76783a7d3d2429a1d792e7cccc46a2b725ecc248
  Stored in directory: /tmp/pip-ephem-wheel-cache-q7z41pz7/wheels/9a/ee/45/194003e40379492794fdf4ff200b86205f5f63115b85864251
  Building wheel for frozenlist (pyproject.toml): started
  Building wheel for frozenlist (pyproject.toml): finished with status 'done'
  Created wheel for frozenlist: filename=frozenlist-1.3.3-cp310-cp310-linux_aarch64.whl size=141429 sha256=76063895fef5edb21ed572cd6b13ef3c50a5b698e7564f19db8508d8b5c63017
  Stored in directory: /tmp/pip-ephem-wheel-cache-q7z41pz7/wheels/75/c0/b3/57ac2234203df002195d6d093179dc847a8694fb02fe1aefa8
  Building wheel for MarkupSafe (setup.py): started
  Building wheel for MarkupSafe (setup.py): finished with status 'done'
  Created wheel for MarkupSafe: filename=MarkupSafe-2.1.2-cp310-cp310-linux_aarch64.whl size=24954 sha256=639d38e717001f0059471c9b737e33b5663f756e4cb9c46f4d655ca7d03a7ecc
  Stored in directory: /tmp/pip-ephem-wheel-cache-q7z41pz7/wheels/54/8e/98/3c8a462676f35ac84e7e2a886d2e90c50c796b73f4cd1f351f
  Building wheel for multidict (pyproject.toml): started
  Building wheel for multidict (pyproject.toml): finished with status 'done'
  Created wheel for multidict: filename=multidict-6.0.4-cp310-cp310-linux_aarch64.whl size=108534 sha256=852677d32048b3ff2f1e64870847e75520a43c0433cca23be09eb32d0723c337
  Stored in directory: /tmp/pip-ephem-wheel-cache-q7z41pz7/wheels/d3/0f/ad/bd2376f99105cc211cfe25f50868fdbddedcf5bab5a699e47b
Successfully built aiohttp ciso8601 home-assistant-bluetooth lru-dict pyyaml ulid-transform yarl cffi frozenlist MarkupSafe multidict
Failed to build bcrypt cryptography
ERROR: Could not build wheels for bcrypt, cryptography, which is required to install pyproject.toml-based projects
@Joulinar
Copy link
Collaborator

Joulinar commented Apr 12, 2023

ok some questions,

Kernel version |Linux DietPi 5.10.103-v8+ #1529 SMP PREEMPT Tue Mar 8 12:26:46 GMT 2022 aarch64 GNU/Linux

your kernel version 5.10.103 is not the last one, as this is 6.1.21. Usually this should have been update during DietPi-Update. Are you running this old version intentionally? Did you reboot your system after finishing DietPi-Update?

Pre-image | Raspbian Lite
Hardware | RPi 4 Model B (aarch64) (ID=4)

Your kernel is within 64bit mode, however you are running a 32bit image. Is this intentionally?

Was this a fresh install of DietPi image? If yes, I would recommend to start with a ARMv8 image.

@Myth0ne
Copy link
Author

Myth0ne commented Apr 12, 2023

Kernel version |Linux DietPi 5.10.103-v8+ #1529 SMP PREEMPT Tue Mar 8 12:26:46 GMT 2022 aarch64 GNU/Linux

your kernel version 5.10.103 is not the last one, as this is 6.1.21. Usually this should have been update during DietPi-Update. Are you running this old version intentionally? Did you reboot your system after finishing DietPi-Update?

I have done a reboot, might do another for good measure.

Pre-image | Raspbian Lite
Hardware | RPi 4 Model B (aarch64) (ID=4)

Your kernel is within 64bit mode, however you are running a 32bit image. Is this intentionally?

I think this was a weird workaround to a OOM reaper comment I found. I will roll that back to 32 bit thanks for bringing it to my attention, I think it was either faulty hdd or memory leak issue. #4622

Was this a fresh install of DietPi image? If yes, I would recommend to start with a ARMv8 image.

No it isn't, but might try the above and see if there is any change.

@Myth0ne
Copy link
Author

Myth0ne commented Apr 12, 2023

Ok so have removed the 64bit and ran a dietpi update and as there is no available update even after a couple reboots it is still stuck on

Linux DietPi 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux

Any other way to force update the kernel? Should this resolve the issue do we think?

@Joulinar
Copy link
Collaborator

No, the kernel update will not solve the problem, as these are two different issues. But you should be able to do the installation now. Ok let's clean Rust to get correct version and install one package in addition.

apt install pkg-config -y
rm -R /home/homeassistant/.cargo/
rm -R /home/homeassistant/.rustup/
dietpi-software install 157

@MichaIng
Copy link
Owner

However, let's also check why the kernel is stuck at a version of Buster while you're on Bullseye:

cat /etc/apt/sources.list.d/raspi.list
apt policy raspberrypi-kernel

@Myth0ne
Copy link
Author

Myth0ne commented Apr 12, 2023

However, let's also check why the kernel is stuck at a version of Buster while you're on Bullseye:

cat /etc/apt/sources.list.d/raspi.list
apt policy raspberrypi-kernel

Ok it looks like that file doesn't exist. What do I need to populate the raspi.list with?

cat: /etc/apt/sources.list.d/raspi.list: No such file or directory
root@DietPi:~# apt policy raspberrypi-kernel
raspberrypi-kernel:
  Installed: 1:1.20220308~buster-1
  Candidate: 1:1.20220308~buster-1
  Version table:
 *** 1:1.20220308~buster-1 100
        100 /var/lib/dpkg/status

@MichaIng
Copy link
Owner

MichaIng commented Apr 12, 2023

echo 'deb https://archive.raspberrypi.org/debian/ bullseye main' > /etc/apt/sources.list.d/raspi.list
apt update
apt full-upgrade

@Joulinar
Copy link
Collaborator

bookworm main

shouldn't it be bullseye?

@MichaIng
Copy link
Owner

Right (fixed).

@Myth0ne
Copy link
Author

Myth0ne commented Apr 12, 2023

echo 'deb https://archive.raspberrypi.org/debian/ bullseye main' > /etc/apt/sources.list.d/raspi.list
apt update
apt full-upgrade

Okay updating now then I will try the install afterwards, thank you for your assistance

@Myth0ne
Copy link
Author

Myth0ne commented Apr 12, 2023

Still having the problem

Logfile attached. Click to expand!
0:00:00
Building wheels for collected packages: aiohttp, bcrypt, ciso8601, cryptography, home-assistant-bluetooth, lru-dict, pyyaml, ulid-transform, yarl, cffi, frozenlist, MarkupSafe, multidict
  Building wheel for aiohttp (pyproject.toml): started
  Building wheel for aiohttp (pyproject.toml): finished with status 'done'
  Created wheel for aiohttp: filename=aiohttp-3.8.4-cp310-cp310-linux_aarch64.whl size=1000389 sha256=b0a3c174ab51f6be8a16a44134b0e5837921fd5f449512738e014078d79a6d6f  Stored in directory: /tmp/pip-ephem-wheel-cache-2tckb9o_/wheels/45/f9/f2/66c145c2f6d7b35277d17b15c7a875b85b5b69ab0f3b3fad38
  Building wheel for bcrypt (pyproject.toml): started
  Building wheel for bcrypt (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  × Building wheel for bcrypt (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [59 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-aarch64-cpython-310
      creating build/lib.linux-aarch64-cpython-310/bcrypt
      copying src/bcrypt/__init__.py -> build/lib.linux-aarch64-cpython-310/bcrypt
      copying src/bcrypt/__about__.py -> build/lib.linux-aarch64-cpython-310/bcrypt      running egg_info
      writing src/bcrypt.egg-info/PKG-INFO
      writing dependency_links to src/bcrypt.egg-info/dependency_links.txt
      writing requirements to src/bcrypt.egg-info/requires.txt
      writing top-level names to src/bcrypt.egg-info/top_level.txt
      reading manifest file 'src/bcrypt.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files found matching 'requirements.txt'
      warning: no previously-included files found matching 'release.py'
      warning: no previously-included files found matching 'mypy.ini'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files matching '*' found under directory '.circleci'
      warning: no previously-included files found matching 'src/_bcrypt/target'
      warning: no previously-included files matching '*' found under directory 'src/_bcrypt/target'
      adding license file 'LICENSE'
      writing manifest file 'src/bcrypt.egg-info/SOURCES.txt'
      copying src/bcrypt/_bcrypt.pyi -> build/lib.linux-aarch64-cpython-310/bcrypt
      copying src/bcrypt/py.typed -> build/lib.linux-aarch64-cpython-310/bcrypt
      running build_ext
      running build_rust
      error: command failed: 'rustc': No such file or directory (os error 2)

          =============================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.10.11
          platform: Linux-6.1.21-v8+-aarch64-with-glibc2.31
          pip: n/a
          setuptools: 67.6.1
          setuptools_rust: 1.5.2
          rustc: n/a
          =============================DEBUG ASSISTANCE=============================

      error: can't find Rust compiler

      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

      To update pip, run:

          pip install --upgrade pip

      and then retry package installation.

      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

      This package requires Rust >=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 ciso8601 (pyproject.toml): started
  Building wheel for ciso8601 (pyproject.toml): finished with status 'done'
  Created wheel for ciso8601: filename=ciso8601-2.3.0-cp310-cp310-linux_aarch64.whl size=36512 sha256=6c49ccdb6071afa6155fd3594cde155ac4a4409ce5fd49ae001bcee049d47027  Stored in directory: /tmp/pip-ephem-wheel-cache-2tckb9o_/wheels/f3/43/b0/6e46d9fef6612806b09b4c43ade97c3a908bca242fa61cb402
  Building wheel for cryptography (pyproject.toml): started
  Building wheel for cryptography (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  × Building wheel for cryptography (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [218 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-aarch64-cpython-310
      creating build/lib.linux-aarch64-cpython-310/cryptography
      copying src/cryptography/utils.py -> build/lib.linux-aarch64-cpython-310/cryptography
      copying src/cryptography/fernet.py -> build/lib.linux-aarch64-cpython-310/cryptography
      copying src/cryptography/exceptions.py -> build/lib.linux-aarch64-cpython-310/cryptography
      copying src/cryptography/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography
      copying src/cryptography/__about__.py -> build/lib.linux-aarch64-cpython-310/cryptography
      creating build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/oid.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/ocsp.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/name.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/general_name.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/extensions.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/base.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      copying src/cryptography/x509/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/x509
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/_oid.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings
      copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends
      copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/twofactor
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/serialization
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/kdf
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/ciphers
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/primitives/asymmetric
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/openssl
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/backends/openssl
      running egg_info
      writing src/cryptography.egg-info/PKG-INFO
      writing dependency_links to src/cryptography.egg-info/dependency_links.txt
      writing requirements to src/cryptography.egg-info/requires.txt
      writing top-level names to src/cryptography.egg-info/top_level.txt
      reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'docs/_build'
      warning: no previously-included files found matching 'vectors'
      warning: no previously-included files matching '*' found under directory 'vectors'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files found matching 'release.py'
      warning: no previously-included files found matching '.readthedocs.yml'
      warning: no previously-included files found matching 'ci-constraints-requirements.txt'
      warning: no previously-included files found matching 'mypy.ini'
      adding license file 'LICENSE'
      adding license file 'LICENSE.APACHE'
      adding license file 'LICENSE.BSD'
      adding license file 'LICENSE.PSF'
      writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
      /tmp/pip-build-env-a7xylmbk/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'cryptography.hazmat.bindings._rust' as data is deprecated, please list it in `packages`.
          !!


          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'cryptography.hazmat.bindings._rust' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'cryptography.hazmat.bindings._rust' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.


      !!

        check.warn(importable)
      /tmp/pip-build-env-a7xylmbk/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'cryptography.hazmat.bindings._rust.openssl' as data is deprecated, please list it in `packages`.          !!


          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'cryptography.hazmat.bindings._rust.openssl' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'cryptography.hazmat.bindings._rust.openssl' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'cryptography.hazmat.bindings._rust.openssl' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.


      !!

        check.warn(importable)
      copying src/cryptography/py.typed -> build/lib.linux-aarch64-cpython-310/cryptography
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/_openssl.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/pkcs7.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust
      creating build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust/openssl
      copying src/cryptography/hazmat/bindings/_rust/openssl/__init__.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust/openssl
      copying src/cryptography/hazmat/bindings/_rust/openssl/x25519.pyi -> build/lib.linux-aarch64-cpython-310/cryptography/hazmat/bindings/_rust/openssl
      running build_ext
      running build_rust
      error: command failed: 'rustc': No such file or directory (os error 2)

          =============================DEBUG ASSISTANCE=============================
          If you are seeing a compilation error please try the following steps to
          successfully install cryptography:
          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) Read https://cryptography.io/en/latest/installation/ for specific
             instructions for your platform.
          3) Check our frequently asked questions for more information:
             https://cryptography.io/en/latest/faq/
          4) Ensure you have a recent Rust toolchain installed:
             https://cryptography.io/en/latest/installation/#rust

          Python: 3.10.11
          platform: Linux-6.1.21-v8+-aarch64-with-glibc2.31
          pip: n/a
          setuptools: 67.6.1
          setuptools_rust: 1.5.2
          rustc: n/a
          =============================DEBUG ASSISTANCE=============================

      error: can't find Rust compiler

      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

      To update pip, run:

          pip install --upgrade pip

      and then retry package installation.

      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

      This package requires Rust >=1.48.0.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cryptography
  Building wheel for home-assistant-bluetooth (pyproject.toml): started
  Building wheel for home-assistant-bluetooth (pyproject.toml): finished with status 'done'
  Created wheel for home-assistant-bluetooth: filename=home_assistant_bluetooth-1.9.3-cp310-cp310-manylinux_2_31_armv7l.whl size=294520 sha256=8c194d1b2c78251cb25ca088ba8f7d4393c4d4a0d1796b31840e994d443569db
  Stored in directory: /tmp/pip-ephem-wheel-cache-2tckb9o_/wheels/9b/98/ac/55859b7c2ededbf0a6a68538c27484e81fa5898c1a55dbea83
  Building wheel for lru-dict (setup.py): started
  Building wheel for lru-dict (setup.py): finished with status 'done'
  Created wheel for lru-dict: filename=lru_dict-1.1.8-cp310-cp310-linux_aarch64.whl size=26682 sha256=1d390aee30ba5c79840e51d8dd664a0dafaf13c3ad6a528f71c2446689e73bf0  Stored in directory: /tmp/pip-ephem-wheel-cache-2tckb9o_/wheels/bd/49/9b/a10218396d6813d77e959466f94829cf648779865e85edfe4c
  Building wheel for pyyaml (pyproject.toml): started
  Building wheel for pyyaml (pyproject.toml): finished with status 'done'
  Created wheel for pyyaml: filename=PyYAML-6.0-cp310-cp310-linux_aarch64.whl size=45334 sha256=35de64d8475c66bd72e1211f1eecef35b9bedda058e9c9ea450077f6084f74c1
  Stored in directory: /tmp/pip-ephem-wheel-cache-2tckb9o_/wheels/1d/f3/b4/4aea0992adbed14b36ce9c3857d3707c762a4374479230685d
  Building wheel for ulid-transform (pyproject.toml): started
  Building wheel for ulid-transform (pyproject.toml): finished with status 'done'
  Created wheel for ulid-transform: filename=ulid_transform-0.6.0-cp310-cp310-manylinux_2_31_armv7l.whl size=146828 sha256=24172b3fed2b7374536780f437624e99526e1a975f9481be12603de5523375cc
  Stored in directory: /tmp/pip-ephem-wheel-cache-2tckb9o_/wheels/6a/47/39/0658f195a3ad6a90f063e0d52e2388bd5203832134250ae045
  Building wheel for yarl (pyproject.toml): started
  Building wheel for yarl (pyproject.toml): finished with status 'done'
  Created wheel for yarl: filename=yarl-1.8.1-cp310-cp310-linux_aarch64.whl size=248558 sha256=9a8b73ba48028b034dfca2baa9bbe09d17d63d38b8d82848423bf989fc8c3921
  Stored in directory: /tmp/pip-ephem-wheel-cache-2tckb9o_/wheels/55/3c/8b/5668641fde6efc8aed9afe6e01ca9981f314fc8ab320472219
  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-cp310-cp310-linux_aarch64.whl size=402522 sha256=553bf08c8d87f8c30c6bfabf7e8418b86b4271fe243d7db674951311d8e1361f
  Stored in directory: /tmp/pip-ephem-wheel-cache-2tckb9o_/wheels/9a/ee/45/194003e40379492794fdf4ff200b86205f5f63115b85864251
  Building wheel for frozenlist (pyproject.toml): started
  Building wheel for frozenlist (pyproject.toml): finished with status 'done'
  Created wheel for frozenlist: filename=frozenlist-1.3.3-cp310-cp310-linux_aarch64.whl size=141423 sha256=0f28f31991b2d263b1120af8b57e6f34c3ea15b5b40abf19a7a9c88c229b4a4d
  Stored in directory: /tmp/pip-ephem-wheel-cache-2tckb9o_/wheels/75/c0/b3/57ac2234203df002195d6d093179dc847a8694fb02fe1aefa8
  Building wheel for MarkupSafe (setup.py): started
  Building wheel for MarkupSafe (setup.py): finished with status 'done'
  Created wheel for MarkupSafe: filename=MarkupSafe-2.1.2-cp310-cp310-linux_aarch64.whl size=24945 sha256=1c1a1aab66cb2e00e9919e81c22c7256350119ba3b8cda56ddd7c3676588d6a6
  Stored in directory: /tmp/pip-ephem-wheel-cache-2tckb9o_/wheels/54/8e/98/3c8a462676f35ac84e7e2a886d2e90c50c796b73f4cd1f351f
  Building wheel for multidict (pyproject.toml): started
  Building wheel for multidict (pyproject.toml): finished with status 'done'
  Created wheel for multidict: filename=multidict-6.0.4-cp310-cp310-linux_aarch64.whl size=108533 sha256=b471bc0ffb77a1fc6804af6ce47753925bef003b42590aa775d8047c6591c5c6
  Stored in directory: /tmp/pip-ephem-wheel-cache-2tckb9o_/wheels/d3/0f/ad/bd2376f99105cc211cfe25f50868fdbddedcf5bab5a699e47b
Successfully built aiohttp ciso8601 home-assistant-bluetooth lru-dict pyyaml ulid-transform yarl cffi frozenlist MarkupSafe multidict
Failed to build bcrypt cryptography
ERROR: Could not build wheels for bcrypt, cryptography, which is required to install pyproject.toml-based projects

[FAILED] DietPi-Software | Unable to continue, DietPi-Software will now terminate.

</details>

@MichaIng
Copy link
Owner

MichaIng commented Apr 12, 2023

It tries to install aarch64 wheels while the userland is Raspbian and even the 32-bit kernel is loaded now and loading the 64-bit kernel is actually not an issue for pip. Can you please check all this:

cat /etc/os-release
cat /etc/apt/sources.list
dpkg --print-architecture

@Myth0ne
Copy link
Author

Myth0ne commented Apr 12, 2023

cat /etc/os-release

PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

cat /etc/apt/sources.list

deb http://raspbian.raspberrypi.org/raspbian bullseye main contrib non-free rpi

dpkg --print-architecture

armhf

@Joulinar
Copy link
Collaborator

Joulinar commented Apr 13, 2023

Did you perform all steps to clean the install? #6306 (comment)

AAAHHH and he is running RPi4. Means after kernel update to 6.1.21, the fancy change of RPI developer might have an influence as kernel is forced to 64bit mode by default now.

Pls can you add following to the end of your /boot/config.txt and reboot your system afterwards

#disable 64bit mode on 32bit system
arm_64bit=0

@Myth0ne
Copy link
Author

Myth0ne commented Apr 13, 2023

I will do that now, rebooting and will come back with an update. Thanks

@Myth0ne
Copy link
Author

Myth0ne commented Apr 13, 2023

Additional logs:

Logfile attached. Click to expand!
Downloading Python-3.10.11.tar.xz...
-> https://www.python.org/ftp/python/3.10.11/Python-3.10.11.tar.xz
Installing Python-3.10.11...
Installed Python-3.10.11 to /home/homeassistant/.pyenv/versions/3.10.11
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/
Requirement already satisfied: pip in ./.pyenv/versions/3.10.11/lib/python3.10/site-packages (23.0.1)
Requirement already satisfied: setuptools in ./.pyenv/versions/3.10.11/lib/python3.10/site-packages (65.5.0)
Collecting setuptools
  Downloading https://www.piwheels.org/simple/setuptools/setuptools-67.6.1-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 801.4 kB/s eta 0:00:00
Collecting wheel
  Downloading https://www.piwheels.org/simple/wheel/wheel-0.40.0-py3-none-any.whl (64 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.5/64.5 kB 36.8 MB/s eta 0:00:00
Installing collected packages: wheel, setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 65.5.0
    Uninstalling setuptools-65.5.0:
      Successfully uninstalled setuptools-65.5.0
Successfully installed setuptools-67.6.1 wheel-0.40.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/
Collecting homeassistant
  Downloading homeassistant-2023.4.3-py3-none-any.whl (23.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 23.2/23.2 MB 40.7 MB/s eta 0:00:00
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /simple/aiohttp/
Collecting aiohttp==3.8.4
  Downloading aiohttp-3.8.4.tar.gz (7.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 35.9 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting PyJWT==2.6.0
  Downloading https://www.piwheels.org/simple/pyjwt/PyJWT-2.6.0-py3-none-any.whl (20 kB)
Collecting voluptuous==0.13.1
  Downloading https://www.piwheels.org/simple/voluptuous/voluptuous-0.13.1-py3-none-any.whl (35 kB)
Collecting attrs==22.2.0
  Downloading https://www.piwheels.org/simple/attrs/attrs-22.2.0-py3-none-any.whl (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.0/60.0 kB 199.4 kB/s eta 0:00:00
Collecting voluptuous-serialize==2.6.0
  Downloading https://www.piwheels.org/simple/voluptuous-serialize/voluptuous_serialize-2.6.0-py3-none-any.whl (6.8 kB)
Collecting atomicwrites-homeassistant==1.4.1
  Downloading https://www.piwheels.org/simple/atomicwrites-homeassistant/atomicwrites_homeassistant-1.4.1-py2.py3-none-any.whl (7.1 kB)
Collecting typing-extensions<5.0,>=4.5.0
  Downloading https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting awesomeversion==22.9.0
  Downloading https://www.piwheels.org/simple/awesomeversion/awesomeversion-22.9.0-py3-none-any.whl (12 kB)
Collecting cryptography==40.0.1
  Downloading cryptography-40.0.1.tar.gz (624 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 625.0/625.0 kB 43.7 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting astral==2.2
  Downloading https://www.piwheels.org/simple/astral/astral-2.2-py2.py3-none-any.whl (30 kB)
Collecting orjson==3.8.7
  Downloading orjson-3.8.7-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (149 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.8/149.8 kB 45.0 MB/s eta 0:00:00
Collecting jinja2==3.1.2
  Downloading https://www.piwheels.org/simple/jinja2/Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 227.4 kB/s eta 0:00:00
Collecting httpx==0.23.3
  Downloading https://www.piwheels.org/simple/httpx/httpx-0.23.3-py3-none-any.whl (71 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 71.5/71.5 kB 40.1 MB/s eta 0:00:00
Collecting bcrypt==4.0.1
  Downloading bcrypt-4.0.1.tar.gz (25 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting requests==2.28.2
  Downloading https://www.piwheels.org/simple/requests/requests-2.28.2-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 98.7 kB/s eta 0:00:00
Requirement already satisfied: pip<23.1,>=21.0 in ./.pyenv/versions/3.10.11/lib/python3.10/site-packages (from homeassistant) (23.0.1)
Collecting certifi>=2021.5.30
  Downloading https://www.piwheels.org/simple/certifi/certifi-2022.12.7-py3-none-any.whl (155 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.2/155.2 kB 542.9 kB/s eta 0:00:00
Collecting pyOpenSSL==23.1.0
  Downloading https://www.piwheels.org/simple/pyopenssl/pyOpenSSL-23.1.0-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.6/57.6 kB 39.3 MB/s eta 0:00:00
Collecting ifaddr==0.1.7
  Downloading https://www.piwheels.org/simple/ifaddr/ifaddr-0.1.7-py2.py3-none-any.whl (10 kB)
Collecting ciso8601==2.3.0
  Downloading ciso8601-2.3.0.tar.gz (26 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting lru-dict==1.1.8
  Downloading lru-dict-1.1.8.tar.gz (10 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting ulid-transform==0.6.3
  Downloading ulid_transform-0.6.3.tar.gz (14 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting yarl==1.8.1
  Downloading yarl-1.8.1.tar.gz (172 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 172.3/172.3 kB 43.9 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pyyaml==6.0
  Downloading PyYAML-6.0.tar.gz (124 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.0/125.0 kB 44.4 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting async-timeout==4.0.2
  Downloading https://www.piwheels.org/simple/async-timeout/async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting home-assistant-bluetooth==1.9.3
  Downloading home_assistant_bluetooth-1.9.3.tar.gz (10 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting python-slugify==4.0.1
  Downloading https://www.piwheels.org/simple/python-slugify/python_slugify-4.0.1-py2.py3-none-any.whl (7.0 kB)
Collecting aiosignal>=1.1.2
  Downloading https://www.piwheels.org/simple/aiosignal/aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting frozenlist>=1.1.1
  Downloading frozenlist-1.3.3.tar.gz (66 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.6/66.6 kB 43.6 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting charset-normalizer<4.0,>=2.0
  Downloading charset_normalizer-3.1.0-py3-none-any.whl (46 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.2/46.2 kB 42.5 MB/s eta 0:00:00
Collecting multidict<7.0,>=4.5
  Downloading multidict-6.0.4.tar.gz (51 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.3/51.3 kB 41.2 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pytz
  Downloading https://www.piwheels.org/simple/pytz/pytz-2023.3-py3-none-any.whl (502 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.4/502.4 kB 452.4 kB/s eta 0:00:00
Collecting cffi>=1.12
  Downloading cffi-1.15.1.tar.gz (508 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 508.5/508.5 kB 44.0 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting sniffio
  Downloading https://www.piwheels.org/simple/sniffio/sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting rfc3986[idna2008]<2,>=1.3
  Downloading https://www.piwheels.org/simple/rfc3986/rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting httpcore<0.17.0,>=0.15.0
  Downloading https://www.piwheels.org/simple/httpcore/httpcore-0.16.3-py3-none-any.whl (69 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.6/69.6 kB 219.4 kB/s eta 0:00:00
Collecting MarkupSafe>=2.0
  Downloading MarkupSafe-2.1.2.tar.gz (19 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting text-unidecode>=1.3
  Downloading https://www.piwheels.org/simple/text-unidecode/text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.2/78.2 kB 244.6 kB/s eta 0:00:00
Collecting idna<4,>=2.5
  Downloading https://www.piwheels.org/simple/idna/idna-3.4-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 37.7 MB/s eta 0:00:00
Collecting urllib3<1.27,>=1.21.1
  Downloading https://www.piwheels.org/simple/urllib3/urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.9/140.9 kB 483.2 kB/s eta 0:00:00
Collecting pycparser
  Downloading https://www.piwheels.org/simple/pycparser/pycparser-2.21-py2.py3-none-any.whl (119 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 119.7/119.7 kB 31.3 MB/s eta 0:00:00
Collecting h11<0.15,>=0.13
  Downloading https://www.piwheels.org/simple/h11/h11-0.14.0-py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 12.6 MB/s eta 0:00:00
Collecting anyio<5.0,>=3.0
  Downloading https://www.piwheels.org/simple/anyio/anyio-3.6.2-py3-none-any.whl (80 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.6/80.6 kB 15.4 MB/s eta 0:00:00
Building wheels for collected packages: aiohttp, bcrypt, ciso8601, cryptography, home-assistant-bluetooth, lru-dict, pyyaml, ulid-transform, yarl, cffi, frozenlist, MarkupSafe, multidict
  Building wheel for aiohttp (pyproject.toml): started
  Building wheel for aiohttp (pyproject.toml): finished with status 'done'
  Created wheel for aiohttp: filename=aiohttp-3.8.4-cp310-cp310-linux_armv7l.whl size=1000362 sha256=37122660abaf3ba0e718d56836cccf77ecc177429109f3a60f250777c17dab32
  Stored in directory: /tmp/pip-ephem-wheel-cache-egqdtqro/wheels/45/f9/f2/66c145c2f6d7b35277d17b15c7a875b85b5b69ab0f3b3fad38
  Building wheel for bcrypt (pyproject.toml): started
  Building wheel for bcrypt (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  × Building wheel for bcrypt (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [59 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-cpython-310
      creating build/lib.linux-armv7l-cpython-310/bcrypt
      copying src/bcrypt/__init__.py -> build/lib.linux-armv7l-cpython-310/bcrypt
      copying src/bcrypt/__about__.py -> build/lib.linux-armv7l-cpython-310/bcrypt
      running egg_info
      writing src/bcrypt.egg-info/PKG-INFO
      writing dependency_links to src/bcrypt.egg-info/dependency_links.txt
      writing requirements to src/bcrypt.egg-info/requires.txt
      writing top-level names to src/bcrypt.egg-info/top_level.txt
      reading manifest file 'src/bcrypt.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files found matching 'requirements.txt'
      warning: no previously-included files found matching 'release.py'
      warning: no previously-included files found matching 'mypy.ini'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files matching '*' found under directory '.circleci'
      warning: no previously-included files found matching 'src/_bcrypt/target'
      warning: no previously-included files matching '*' found under directory 'src/_bcrypt/target'
      adding license file 'LICENSE'
      writing manifest file 'src/bcrypt.egg-info/SOURCES.txt'
      copying src/bcrypt/_bcrypt.pyi -> build/lib.linux-armv7l-cpython-310/bcrypt
      copying src/bcrypt/py.typed -> build/lib.linux-armv7l-cpython-310/bcrypt
      running build_ext
      running build_rust
      /home/homeassistant/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc: 3: Syntax error: "(" unexpected

          =============================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.10.11
          platform: Linux-6.1.21-v7l+-armv7l-with-glibc2.31
          pip: n/a
          setuptools: 67.6.1
          setuptools_rust: 1.5.2
          rustc: n/a
          =============================DEBUG ASSISTANCE=============================

      error: can't find Rust compiler

      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

      To update pip, run:

          pip install --upgrade pip

      and then retry package installation.

      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

      This package requires Rust >=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 ciso8601 (pyproject.toml): started
  Building wheel for ciso8601 (pyproject.toml): finished with status 'done'
  Created wheel for ciso8601: filename=ciso8601-2.3.0-cp310-cp310-linux_armv7l.whl size=36500 sha256=937f2f44ad281b47fc7ba149ec86edbfc3547a630183e20d86abb5a7c5bfda44
  Stored in directory: /tmp/pip-ephem-wheel-cache-egqdtqro/wheels/f3/43/b0/6e46d9fef6612806b09b4c43ade97c3a908bca242fa61cb402
  Building wheel for cryptography (pyproject.toml): started
  Building wheel for cryptography (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  × Building wheel for cryptography (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [218 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-cpython-310
      creating build/lib.linux-armv7l-cpython-310/cryptography
      copying src/cryptography/utils.py -> build/lib.linux-armv7l-cpython-310/cryptography
      copying src/cryptography/fernet.py -> build/lib.linux-armv7l-cpython-310/cryptography
      copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-cpython-310/cryptography
      copying src/cryptography/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography
      copying src/cryptography/__about__.py -> build/lib.linux-armv7l-cpython-310/cryptography
      creating build/lib.linux-armv7l-cpython-310/cryptography/x509
      copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-cpython-310/cryptography/x509
      copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv7l-cpython-310/cryptography/x509
      copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-cpython-310/cryptography/x509
      copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-cpython-310/cryptography/x509
      copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-cpython-310/cryptography/x509
      copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-armv7l-cpython-310/cryptography/x509
      copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-cpython-310/cryptography/x509
      copying src/cryptography/x509/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography/x509
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings
      copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends
      copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/twofactor
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/serialization
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/kdf
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/ciphers
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/primitives/asymmetric
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/openssl
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/backends/openssl
      running egg_info
      writing src/cryptography.egg-info/PKG-INFO
      writing dependency_links to src/cryptography.egg-info/dependency_links.txt
      writing requirements to src/cryptography.egg-info/requires.txt
      writing top-level names to src/cryptography.egg-info/top_level.txt
      reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'docs/_build'
      warning: no previously-included files found matching 'vectors'
      warning: no previously-included files matching '*' found under directory 'vectors'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files found matching 'release.py'
      warning: no previously-included files found matching '.readthedocs.yml'
      warning: no previously-included files found matching 'ci-constraints-requirements.txt'
      warning: no previously-included files found matching 'mypy.ini'
      adding license file 'LICENSE'
      adding license file 'LICENSE.APACHE'
      adding license file 'LICENSE.BSD'
      adding license file 'LICENSE.PSF'
      writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
      /tmp/pip-build-env-7lc322qg/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'cryptography.hazmat.bindings._rust' as data is deprecated, please list it in `packages`.
          !!


          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'cryptography.hazmat.bindings._rust' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'cryptography.hazmat.bindings._rust' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.


      !!

        check.warn(importable)
      /tmp/pip-build-env-7lc322qg/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'cryptography.hazmat.bindings._rust.openssl' as data is deprecated, please list it in `packages`.
          !!


          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'cryptography.hazmat.bindings._rust.openssl' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'cryptography.hazmat.bindings._rust.openssl' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'cryptography.hazmat.bindings._rust.openssl' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.


      !!

        check.warn(importable)
      copying src/cryptography/py.typed -> build/lib.linux-armv7l-cpython-310/cryptography
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/_openssl.pyi -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/pkcs7.pyi -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/_rust
      creating build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/_rust/openssl
      copying src/cryptography/hazmat/bindings/_rust/openssl/__init__.pyi -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/_rust/openssl
      copying src/cryptography/hazmat/bindings/_rust/openssl/x25519.pyi -> build/lib.linux-armv7l-cpython-310/cryptography/hazmat/bindings/_rust/openssl
      running build_ext
      running build_rust
      /home/homeassistant/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc: 3: Syntax error: "(" unexpected

          =============================DEBUG ASSISTANCE=============================
          If you are seeing a compilation error please try the following steps to
          successfully install cryptography:
          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) Read https://cryptography.io/en/latest/installation/ for specific
             instructions for your platform.
          3) Check our frequently asked questions for more information:
             https://cryptography.io/en/latest/faq/
          4) Ensure you have a recent Rust toolchain installed:
             https://cryptography.io/en/latest/installation/#rust

          Python: 3.10.11
          platform: Linux-6.1.21-v7l+-armv7l-with-glibc2.31
          pip: n/a
          setuptools: 67.6.1
          setuptools_rust: 1.5.2
          rustc: n/a
          =============================DEBUG ASSISTANCE=============================

      error: can't find Rust compiler

      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

      To update pip, run:

          pip install --upgrade pip

      and then retry package installation.

      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

      This package requires Rust >=1.48.0.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cryptography
  Building wheel for home-assistant-bluetooth (pyproject.toml): started
  Building wheel for home-assistant-bluetooth (pyproject.toml): finished with status 'done'
  Created wheel for home-assistant-bluetooth: filename=home_assistant_bluetooth-1.9.3-cp310-cp310-manylinux_2_31_armv7l.whl size=294529 sha256=8d61007a3ed892993c0995acb55e694b6ae20f81b0652267bd7028eac6b286b8
  Stored in directory: /tmp/pip-ephem-wheel-cache-egqdtqro/wheels/9b/98/ac/55859b7c2ededbf0a6a68538c27484e81fa5898c1a55dbea83
  Building wheel for lru-dict (setup.py): started
  Building wheel for lru-dict (setup.py): finished with status 'done'
  Created wheel for lru-dict: filename=lru_dict-1.1.8-cp310-cp310-linux_armv7l.whl size=26681 sha256=ab2bd56e415d227e46b21c0ffefc7ebac74296af95110b434a41b066250e4611
  Stored in directory: /tmp/pip-ephem-wheel-cache-egqdtqro/wheels/bd/49/9b/a10218396d6813d77e959466f94829cf648779865e85edfe4c
  Building wheel for pyyaml (pyproject.toml): started
  Building wheel for pyyaml (pyproject.toml): finished with status 'done'
  Created wheel for pyyaml: filename=PyYAML-6.0-cp310-cp310-linux_armv7l.whl size=45331 sha256=583b1d23e7e230ab737c508b91a9277d7ebe5c164dfa3004b14b7569a8c72cfd
  Stored in directory: /tmp/pip-ephem-wheel-cache-egqdtqro/wheels/1d/f3/b4/4aea0992adbed14b36ce9c3857d3707c762a4374479230685d
  Building wheel for ulid-transform (pyproject.toml): started
  Building wheel for ulid-transform (pyproject.toml): finished with status 'done'
  Created wheel for ulid-transform: filename=ulid_transform-0.6.3-cp310-cp310-manylinux_2_31_armv7l.whl size=143999 sha256=be664b75e712c9dbc4f0526af139d480e4cd9232b5bb688e9c8b6447e5006ef7
  Stored in directory: /tmp/pip-ephem-wheel-cache-egqdtqro/wheels/0f/9a/c8/cb4a35456c858fefb10b62ff58bf2e43b140efdb32c44cd069
  Building wheel for yarl (pyproject.toml): started
  Building wheel for yarl (pyproject.toml): finished with status 'done'
  Created wheel for yarl: filename=yarl-1.8.1-cp310-cp310-linux_armv7l.whl size=248538 sha256=7a51df385a541a8b3a659ea714a4c5cf406ad5feaf78b581ae05c7d463a0c2f4
  Stored in directory: /tmp/pip-ephem-wheel-cache-egqdtqro/wheels/55/3c/8b/5668641fde6efc8aed9afe6e01ca9981f314fc8ab320472219
  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-cp310-cp310-linux_armv7l.whl size=402512 sha256=a2f6c8012067a6111936a743380f9fe621eaf10a9a640d4e95def17268f7b257
  Stored in directory: /tmp/pip-ephem-wheel-cache-egqdtqro/wheels/9a/ee/45/194003e40379492794fdf4ff200b86205f5f63115b85864251
  Building wheel for frozenlist (pyproject.toml): started
  Building wheel for frozenlist (pyproject.toml): finished with status 'done'
  Created wheel for frozenlist: filename=frozenlist-1.3.3-cp310-cp310-linux_armv7l.whl size=141424 sha256=bbc1e828719ba44b5b58819c70f50b8227cc509011767a5d87cec97a097cb299
  Stored in directory: /tmp/pip-ephem-wheel-cache-egqdtqro/wheels/75/c0/b3/57ac2234203df002195d6d093179dc847a8694fb02fe1aefa8
  Building wheel for MarkupSafe (setup.py): started
  Building wheel for MarkupSafe (setup.py): finished with status 'done'
  Created wheel for MarkupSafe: filename=MarkupSafe-2.1.2-cp310-cp310-linux_armv7l.whl size=24950 sha256=b93971566d2ede9f92690cd722ac3a0c1092db5618147d437993bbd26b7103b8
  Stored in directory: /tmp/pip-ephem-wheel-cache-egqdtqro/wheels/54/8e/98/3c8a462676f35ac84e7e2a886d2e90c50c796b73f4cd1f351f
  Building wheel for multidict (pyproject.toml): started
  Building wheel for multidict (pyproject.toml): finished with status 'done'
  Created wheel for multidict: filename=multidict-6.0.4-cp310-cp310-linux_armv7l.whl size=108533 sha256=031f040885406215b7cf8d12a39e7e09f98e3f72a2b195c9c5df00c3afe444dc
  Stored in directory: /tmp/pip-ephem-wheel-cache-egqdtqro/wheels/d3/0f/ad/bd2376f99105cc211cfe25f50868fdbddedcf5bab5a699e47b
Successfully built aiohttp ciso8601 home-assistant-bluetooth lru-dict pyyaml ulid-transform yarl cffi frozenlist MarkupSafe multidict
Failed to build bcrypt cryptography
ERROR: Could not build wheels for bcrypt, cryptography, which is required to install pyproject.toml-based projects

Still no luck

@Myth0ne
Copy link
Author

Myth0ne commented Apr 13, 2023

Looks like I did another clean removal from the #6306 (comment)

and it looks to be progressing, will keep an eye on it.

@Myth0ne
Copy link
Author

Myth0ne commented Apr 13, 2023

Looks to of been resolved. Will mark this as fixed. Must've been the 64bit causing the issue.

@Myth0ne Myth0ne closed this as completed Apr 13, 2023
@Joulinar Joulinar reopened this Apr 13, 2023
@Joulinar
Copy link
Collaborator

Let me reopen as I like to discuss some parts with @MichaIng

Looks like the Rust installer was using incorrect architecture 64bit instead of 32bit. This as well can be caused by the new kernel feature RPI developer introduced, switching all 32bit RPI4 into 64bit mode by default. Something we need to check how to work around and how we could ensure correct architecture used, at least for Rust.

@Myth0ne
Copy link
Author

Myth0ne commented Apr 13, 2023

That's fine, can you please let me know the login details? my ssh user and password isn't working and can't see any other info to use.

@Joulinar
Copy link
Collaborator

can you please let me know the login details

Which login details you are looking for? For Home Assistance?

@Myth0ne
Copy link
Author

Myth0ne commented Apr 13, 2023

can you please let me know the login details

Which login details you are looking for? For Home Assistance?

Yes Home Assistant app

@Joulinar
Copy link
Collaborator

First complete the initial install process as describe on our online docs https://dietpi.com/docs/software/home_automation/#home-assistant

Once done, login to web interface and create your own individual admin account. There are no default credentials.

@Myth0ne
Copy link
Author

Myth0ne commented Apr 13, 2023

Once done, login to web interface and create your own individual admin account. There are no default credentials.

I've ran the systemctl restart home-assistant
htop shows low cpu usage but it isn't letting me create an account just to sign in. Maybe I'll try restart the service again shortly?

@Joulinar
Copy link
Collaborator

you are connecting via web interface or some app?

@Joulinar
Copy link
Collaborator

You can check for available user

grep username /mnt/dietpi_userdata/homeassistant/.storage/auth

And to reset login as root via SSH/CLI

sudo -u homeassistant bash
. /home/homeassistant/pyenv-activate.sh
exec hass --script auth change_password your_username new_password
systemctl restart home-assistant.service

@Myth0ne
Copy link
Author

Myth0ne commented Apr 13, 2023

Thanks that got the username all sorted now.

@MichaIng MichaIng added this to the v8.17 milestone Apr 13, 2023
@MichaIng MichaIng changed the title Installing Home Assistant fails with "could not build wheels for cryptography" DietPi-Software | cargo fails on 32-bit RPi images with 64-bit kernel Apr 13, 2023
@steals
Copy link

steals commented Apr 16, 2023

I have similar issue when trying to update homeassistant on 32bit dietpi installation.

Python: 3.10.11
platform: Linux-6.1.21+-armv6l-with-glibc2.31
pip: n/a
setuptools: 67.6.1
setuptools_rust: 1.5.2
rustc: n/a
=============================DEBUG ASSISTANCE=============================

  error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path src/rust/Cargo.toml --release -v --features 'pyo3/extension-module pyo3/abi3-py36' -- --crate-type cdylib` failed with code 101
  [end of output]

@Joulinar
Copy link
Collaborator

pls open an own issue and fill the related bug report. As well, you would need to attach the entire output of HA update process (not just some lines)

@MichaIng
Copy link
Owner

MichaIng commented Apr 18, 2023

Re-reading this, I'm still unsure at which stage/which part exactly pulls the wrong architecture, hence unsure how to solve:

  • The rustup installer checks for the userland architecture and correctly pulls armhf Rust tools on 32-bit userlands with 64-bit kernel. This is verified by the fact that the Python wheel builds did not find the aarch64 Rust compiler, as the 32-bit one was (correctly) installed.
  • With this given, I'm pretty sure that (the 32-bit) cargo handles this correctly has well. So
    curl -sSf https://sh.rustup.rs | sh -s -- --profile minimal
    apt install gcc libc6-dev
    cargo install hello-world-42
    hello-world-42
    should correctly install the 32-bit crate.
  • pip however does not call cargo, but rustc directly as far as I can see. So it seems to be within pip looking for the wrong Rust compiler while it manages things correctly when installing any other module or compiling with any other language/compiler. So
    pip3 install bcrypt
    fails with 64-bit kernel on 32-bit userland?
  • Strange is however that the latest output after the kernel upgrade shows that the 64-bit rustc was somehow present and used, if I do not misunderstand
    /home/homeassistant/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc: 3: Syntax error: "(" unexpected
    
    This should not be possible to exist, since the rustup installer installs the 32-bit rustc 🤔.
  • @josh3003 you have arm_64bit=0 applied now in /boot/config.txt, right?

So if it is really pip trying to invoke the wrong rustc, I'm currently unsure how to fix that. I know to to tell cargo or rustc which target to compile for, but not how to tell pip which rustc to look for 🤔.

I'll try to replicate the issue on another aarch64 SBC as I have no 64-bit capable RPi.

@Myth0ne
Copy link
Author

Myth0ne commented Apr 18, 2023

Yeah that's correct

@MichaIng MichaIng added the External bug 🐞 For bugs which are not caused by DietPi. label Apr 19, 2023
@MichaIng
Copy link
Owner

MichaIng commented Apr 19, 2023

Strange: The rustup installer pulls 32-bit rustup, cargo and rustc binaries, but the default toolchain is indeed stable-aarch64-unknown-linux-gnu, only based on the CPU architecture, despite 32-bit userland. This can be done to switch the default toolchain:

rustup default stable-armv7-unknown-linux-gnueabihf

Or directly on install:

curl -sSf https://sh.rustup.rs | sh -s -- --profile minimal --default-host armv7-unknown-linux-gnueabihf

Not sure why but "syncing channel updates" currently takes ages. With this, hopefully also pip compiles wheels with Rust code correctly when the 64-bit kernel is enabled on 32-bit OS.

EDIT: And here is the related report on rustup GitHub repo already: rust-lang/rustup#3307

@MichaIng
Copy link
Owner

MichaIng commented Apr 19, 2023

Dammit, this is the reason why it hangs: rust-lang/rust#60605

[ 3392.600164] cp15barrier_handler: 26605006 callbacks suppressed
[ 3392.600172] "reqwest-interna" (4115) uses deprecated CP15 Barrier instruction at 0xb12d14
[ 3392.600178] "reqwest-interna" (4115) uses deprecated CP15 Barrier instruction at 0xb12d38
[ 3392.600180] "reqwest-interna" (4115) uses deprecated CP15 Barrier instruction at 0xb12d14
[ 3392.600182] "reqwest-interna" (4115) uses deprecated CP15 Barrier instruction at 0xb12d38
[ 3392.600184] "reqwest-interna" (4115) uses deprecated CP15 Barrier instruction at 0xb12d14
[ 3392.600187] "reqwest-interna" (4115) uses deprecated CP15 Barrier instruction at 0xb12d38
[ 3392.600189] "reqwest-interna" (4115) uses deprecated CP15 Barrier instruction at 0xb12d14
[ 3392.600190] "reqwest-interna" (4115) uses deprecated CP15 Barrier instruction at 0xb12d38
[ 3392.600192] "reqwest-interna" (4115) uses deprecated CP15 Barrier instruction at 0xb12d14
[ 3392.600194] "reqwest-interna" (4115) uses deprecated CP15 Barrier instruction at 0xb12d38

This repeats every 5 seconds. Could one of you test this on RPi 4 (with 32-bit userland + 64-bit kernel), the second command posted above? I'm currently testing it on Odroid N2. Hopefully this is a platform specific issue.

EDIT: Workaround:

export RUSTUP_USE_CURL=1

EDIT2: Nope, the above solves the binary "download", but then cargo is "installed", the same happens:

[ 4393.668156] cp15barrier_handler: 25438047 callbacks suppressed
[ 4393.668164] "rustup-init" (4234) uses deprecated CP15 Barrier instruction at 0x8dc5d0
[ 4393.668170] "rustup-init" (4234) uses deprecated CP15 Barrier instruction at 0x8dc5d8
[ 4393.668172] "rustup-init" (4234) uses deprecated CP15 Barrier instruction at 0x8dc65c
[ 4393.668174] "rustup-init" (4234) uses deprecated CP15 Barrier instruction at 0x8dc680
[ 4393.668177] "rustup-init" (4234) uses deprecated CP15 Barrier instruction at 0x8dc5d0
[ 4393.668179] "rustup-init" (4234) uses deprecated CP15 Barrier instruction at 0x8dc5d8
[ 4393.668181] "rustup-init" (4234) uses deprecated CP15 Barrier instruction at 0x8dc65c
[ 4393.668183] "rustup-init" (4234) uses deprecated CP15 Barrier instruction at 0x8dc680
[ 4393.668185] "rustup-init" (4234) uses deprecated CP15 Barrier instruction at 0x8dc5d0
[ 4393.668187] "rustup-init" (4234) uses deprecated CP15 Barrier instruction at 0x8dc5d8

Next workaround:

echo 'abi.cp15_barrier=2' > /etc/sysctl.d/98-dietpi-cp15_barrier.conf
sysctl -p /etc/sysctl.d/98-dietpi-cp15_barrier.conf

Found it here, which lists another potentially required setting: https://www.tal.org/tutorials/booting-64-bit-kernel-raspberry-pi-3

MichaIng added a commit that referenced this issue Apr 19, 2023
- DietPi-Software | Home Assistant/HTPC Manager/microblog-pub/Synapse: Resolved an issue where the install on RPi 4 with 32-bit image failed since rustup/cargo tried to compile for 64-bit. The issue occurred since the 64-bit kernel is used on RPi 4 by default since Linux 6.1, even if the OS/userland is 32-bit. Many thanks to @josh3003 for reporting this issue: #6306
@MichaIng MichaIng removed the Bug 🐞 label Apr 19, 2023
@MichaIng
Copy link
Owner

MichaIng commented Apr 19, 2023

PR up: #6325
Would be great if someone could test whether this abi.cp15_barrier=2 is required on RPi as well.


Side note: pip compiles aarch64 wheels, actually, at least it declares them as such. Not sure whether it is intended and how this is possible as there are no 64-bit headers and rustup toolchain is all only 32-bit. Probably indeed only a bug which falsely names/declares the wheels architecture. I hope such does not cause followup issues:

Building wheels for collected packages: cryptography, Pillow
  Building wheel for cryptography (pyproject.toml) ... done
  Created wheel for cryptography: filename=cryptography-40.0.2-cp39-cp39-linux_aarch64.whl size=1544557 sha256=b2677105320ea9181933a4f05250e012d54f6580cba9f2e81f80aa60a00bdc07
  Stored in directory: /tmp/pip-ephem-wheel-cache-f_29fhbs/wheels/ec/4e/45/4ed1c3d611bb8ea9bf06cc2f1415cb2c3f9af2b7de136514ff
  Building wheel for Pillow (setup.py) ... done
  Created wheel for Pillow: filename=Pillow-9.5.0-cp39-cp39-linux_aarch64.whl size=951257 sha256=694be1cf1e43cf06265141502c3e4794bbe03db18d5c5b1cc2da414f9e5c0caf
  Stored in directory: /tmp/pip-ephem-wheel-cache-f_29fhbs/wheels/35/1e/cb/c4505cd44d9888613f9935c94cc679d4cc5bd7156b7f1b28cf
Successfully built cryptography Pillow
Installing collected packages: Pillow, cryptography
Successfully installed Pillow-9.5.0 cryptography-40.0.2

Synapse does run well with this, we'll see whether the same is true for Home Assistant.

@MichaIng MichaIng added Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible. Testing/testers required 🔽 Raspberry Pi 4 and removed Investigating 🤔 Raspberry Pi labels Apr 19, 2023
MichaIng added a commit that referenced this issue Apr 19, 2023
- DietPi-Software | Home Assistant/HTPC Manager/microblog-pub/Synapse: Resolved an issue where the install on RPi 4 with 32-bit image failed since rustup/cargo tried to compile for 64-bit. The issue occurred since the 64-bit kernel is used on RPi 4 by default since Linux 6.1, even if the OS/userland is 32-bit. Many thanks to @josh3003 for reporting this issue: #6306
MichaIng added a commit that referenced this issue Apr 20, 2023
- DietPi-Software | Home Assistant/HTPC Manager/microblog-pub/Synapse: Resolved an issue where the install on RPi 4 with 32-bit image failed since rustup/cargo tried to compile for 64-bit. The issue occurred since the 64-bit kernel is used on RPi 4 by default since Linux 6.1, even if the OS/userland is 32-bit. Many thanks to @josh3003 for reporting this issue: #6306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External bug 🐞 For bugs which are not caused by DietPi. Raspberry Pi 4 Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants