Home Assistant dependency issues since 2024.8.0

Creating a bug report/issue

I have searched the existing open and closed issues | yes
Related issue might be this one but it is about a different package and home assistant failed to start - it did not in my case, runs fine but apparently one package is incompatible.

Required Information

  • DietPi version | 9.6.1
  • Distro version | bookworm 0
  • Kernel version | Linux DietPi 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
  • Architecture | dpkg --print-architecture
  • SBC model | RPi 4 Model B (aarch64)
  • Power supply used |Official Rpi4 power supply
  • SD card used | WD Purple 64 GB

Additional Information (if applicable)

  • Software title | Home Assistant
  • Was the software title installed freshly or updated/migrated? | Updated
  • Can this issue be replicated on a fresh installation of DietPi? | Haven’s tried

Steps to reproduce

run /home/homeassistant/homeassistant-update.sh

Expected behaviour

No dependency errors.

Actual behaviour

There is a dependency error while updating home assistant using the script.

Extra details

Here is the full update log (2024.8.1 to 2024.8.2 but there were errors in previous updates which I did not catch):

Requirement already satisfied: homeassistant in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (2024.8.1)
Collecting homeassistant
  Downloading homeassistant-2024.8.2-py3-none-any.whl.metadata (4.3 kB)
Requirement already satisfied: aiodns==3.2.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (3.2.0)
Collecting aiohttp==3.10.3 (from homeassistant)
  Downloading aiohttp-3.10.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (7.5 kB)
