I am left with one small issue. The errors that flow into the file at /var/mail indicates that the module "six" cannot be found.
When I try to run LiveStats.py from the console, it works OK when I use "python LiveStats.py".
Code: Select all
python LiveStats.py
2023-09-12 08:23:40,706 DEBUG Importing output plugin ConsoleOutput
2023-09-12 08:23:40,707 INFO Connecting to logger with IP: 10.0.0.198 and SN 602216309
2023-09-12 08:23:40,712 INFO connecting to 10.0.0.198 port 8899
2023-09-12 08:23:40,721 DEBUG RAW sent Packet (len=16): 68:02:41:b1:75:17:e5:23:75:17:e5:23:01:00:1d:16 hAu#u#
2023-09-12 08:23:41,180 DEBUG RAW received Packet (len=99): 68:55:41:b0:75:17:e5:23:75:17:e5:23:81:02:01:4e:4c:44:4e:34:30:32:30:31:33:33:4e:31:30:37:38:01:12:09:93:09:c7:ff:ff:00:03:00:03:ff:ff:00:06:ff:ff:ff:ff:09:2c:ff:ff:ff:ff:13:8c:00:a0:ff:ff:ff:ff:ff:ff:ff:ff:00:06:00:04:fb:f9:00:00:9d:0c:00:01:00:00:00:00:ff:ff:00:00:00:00:00:00:00:00:00:00:2a:16 hUAu#u#NLDN4020133N1078,*
2023-09-12 08:23:41,180 DEBUG DATA len=85:
2023-09-12 08:23:41,182 INFO Inverter ID: NLDN4020133N1078
2023-09-12 08:23:41,182 INFO RUN State: 1
2023-09-12 08:23:41,182 DEBUG Run pluginConsoleOutput
Inverter ID: NLDN4020133N1078
E Today : 0.06 Total: 32664.960000000003
H Total : 40204 Temp : 27.4
errorMsg: 0
PV1 V: 245.1 I: 0.3
PV2 V: 250.3 I: 0.3
PV3 V: -0.1 I: -0.1
L1 P: 160 V: 234.8 I: 0.6 F: 50.04
L2 P: -1 V: -0.1 I: -0.1 F: -0.01
L3 P: -1 V: -0.1 I: -0.1 F: -0.01
2023-09-12 08:23:41,295 DEBUG RAW received Packet (len=31): 68:11:41:f0:75:17:e5:23:75:17:e5:23:44:41:54:41:20:53:45:4e:44:20:49:53:20:4f:4b:0d:0a:5b:16 hAu#u#DATA SEND IS OK[
2023-09-12 08:23:41,295 DEBUG DATA len=17:
2023-09-12 08:23:41,295 DEBUG Exit Status: DATA SEND IS OK
Code: Select all
sudo python LiveStats.py
Traceback (most recent call last):
File "/home/pi/Inverter-Data-Logger/LiveStats.py", line 7, in <module>
import InverterExport
File "/home/pi/Inverter-Data-Logger/InverterExport.py", line 18, in <module>
from PluginLoader import Plugin
File "/home/pi/Inverter-Data-Logger/PluginLoader.py", line 3, in <module>
from six import add_metaclass
ModuleNotFoundError: No module named 'six'
I installed "pip install six", as mentioned in the installation instructions. When I try "sudo pip install six", it gives me errors...
Code: Select all
sudo pip install six
Requirement already satisfied: six in /usr/local/lib/python3.10/site-packages (1.16.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv