Well, as usual, it was something I was doing wrong...
I'd been executing the following command....
sudo python /home/pi/python/main/jbd-bms-mqtt.py -a "a4:c1:37:31:b8:d0" -i 0 -t solar/laundry
I should have be executing....
sudo /home/pi/python/main/bin/python /home/pi/python/main/jbd-bms-mqtt.py -a "a4:c1:37:31:b8:d0" -i 0 -t solar/laundry
As I was running python from the main install, and not in the venv it was not finding the installed modules. Once I ran python from the activated venv environment path things worked fine. Note: I run using sudo because it's a requirement for the bluepy library in order to access BlueTooth devices.
Live and learn...
I'd been executing the following command....
sudo python /home/pi/python/main/jbd-bms-mqtt.py -a "a4:c1:37:31:b8:d0" -i 0 -t solar/laundry
I should have be executing....
sudo /home/pi/python/main/bin/python /home/pi/python/main/jbd-bms-mqtt.py -a "a4:c1:37:31:b8:d0" -i 0 -t solar/laundry
As I was running python from the main install, and not in the venv it was not finding the installed modules. Once I ran python from the activated venv environment path things worked fine. Note: I run using sudo because it's a requirement for the bluepy library in order to access BlueTooth devices.
Live and learn...
Statistics: Posted by madmacks59 — Fri Feb 09, 2024 3:17 pm