Notes on emonSD-31Oct23 image creation
Opened this issue · 2 comments
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 $
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/