Closed wywywywy closed 1 month ago
Most likely the libs you are listing are not the python libs in the HA environment. The version of pyeasee that HA loads is not the correct version, this is a change that was made in both lib and component in the recent versions, so something is stopping HA from installing the correct version. If you search for pyeasee in home-assistant.log, can you not see what version is loaded there? Did you turn on debug logging as described in the readme?
Thanks for the prompt reply.
When searching for pyeasee, it shows this, nothing else.
2024-10-18 14:38:17.693 INFO (SyncWorker_0) [homeassistant.util.package] Attempting install of pyeasee==0.8.5
Are you saying there's another place HA loads python libs? I only know of /config/deps
and of course /usr/local/lib/python3.12/site-packages
. And pyeasee-0.8.5
is in /config/deps
.
If you see the line "Attempting install of pyeasee==0.8.5" every time you start HA it means it is trying to install pyeasee 0.8.5 but fails for some reason. I would expect some kind of error message a few lines further down.
I can not tell by the information you have provided if the location you are pointing to are the location where HA loads libs from. It is common that HA runs in some kind of virtual environment that is different from the user environment. What kind of installation do you have?
A normal startup would have these 2 lines in the log file (if you have first enabled debug logging as described in the readme). 2024-10-19 16:13:55.279 DEBUG (MainThread) [custom_components.easee] Setting up Easee component version 0.9.62 2024-10-19 16:13:55.279 INFO (MainThread) [pyeasee.easee] Easee python library version: 0.8.5
Hi. So it turns out there are indeed multiple places to store Python packages.
HA wants to install pyeasee
to /config/deps/
, but then it tries to import packages from /config/deps/lib/python3.12/site-packages/
for some reasons.
So anyway, I fixed it with PYTHONPATH=/config/deps/lib/python3.12/site-packages pip install --upgrade pyeasee==0.8.5
inside of the container, and it's working fine now.
Thanks for your help.
Before creating an issue...
The problem
Another failure after upgrading to the latest version. But this time the error is different, and also I think it did manage to install the dependency?
Main part is here:
easee/const.py line 151
Any ideas please?
Version of Easee integration having the issue?
0.9.62
Version of Home Assistant Core having the issue?
2024.10.2
Anything in the logs that might be useful for us?
Additional information
I'm using the Home Assistant stable container.
The
pyeasee
v0.8.5 seems to have installed already, so I'm guessing it's not a dependency problem, but I could be wrong.