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.66k stars 30.8k forks source link

Multidict package needs update #66904

Closed rschuiling closed 2 years ago

rschuiling commented 2 years ago

The problem

Checking the configuration for HA 2022.2.9 gives this error:

Fatal error while loading config: [[Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA'

Someone suggested this could easily be fixed by updating the multidict package to 6. But since I am using HAOS, I don't think there is a way for me to do this. This is keeping me from updating to 2022.2.x (issue has been present since 2022.2.0).

What version of Home Assistant Core has the issue?

2022.2.9

What was the last working version of Home Assistant Core?

2021.12.10

What type of installation are you running?

Home Assistant OS

Integration causing the issue

core

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?

INFO:homeassistant.util.package:Attempting install of colorlog==6.6.0
Testing configuration at /tmp/config
INFO:homeassistant.helpers.storage:Migrating core.device_registry storage from 1.2 to 1.3
INFO:homeassistant.helpers.storage:Migrating core.entity_registry storage from 1.4 to 1.5
INFO:homeassistant.util.package:Attempting install of sqlalchemy==1.4.27
INFO:homeassistant.util.package:Attempting install of jsonpath==0.82
INFO:homeassistant.util.package:Attempting install of xmltodict==0.12.0
INFO:homeassistant.util.package:Attempting install of psutil==5.8.0
WARNING:homeassistant.components.statistics.sensor:The configuration parameter 'state_characteristic' will become mandatory in a future release of the statistics integration. Please add 'state_characteristic: mean' to the configuration of sensor 'rain_24h_stats' to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
INFO:custom_components.afvalwijzer.const.const:
-------------------------------------------------------------------,
Afvalwijzer - 2022.02.01,
This is a custom integration!,
If you have any issues with this you need to open an issue here:,
https://github.com/xirixiz/homeassistant-afvalwijzer/issues,
-------------------------------------------------------------------,

INFO:homeassistant.util.package:Attempting install of wakeonlan==2.0.1
INFO:homeassistant.util.package:Attempting install of PyTurboJPEG==1.6.5
INFO:homeassistant.util.package:Attempting install of aiohttp_cors==0.7.0
INFO:homeassistant.util.package:Attempting install of pillow
INFO:homeassistant.util.package:Attempting install of pybase64
INFO:homeassistant.util.package:Attempting install of python-miio
INFO:homeassistant.util.package:Attempting install of pycryptodome
INFO:homeassistant.util.package:Attempting install of spotify_token==1.0.0
INFO:homeassistant.util.package:Attempting install of spotipy==2.19.0
INFO:homeassistant.util.package:Attempting install of pychromecast==10.2.3
INFO:homeassistant.util.package:Attempting install of hass-nabucasa==0.52.0
INFO:homeassistant.util.package:Attempting install of mutagen==1.45.1
INFO:homeassistant.util.package:Attempting install of plexapi==4.9.2
INFO:homeassistant.util.package:Attempting install of plexauth==0.0.6
INFO:homeassistant.util.package:Attempting install of plexwebsocket==0.0.13
INFO:homeassistant.util.package:Attempting install of gTTS==2.2.3
INFO:homeassistant.util.package:Attempting install of boto3==1.20.24
INFO:homeassistant.util.package:Attempting install of scapy==2.4.5
INFO:homeassistant.util.package:Attempting install of aiodiscover==1.4.7
INFO:homeassistant.util.package:Attempting install of home-assistant-frontend==20220203.1
INFO:homeassistant.util.package:Attempting install of PyNaCl==1.4.0
INFO:homeassistant.util.package:Attempting install of emoji==1.6.3
INFO:homeassistant.util.package:Attempting install of async-upnp-client==0.23.4
INFO:homeassistant.util.package:Attempting install of pyudev==0.22.0
INFO:homeassistant.util.package:Attempting install of pyserial==3.5
INFO:homeassistant.util.package:Attempting install of netdisco==3.0.0
INFO:homeassistant.util.package:Attempting install of holidays==0.12
INFO:homeassistant.util.package:Attempting install of numpy==1.21.4
INFO:homeassistant.util.package:Attempting install of google-api-python-client==1.6.4
INFO:homeassistant.util.package:Attempting install of httplib2==0.19.0
INFO:homeassistant.util.package:Attempting install of bellows==0.29.0
INFO:homeassistant.util.package:Attempting install of zha-quirks==0.0.66
INFO:homeassistant.util.package:Attempting install of zigpy-deconz==0.14.0
Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA'
Failed config
  General Errors: 
    - [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA'

Successful config (partial)

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

statistics documentation statistics source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @fabaff, @thomdietrich, mind taking a look at this issue as it has been labeled with an integration (statistics) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

daniele-athome commented 2 years ago

I don't know if it's related, but I got this problem too with a brand new venv. It turns out that pip install homeassistant installs multidict version 6, but when I run check_config it downgrades it to version 5 (so the directory with the METADATA file actually disappears). If I run check_config again after that, it works.

Kisty commented 2 years ago

Interesting. That's helpful. It's broken automation integration for me and check config addon.

I think I see the issue. I think a zigpy module is requesting 6.0.2 but homeassistant is constraining it to <6.0.0: https://github.com/home-assistant/core/pull/64792/commits/5ca2fb4d0a9ed5b6b57ac663b2ea1daaf79f8801

Could try to constrain to multidict<6.0.0,>=6.0.2

Related: #65611 https://github.com/home-assistant/addons/issues/2374 https://github.com/home-assistant/addons/issues/2373 https://github.com/home-assistant/addons/issues/2377

Kisty commented 2 years ago

Also, the integration has been wrongly tagged by the @probot-home-assistant bot. Should be zha