Open TrystanLea opened 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 File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubMqttInterfacer.py", line 33, infrom interfacers import import paho.mqtt.client as mqtt ModuleNotFoundError: No module named 'paho' pi@emonpi:/var/log/emonhub $
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/
Not all services are running:
emonhub.log does not exist
will add further notes and resolution as I work on this.