home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.31k stars 30.62k forks source link

Problems with Updating from 2022.9.4 #84801

Closed Jonnas90 closed 1 year ago

Jonnas90 commented 1 year ago

The problem

Hi there, I'm Running HomeAssistant Core on a Raspberry Pi with raspbian buster and today tried to update to the latest version. Unfortunately I get an error and was not able to fix it by myself yet. I tried several things reportet in other threads but nothing did work for me. I have to say I'm a beginner and sometimes have issues understanding everything.

While updating there is this error: "Rust 1.41.1 does not match extension requirement >=1.48.0" which leads to this ERROR: Failed building wheel for cryptography Failed to build cryptography ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects

But I'm not able to update to a newer rust version.

I tried upgrading pip and tried updatint rust by this commands "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh" and "sudo apt-get install rustc". Also I tried using "export CRYPTOGRAPHY_DONT_BUILD_RUST=1"

Than's for your help!

What version of Home Assistant Core has the issue?

2022.9.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

cryptography

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

(homeassistant) homeassistant@raspberrypi:/home/pi $ pip3 install --upgrade homeassistant
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: homeassistant in /srv/homeassistant/lib/python3.9/site-packages (2022.9.4)
Collecting homeassistant
  Using cached https://www.piwheels.org/simple/homeassistant/homeassistant-2022.12.8-py3-none-any.whl (20.6 MB)
Requirement already satisfied: lru-dict==1.1.8 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.1.8)
Collecting awesomeversion==22.9.0
  Using cached https://www.piwheels.org/simple/awesomeversion/awesomeversion-22.9.0-py3-none-any.whl (12 kB)
Requirement already satisfied: voluptuous-serialize==2.5.0 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.5.0)
Collecting httpx==0.23.1
  Using cached https://www.piwheels.org/simple/httpx/httpx-0.23.1-py3-none-any.whl (84 kB)
Requirement already satisfied: voluptuous==0.13.1 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.13.1)
Collecting yarl==1.8.1
  Using cached https://www.piwheels.org/simple/yarl/yarl-1.8.1-cp39-cp39-linux_armv7l.whl (205 kB)
Requirement already satisfied: requests==2.28.1 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.28.1)
Requirement already satisfied: pyyaml==6.0 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (6.0)
Requirement already satisfied: astral==2.2 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2)
Collecting orjson==3.8.1
  Using cached orjson-3.8.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (280 kB)
Requirement already satisfied: python-slugify==4.0.1 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.1)
Requirement already satisfied: attrs==21.2.0 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (21.2.0)
Requirement already satisfied: certifi>=2021.5.30 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2021.10.8)
Collecting cryptography==38.0.3
  Using cached cryptography-38.0.3.tar.gz (599 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: aiohttp==3.8.1 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.8.1)
Collecting PyJWT==2.5.0
  Using cached https://www.piwheels.org/simple/pyjwt/PyJWT-2.5.0-py3-none-any.whl (20 kB)
Requirement already satisfied: async-timeout==4.0.2 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (4.0.2)
Requirement already satisfied: bcrypt==3.1.7 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.1.7)
Collecting home-assistant-bluetooth==1.8.1
  Using cached home_assistant_bluetooth-1.8.1-cp39-cp39-manylinux_2_28_armv7l.whl
Requirement already satisfied: atomicwrites-homeassistant==1.4.1 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (1.4.1)
Requirement already satisfied: ifaddr==0.1.7 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (0.1.7)
Requirement already satisfied: pip<22.4,>=21.0 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (22.3.1)
Requirement already satisfied: jinja2==3.1.2 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (3.1.2)
Requirement already satisfied: ciso8601==2.2.0 in /srv/homeassistant/lib/python3.9/site-packages (from homeassistant) (2.2.0)
Collecting typing-extensions<5.0,>=4.4.0
  Using cached https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Requirement already satisfied: frozenlist>=1.1.1 in /srv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.3.1)
Requirement already satisfied: multidict<7.0,>=4.5 in /srv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (6.0.2)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /srv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (2.0.4)
Requirement already satisfied: aiosignal>=1.1.2 in /srv/homeassistant/lib/python3.9/site-packages (from aiohttp==3.8.1->homeassistant) (1.2.0)
Requirement already satisfied: pytz in /srv/homeassistant/lib/python3.9/site-packages (from astral==2.2->homeassistant) (2021.1)
Requirement already satisfied: cffi>=1.1 in /srv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.14.4)
Requirement already satisfied: six>=1.4.1 in /srv/homeassistant/lib/python3.9/site-packages (from bcrypt==3.1.7->homeassistant) (1.15.0)
Collecting bleak>=0.19.0
  Using cached https://www.piwheels.org/simple/bleak/bleak-0.19.5-py3-none-any.whl (132 kB)
