Upgrade to 2024.8.0 gives me a dependency issue

pip3 install --upgrade homeassistant
Requirement already satisfied: homeassistant in /srv/homeassistant/lib/python3.12/site-packages (2024.7.4)
> 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.1 which is incompatible.
> async-upnp-client 0.39.0 requires aiohttp~=3.9.1, but you have aiohttp 3.10.1 which is incompatible.

Manually switched to aiohttp==3.10 as a test.

> 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.0 which is incompatible.
> **homeassistant 2024.8.0 requires aiohttp==3.10.1**, but you have aiohttp 3.10.0 which is incompatible.
> **async-upnp-client 0.39.0 requires aiohttp~=3.9.1**, but you have aiohttp 3.10.0 which is incompatible.
1 Like

Ok, had to upgrade other packages first.

pip3 install --upgrade async-upnp-client
3 Likes

@HomeBanana : thanks so much, that helped me!

When upgrading my Home Assistant Core 2024.6.4 installation to 2024.8.3, I got a similar error message pointing out dependency issues.

(homeassistant) homeassistant@raspi:~$ pip3 install --upgrade homeassistant
# ...
  Attempting uninstall: homeassistant
    Found existing installation: homeassistant 2024.6.4
    Uninstalling homeassistant-2024.6.4:
      Successfully uninstalled homeassistant-2024.6.4
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.
async-upnp-client 0.38.3 requires aiohttp~=3.9.1, but you have aiohttp 3.10.5 which is incompatible.
aiohttp-fast-url-dispatcher 0.3.0 requires aiohttp<3.10,>=3.8.5, but you have aiohttp 3.10.5 which is incompatible.
Successfully installed Pillow-10.4.0 SQLAlchemy-2.0.31 aiohttp-3.10.5 aiohttp-fast-zlib-0.1.1 aiozoneinfo-0.2.1 async-interrupt-1.1.2 awesomeversion-24.6.0 bcrypt-4.1.3 cryptography-43.0.0 home-assistant-bluetooth-1.12.2 homeassistant-2024.8.3 orjson-3.10.6 pyOpenSSL-24.2.1 ulid-transform-0.13.1 voluptuous-0.15.2 voluptuous-openapi-0.0.5

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

Instead of manually upgrading async-upnp-client, I followed the suggestion to upgrade pip (also see a similar StackExchange answer):

(homeassistant) homeassistant@raspi:~$ pip install --upgrade pip
# ...
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 24.1.1
    Uninstalling pip-24.1.1:
      Successfully uninstalled pip-24.1.1
Successfully installed pip-24.2

Afterwards, I reexecuted the homeassistant upgrade command, which then finished without errors:

(homeassistant) homeassistant@raspi:~$ pip3 install --upgrade homeassistant
Requirement already satisfied: homeassistant in /srv/homeassistant/lib/python3.12/site-packages (2024.8.3)
# ...

Then I continued with my usual upgrade steps.

I also had a dependency issue when tyring to upgrade my HA core installation from 2024.8.0 to 2024.8.3 or 2024.9.0.

aiohttp-fast-url-dispatcher 0.3.0 requires aiohttp<3.10,>=3.8.5, but you have aiohttp 3.10.1 which is incompatible.

Upgrading either aiohttp-fast-url-dispatcher or aiohttp caused other issues resulting in either incomplete update or dysfunctional HA. I had to rollback HA to 2024.8.0

After reading on Github that the package is obsolete, I uninstalled aiohttp-fast-url-dispatcher - then the HA update was successful without any warnings or issues.