openenergymonitor / EmonScripts

Emoncms Stack Installation and Update scripts
16 stars 30 forks source link

Notes on emonSD-31Oct23 image creation #184

Open TrystanLea opened 1 year ago

TrystanLea commented 1 year ago

Not all services are running:

image

emonhub.log does not exist

will add further notes and resolution as I work on this.

TrystanLea commented 1 year ago

Broken image perhaps:

pi@emonpi:/var/log/emonhub $ python3 /opt/openenergymonitor/emonhub/src/emonhub.py --config-file=/etc/emonhub/emonhub.conf Traceback (most recent call last): File "/opt/openenergymonitor/emonhub/src/emonhub.py", line 29, in from interfacers import File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubMqttInterfacer.py", line 33, in import paho.mqtt.client as mqtt ModuleNotFoundError: No module named 'paho' pi@emonpi:/var/log/emonhub $ sudo python3 /opt/openenergymonitor/emonhub/src/emonhub.py --config-file=/etc/emonhub/emonhub.conf Traceback (most recent call last): File "/opt/openenergymonitor/emonhub/src/emonhub.py", line 29, in from interfacers import File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubMqttInterfacer.py", line 33, in import paho.mqtt.client as mqtt ModuleNotFoundError: No module named 'paho' pi@emonpi:/var/log/emonhub $

TrystanLea commented 1 year ago

Easy solution https://www.jeffgeerling.com/blog/2023/how-solve-error-externally-managed-environment-when-installing-pip3

but perhaps should use venv https://peps.python.org/pep-0668/

https://stackoverflow.com/questions/75602063/pip-install-r-requirements-txt-is-failing-this-environment-is-externally-mana