Requirement already satisfied: httpcore<0.17.0,>=0.15.0 in /srv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.1->homeassistant) (0.15.0)
Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in /srv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.1->homeassistant) (1.4.0)
Requirement already satisfied: sniffio in /srv/homeassistant/lib/python3.9/site-packages (from httpx==0.23.1->homeassistant) (1.2.0)
Requirement already satisfied: MarkupSafe>=2.0 in /srv/homeassistant/lib/python3.9/site-packages (from jinja2==3.1.2->homeassistant) (2.0.1)
Requirement already satisfied: text-unidecode>=1.3 in /srv/homeassistant/lib/python3.9/site-packages (from python-slugify==4.0.1->homeassistant) (1.3)
Requirement already satisfied: idna<4,>=2.5 in /srv/homeassistant/lib/python3.9/site-packages (from requests==2.28.1->homeassistant) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /srv/homeassistant/lib/python3.9/site-packages (from requests==2.28.1->homeassistant) (1.26.7)
Collecting dbus-fast<2.0.0,>=1.22.0
  Using cached dbus_fast-1.83.1-cp39-cp39-manylinux_2_28_armv7l.whl
Requirement already satisfied: pycparser in /srv/homeassistant/lib/python3.9/site-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.20)
Requirement already satisfied: h11<0.13,>=0.11 in /srv/homeassistant/lib/python3.9/site-packages (from httpcore<0.17.0,>=0.15.0->httpx==0.23.1->homeassistant) (0.12.0)
Requirement already satisfied: anyio==3.* in /srv/homeassistant/lib/python3.9/site-packages (from httpcore<0.17.0,>=0.15.0->httpx==0.23.1->homeassistant) (3.6.1)
Building wheels for collected packages: cryptography
  Building wheel for cryptography (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for cryptography (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [181 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-cpython-39
      creating build/lib.linux-armv7l-cpython-39/cryptography
      copying src/cryptography/__about__.py -> build/lib.linux-armv7l-cpython-39/cryptography
      copying src/cryptography/utils.py -> build/lib.linux-armv7l-cpython-39/cryptography
      copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-cpython-39/cryptography
      copying src/cryptography/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography
      copying src/cryptography/fernet.py -> build/lib.linux-armv7l-cpython-39/cryptography
      creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat
      copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat
      copying src/cryptography/hazmat/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat
      creating build/lib.linux-armv7l-cpython-39/cryptography/x509
      copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
      copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
      copying src/cryptography/x509/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
      copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
      copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
      copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
      copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
      copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509
      creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends
      copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends
      creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings
      copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings
      creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives
      creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl
      creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl
      creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization
      creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf
      creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers
      creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor
      creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric
      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 'dev-requirements.txt'
      warning: no previously-included files found matching 'tox.ini'
      warning: no previously-included files found matching 'mypy.ini'
      warning: no previously-included files matching '*' found under directory '.circleci'
      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-1y_5malc/overlay/lib/python3.9/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)
      copying src/cryptography/py.typed -> build/lib.linux-armv7l-cpython-39/cryptography
      copying src/cryptography/hazmat/bindings/_openssl.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings
      creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
      running build_ext
      generating cffi module 'build/temp.linux-armv7l-cpython-39/cryptography.hazmat.bindings._openssl.c'
      creating build/temp.linux-armv7l-cpython-39
      running build_rust

          =============================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.9.1
          platform: Linux-5.10.63-v7l+-armv7l-with-glibc2.28
          pip: n/a
          setuptools: 65.6.3
          setuptools_rust: 1.5.2
          rustc: 1.41.1
          =============================DEBUG ASSISTANCE=============================

      error: Rust 1.41.1 does not match extension requirement >=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
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects

Additional information

No response

mib1185 commented 1 year ago

Hi @Jonnas90

the Home Assistant Core installation type is one of the most advanced types - see Install Home Assistant Core. If you need to stay with Home Assistant Core, I would recommend to backup your config folder and re-install Home Assistant Core as per documentation above. But if you can, switch to Home Assistant Container or even better to Home Assistant Operating System which is also available as pre-build image for various boards

Nevertheless, you are very welcome to join us at our support chat channel or use our forum for any kind of support questions. We use GitHub for tracking issues with Home Assistant Core itself, not for providing support.

Thanks! 👍

frenck commented 1 year ago

I'm closing this issue, as it is not an Home Assistant issue, but an issue with your installation/environment.

Rust 1.41.1 does not match extension requirement >=1.48.0

You could try the above-listed resources by Michael.

../Frenck