Closed dennisjenkins75 closed 9 months ago
Strange. I nuked my entire home assistant docker container a second time, but this time I also removed the cached container image, and when it rebuilt, Avanza is now working, no errors.
Nice that it works now, seems some package in pyavanza (probably aiohttp) conflicts with some in your ha. What version of ha are you on?
Core 2023.12.3
Frontend 20231208.2
Got the same problem today. Tried to upgrade pyavanza manually:
Installing collected packages: aiohttp, pyavanza Attempting uninstall: aiohttp Found existing installation: aiohttp 3.8.5 Uninstalling aiohttp-3.8.5: Successfully uninstalled aiohttp-3.8.5 Attempting uninstall: pyavanza Found existing installation: pyavanza 0.6.0 Uninstalling pyavanza-0.6.0: Successfully uninstalled pyavanza-0.6.0 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 2023.10.5 requires aiohttp==3.8.5, but you have aiohttp 3.9.1 which is incompatible.
2023.10.5 requires aiohttp==3.8.5, but you have aiohttp 3.9.1 which is incompatible.
Here the problem is that your homeassistant version needs to be upgraded. I will investigate if there is some way to set minimum required homeassistant version for a specific version of avanza_stock. Would be nice to prevent these errors and show why you can't/should't update. Seems 2023.12 is needed for aiohttp 3.9.1
I think there is some way to do what you're looking for (but I don't know how), because I've often noticed that I get more available upgrades in HACS after upgrade of HASS.
Yep, happen to me too.
HA Docker version: 2023.11.2 RPi 4B
Yep, happen to me too.
HA Docker version: 2023.11.2 RPi 4B
You need at leaat 2023.12 for the latest version
Added a minimum version to hacs.json, so will protect those that use hacs
I run home assistant in docker on Gentoo Linux (host OS should not matter). Today HA notified me that there was an update for Avanza (from 1.4.0 to 1.5.0), so I installed it. Now its failing to load. Sadly, the error message does not make it clear what the dependency problem is.
While attempting to diagnose this, I removed and regenerated my docker container, and the problem persists.
Error (from docker logs):
My sensor config:
Files in
/config/custom_components/avanza_stock
:manifest.json
:There are no other avanza related files in this container's file system, so what is "pyavanza 0.7.0" conflicting with?