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.75k stars 30.86k forks source link

Reolink dependency conflicts #130829

Open LouPaloma opened 4 hours ago

LouPaloma commented 4 hours ago

The problem

Reolink integration has dependencies that conflict with HA core causing the cameras to fail to load.

What version of Home Assistant Core has the issue?

2024.11.2

What was the last working version of Home Assistant Core?

2024.9.x

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Reolink

Link to integration documentation on our website

No response

Diagnostics information

Unresolved issue still as referenced in closed ticket Reolink dependencies prevent loading #129273

On a clean HA Core install of 2024.11.2, the integration does not load.

Following @starkillerOG advices to run: pip3 install --upgrade --force-reinstall reolink_aio the following errors from (first seen in 2024.10.x) still exist:

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.
homeassistant 2024.10.4 requires aiohttp==3.10.8, but you have aiohttp 3.10.10 which is incompatible.
homeassistant 2024.10.4 requires attrs==23.2.0, but you have attrs 24.2.0 which is incompatible.
homeassistant 2024.10.4 requires orjson==3.10.7, but you have orjson 3.10.10 which is incompatible.
homeassistant 2024.10.4 requires yarl==1.13.1, but you have yarl 1.16.0 which is incompatible.

Thus, integration needs to update it's dependencies so as not to conflict with home assistant core.

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

joostlek commented 4 hours ago

integration needs to update it's dependencies

No, as you can see, you have newer versions of the dependency installed than homeassistant requires. So you need to downgrade your packages in order to make it work. reolink_aio does not pin dependencies, so it's not setting a hard requirement. If it would do that and it would form a problem, we would see that in the CI.

Keep in mind that with the Core installation method you are expected to solve these issues yourself. These issues are not code issues and do not belong in an issue on github.