Closed JonasRueter closed 3 months ago
@JonasRueter
Just did a clean new install here as well on a Pi4 and everything works for me still.
Tried a new installation, got to the same issue.
What do you mean by new installation? Newly formatted (sdcard) for pi with new iobroker, ... Just an adapter reinstall or iobroker reinstall or ...?
Also I created a new venv with
python3 -m venv venv
, activated it withsource venv/bin/activate
, installedpip3 install esphome
and checkedesphome version
what returned Version: 2024.7.0
so using this you got a working dashboard?
(how would I get into the venv ioBroker is using?)
source /home/iobroker/.cache/autopy/venv/esphome/bin/activate
Operating system: Raspberry Pi 4 / Debian Bookworm
32bit or 64? We already had problems with 32bit a few times with things the adapter has nothing to do with / cant really fix.
@JonasRueter If not completely new environment: have you already tried to clean the adapters cache: rm -rf /home/iobroker/.cache/autopy
what does this print?: cd / sudo find / -type d -name "encodings"
@SimonFischer04
If not completely new environment: have you already tried to clean the adapters cache: rm -rf /home/iobroker/.cache/autopy
That one actually did the trick. Uninstalled the adapter, cleaned the cache, installed the adapter again. Thanks for your help!
Other answers as I already typed them and they might be useful for somebody in future time:
What do you mean by new installation? Newly formatted (sdcard) for pi with new iobroker, ... Just an adapter reinstall or iobroker reinstall or ...?
just the adapter.
Also I created a new venv with
python3 -m venv venv
, activated it withsource venv/bin/activate
, installedpip3 install esphome
and checkedesphome version
what returned Version: 2024.7.0so using this you got a working dashboard?
No, same error, that one actually brought me the better readable log
Operating system: Raspberry Pi 4 / Debian Bookworm
32bit or 64? We already had problems with 32bit a few times with things the adapter has nothing to do with / cant really fix.
64bit
what does this print?: cd / sudo find / -type d -name "encodings"
/opt/iobroker/node_modules/iconv-lite/encodings /opt/iobroker/node_modules/zigbee-herdsman-converters/node_modules/iconv-lite/encodings /opt/iobroker/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings /home/iobroker/.cache/autopy/python/3.11.9/lib/python3.11/encodings /usr/share/fonts/X11/encodings /usr/lib/python3.11/encodings /usr/lib/node_modules/npm/node_modules/iconv-lite/encodings
@JonasRueter
No, same error, that one actually brought me the better readable log
/home/iobroker/.cache/autopy/python/3.11.9/bin/python3 -m venv /home/iobroker/.cache/autopy/venv/esphome
If you just did this what i can read from your output above: you basically didn't create a new venv but just re-used the adapters one, which got broken for some reason
Other answers as I already typed them and they might be useful for somebody in future time:
Thanks for sharing
That one actually did the trick. Uninstalled the adapter, cleaned the cache, installed the adapter again. Thanks for your help!
Great to hear, no problem. Thanks for sharing what worked for you.
Uninstalled the adapter, cleaned the cache, installed the adapter again.
PS (as it came up in Forum also): Unistall/reinstall should not be required. Just cleaning cache and reStarting adapter should have been enough. But reinstall also doesn't hurt, if you don't have anything configured yet.
PS 2.: Created a new issue / feature request to track this and provide a button in the adapters config to do this cache cleaning, as it has come up a few times (recently)
!!! Before you start !!!
Describe the bug
When starting the adapter, a python error appears in log file (see down in Logs). The dashboard does not work, Regardless if I'm trying to include it in ioBroker or use a browser to access http://ip.of.my.iobroker:6052 Finding / adding devices in settings works though.
To Reproduce
Steps to reproduce the behavior: Installed ESPHome on my ioBroker and tried to start it. Tried a new installation, got to the same issue. Tried various fixes that were recommended on the web, none on them changed something
What I tried as solutions already Unset PHYTONHOME and PYTHONPATH as recommended here re-installed python
sudo apt install --reinstall python3-full python3.11-dev libpython3.11-dev python3-pip
re installed all output ofsudo apt-get install --reinstall $(dpkg -S '/usr/lib/python3*' | cut -d ':' -f1 | cut -d ',' -f1 | sort | uniq | tr '\n' ' ')
Also I created a new venv with
python3 -m venv venv
, activated it withsource venv/bin/activate
, installedpip3 install esphome
and checkedesphome version
what returned Version: 2024.7.0 (how would I get into the venv ioBroker is using?)Expected behavior
Dashboard on ioBroker should work ;)
Logs (as screenshot and in text-form)
Better readable output from my own venv:
Versions:
Additional context