I have a program I have setup a Unit file for so that it will run as a service on startup.
The program runs fine from the command line, however it fails to run on startup.
When I check the status of the service, I see that has it failed to load. I see the failure is the result of:
import paho.mqtt.client as mqtt
ImportError: No module named 'paho'
And yet the the program does run from the command line, and also in IDLE, just fine and throws no import error.
Can someone explain what's going on?