-
Notifications
You must be signed in to change notification settings - Fork 143
Description
Hi,
I had to reinstall openhabian op rpi 3b, so choose the latest version based on debian12.
but now miflora doesn't run as should be.
the error in journalctl -u miflora:
mei 19 19:45:41 domoberry python3[867]: Traceback (most recent call last): mei 19 19:45:41 domoberry python3[867]: File "/opt/miflora-mqtt-daemon/miflora-mqtt-daemon.py", line 14, in <module> mei 19 19:45:41 domoberry python3[867]: from unidecode import unidecode mei 19 19:45:41 domoberry python3[867]: ModuleNotFoundError: No module named 'unidecode' mei 19 19:45:41 domoberry systemd[1]: miflora.service: Main process exited, code=exited, status=1/FAILURE mei 19 19:45:41 domoberry systemd[1]: miflora.service: Failed with result 'exit-code'. mei 19 19:45:41 domoberry systemd[1]: Failed to start miflora.service - Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon. mei 19 19:45:41 domoberry systemd[1]: miflora.service: Scheduled restart job, restart counter is at 3. mei 19 19:45:41 domoberry systemd[1]: Stopped miflora.service - Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon.
so I did run : pip3 install -r requirements.txt manualy (as per previous issues) and got:
error: externally-managed-environment
Γ This environment is externally managed
β°β> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
For more information visit http://rptl.io/venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Should miflora be installed in a virtual enviroment so it doesn't conflict with any other package?