Requirement already satisfied: aiohttp-cors==0.7.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (0.7.0)
Requirement already satisfied: aiohttp-fast-zlib==0.1.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (0.1.1)
Requirement already satisfied: aiozoneinfo==0.2.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (0.2.1)
Requirement already satisfied: astral==2.2 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (2.2)
Requirement already satisfied: async-interrupt==1.1.2 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (1.1.2)
Requirement already satisfied: attrs==23.2.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (23.2.0)
Requirement already satisfied: atomicwrites-homeassistant==1.4.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (1.4.1)
Requirement already satisfied: awesomeversion==24.6.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (24.6.0)
Requirement already satisfied: bcrypt==4.1.3 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (4.1.3)
Requirement already satisfied: certifi>=2021.5.30 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (2024.2.2)
Requirement already satisfied: ciso8601==2.3.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (2.3.1)
Requirement already satisfied: fnv-hash-fast==0.5.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (0.5.0)
Requirement already satisfied: hass-nabucasa==0.81.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (0.81.1)
Requirement already satisfied: httpx==0.27.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (0.27.0)
Requirement already satisfied: home-assistant-bluetooth==1.12.2 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (1.12.2)
Requirement already satisfied: ifaddr==0.2.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (0.2.0)
Requirement already satisfied: Jinja2==3.1.4 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (3.1.4)
Requirement already satisfied: lru-dict==1.3.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (1.3.0)
Requirement already satisfied: PyJWT==2.8.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (2.8.0)
Requirement already satisfied: cryptography==43.0.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (43.0.0)
Requirement already satisfied: Pillow==10.4.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (10.4.0)
Requirement already satisfied: pyOpenSSL==24.2.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (24.2.1)
Requirement already satisfied: orjson==3.10.6 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (3.10.6)
Requirement already satisfied: packaging>=23.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (23.2)
Requirement already satisfied: pip>=21.3.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (24.0)
Requirement already satisfied: psutil-home-assistant==0.0.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (0.0.1)
Requirement already satisfied: python-slugify==8.0.4 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (8.0.4)
Requirement already satisfied: PyYAML==6.0.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (6.0.1)
Requirement already satisfied: requests==2.32.3 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (2.32.3)
Requirement already satisfied: SQLAlchemy==2.0.31 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (2.0.31)
Requirement already satisfied: typing-extensions<5.0,>=4.12.2 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (4.12.2)
Requirement already satisfied: ulid-transform==0.13.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (0.13.1)
Requirement already satisfied: urllib3<2,>=1.26.5 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (1.26.18)
Requirement already satisfied: voluptuous==0.15.2 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (0.15.2)
Requirement already satisfied: voluptuous-serialize==2.6.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (2.6.0)
Requirement already satisfied: voluptuous-openapi==0.0.5 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (0.0.5)
Requirement already satisfied: yarl==1.9.4 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from homeassistant) (1.9.4)
Requirement already satisfied: pycares>=4.0.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from aiodns==3.2.0->homeassistant) (4.4.0)
Requirement already satisfied: aiohappyeyeballs>=2.3.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from aiohttp==3.10.3->homeassistant) (2.3.5)
Requirement already satisfied: aiosignal>=1.1.2 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from aiohttp==3.10.3->homeassistant) (1.3.1)
Requirement already satisfied: frozenlist>=1.1.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from aiohttp==3.10.3->homeassistant) (1.4.1)
Requirement already satisfied: multidict<7.0,>=4.5 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from aiohttp==3.10.3->homeassistant) (6.0.5)
Requirement already satisfied: tzdata>=2024.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from aiozoneinfo==0.2.1->homeassistant) (2024.1)
Requirement already satisfied: pytz in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from astral==2.2->homeassistant) (2024.1)
Requirement already satisfied: cffi>=1.12 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from cryptography==43.0.0->homeassistant) (1.16.0)
Requirement already satisfied: fnvhash<0.2.0,>=0.1.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from fnv-hash-fast==0.5.0->homeassistant) (0.1.0)
Requirement already satisfied: acme==2.10.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from hass-nabucasa==0.81.1->homeassistant) (2.10.0)
Requirement already satisfied: pycognito==2024.5.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from hass-nabucasa==0.81.1->homeassistant) (2024.5.1)
Requirement already satisfied: snitun==0.39.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from hass-nabucasa==0.81.1->homeassistant) (0.39.1)
Requirement already satisfied: habluetooth>=3.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from home-assistant-bluetooth==1.12.2->homeassistant) (3.1.3)
Requirement already satisfied: anyio in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from httpx==0.27.0->homeassistant) (4.3.0)
Requirement already satisfied: httpcore==1.* in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from httpx==0.27.0->homeassistant) (1.0.3)
Requirement already satisfied: idna in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from httpx==0.27.0->homeassistant) (3.6)
Requirement already satisfied: sniffio in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from httpx==0.27.0->homeassistant) (1.3.0)
Requirement already satisfied: MarkupSafe>=2.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from Jinja2==3.1.4->homeassistant) (2.1.5)
Requirement already satisfied: psutil in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from psutil-home-assistant==0.0.1->homeassistant) (5.9.8)
Requirement already satisfied: text-unidecode>=1.3 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from python-slugify==8.0.4->homeassistant) (1.3)
Requirement already satisfied: charset-normalizer<4,>=2 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from requests==2.32.3->homeassistant) (3.2.0)
Requirement already satisfied: greenlet!=0.4.17 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from SQLAlchemy==2.0.31->homeassistant) (3.0.3)
Requirement already satisfied: josepy>=1.13.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from acme==2.10.0->hass-nabucasa==0.81.1->homeassistant) (1.14.0)
Requirement already satisfied: pyrfc3339 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from acme==2.10.0->hass-nabucasa==0.81.1->homeassistant) (1.1)
Requirement already satisfied: setuptools>=41.6.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from acme==2.10.0->hass-nabucasa==0.81.1->homeassistant) (69.1.0)
Requirement already satisfied: h11<0.15,>=0.13 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from httpcore==1.*->httpx==0.27.0->homeassistant) (0.14.0)
Requirement already satisfied: boto3>=1.10.49 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from pycognito==2024.5.1->hass-nabucasa==0.81.1->homeassistant) (1.34.45)
Requirement already satisfied: envs>=1.3 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from pycognito==2024.5.1->hass-nabucasa==0.81.1->homeassistant) (1.4)
Requirement already satisfied: async-timeout>=3.0.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from snitun==0.39.1->hass-nabucasa==0.81.1->homeassistant) (4.0.3)
Requirement already satisfied: pycparser in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from cffi>=1.12->cryptography==43.0.0->homeassistant) (2.21)
Requirement already satisfied: bleak>=0.21.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from habluetooth>=3.0->home-assistant-bluetooth==1.12.2->homeassistant) (0.22.2)
Requirement already satisfied: bleak-retry-connector>=3.3.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from habluetooth>=3.0->home-assistant-bluetooth==1.12.2->homeassistant) (3.5.0)
Requirement already satisfied: bluetooth-adapters>=0.16.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from habluetooth>=3.0->home-assistant-bluetooth==1.12.2->homeassistant) (0.19.3)
Requirement already satisfied: bluetooth-auto-recovery>=1.2.3 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from habluetooth>=3.0->home-assistant-bluetooth==1.12.2->homeassistant) (1.4.2)
Requirement already satisfied: bluetooth-data-tools>=1.16.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from habluetooth>=3.0->home-assistant-bluetooth==1.12.2->homeassistant) (1.19.4)
Requirement already satisfied: dbus-fast<3,>=1.83.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from bleak>=0.21.1->habluetooth>=3.0->home-assistant-bluetooth==1.12.2->homeassistant) (2.22.1)
Requirement already satisfied: aiooui>=0.1.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from bluetooth-adapters>=0.16.1->habluetooth>=3.0->home-assistant-bluetooth==1.12.2->homeassistant) (0.1.5)
Requirement already satisfied: uart-devices>=0.1.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from bluetooth-adapters>=0.16.1->habluetooth>=3.0->home-assistant-bluetooth==1.12.2->homeassistant) (0.1.0)
Requirement already satisfied: usb-devices>=0.4.5 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from bluetooth-adapters>=0.16.1->habluetooth>=3.0->home-assistant-bluetooth==1.12.2->homeassistant) (0.4.5)
Requirement already satisfied: PyRIC>=0.1.6.3 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from bluetooth-auto-recovery>=1.2.3->habluetooth>=3.0->home-assistant-bluetooth==1.12.2->homeassistant) (0.1.6.3)
Requirement already satisfied: btsocket>=0.2.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from bluetooth-auto-recovery>=1.2.3->habluetooth>=3.0->home-assistant-bluetooth==1.12.2->homeassistant) (0.2.0)
Requirement already satisfied: botocore<1.35.0,>=1.34.45 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from boto3>=1.10.49->pycognito==2024.5.1->hass-nabucasa==0.81.1->homeassistant) (1.34.45)
Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from boto3>=1.10.49->pycognito==2024.5.1->hass-nabucasa==0.81.1->homeassistant) (1.0.1)
Requirement already satisfied: s3transfer<0.11.0,>=0.10.0 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from boto3>=1.10.49->pycognito==2024.5.1->hass-nabucasa==0.81.1->homeassistant) (0.10.0)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from botocore<1.35.0,>=1.34.45->boto3>=1.10.49->pycognito==2024.5.1->hass-nabucasa==0.81.1->homeassistant) (2.8.2)
Requirement already satisfied: six>=1.5 in ./.pyenv/versions/3.12.1/lib/python3.12/site-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.35.0,>=1.34.45->boto3>=1.10.49->pycognito==2024.5.1->hass-nabucasa==0.81.1->homeassistant) (1.16.0)
Downloading homeassistant-2024.8.2-py3-none-any.whl (38.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.3/38.3 MB 34.1 MB/s eta 0:00:00
Downloading aiohttp-3.10.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 35.0 MB/s eta 0:00:00
Installing collected packages: aiohttp, homeassistant
  Attempting uninstall: aiohttp
    Found existing installation: aiohttp 3.10.2
    Uninstalling aiohttp-3.10.2:
      Successfully uninstalled aiohttp-3.10.2
  Attempting uninstall: homeassistant
    Found existing installation: homeassistant 2024.8.1
    Uninstalling homeassistant-2024.8.1:
      Successfully uninstalled homeassistant-2024.8.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
aiohttp-fast-url-dispatcher 0.3.0 requires aiohttp<3.10,>=3.8.5, but you have aiohttp 3.10.3 which is incompatible.
Successfully installed aiohttp-3.10.3 homeassistant-2024.8.2

[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: pip install --upgrade pip

So there is a problem with the package aiohttp-fast-url-dispatcher.

no that’s not related

There seems to be a mismatch between aiohttp-fast-url-dispatcher and aiohttp packackge.
You could try to update aiohttp-fast-url-dispatcher version 0.3.0 to 0.3.1. At least it seems to be available according piwheels - aiohttp-fast-url-dispatcher

1 Like

I could try. How to do this in the pyenv? I don’t have experience with this.

You can use the guide we have on our online docs Home Automation Software Options - DietPi.com Docs

Hmm, looks like dependency hell.

Home assistant needs a higher version that can be installed with dispatcher 0.3.1.

I tried a few things, this is after trying aiohttp 3.10.4 (too new for home assistant). Reinstalled 3.10.3 after this.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
aiohttp-fast-url-dispatcher 0.3.1 requires aiohttp<3.10,>=3.8.5, but you have aiohttp 3.10.4 which is incompatible.
homeassistant 2024.8.2 requires aiohttp==3.10.3, but you have aiohttp 3.10.4 which is incompatible.

A vicious circle, indeed.

At least your systems seems to be running using dispatcher 0.3.0

I had the same issue: Error after updating HomeAssistant Β· Issue #7188 Β· MichaIng/DietPi Β· GitHub

Removing aiohttp-fast-url-dispatcher didn’t seem to break anything in HA and the error also went away.

2 Likes

Fixed, no errors. Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.