EmonScripts icon indicating copy to clipboard operation
EmonScripts copied to clipboard

Notes on emonSD-31Oct23 image creation

Open TrystanLea opened this issue 2 years ago • 2 comments

Not all services are running:

image

emonhub.log does not exist

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

TrystanLea avatar Oct 31 '23 16:10 TrystanLea

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 avatar Oct 31 '23 17:10 TrystanLea

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

TrystanLea avatar Oct 31 '23 17:10 TrystanLea