Die Fehlermeldung im Log lautet:
Code: Alles auswählen
ModuleNotFoundError: No module named 'pymodbus.client.sync'
dann die 1.9.295 ... nix 1.9.299.4 auch nix.
Nun habe ich auch den PI zwei Versionen höher auf stretch gebracht. Gleicher Fehler.
Ich weiß nicht wirklich was das Problem ist.
Kann es sein, dass der Aufruf geändert wurde?
So hatte ich das jetzt seid 2019 laufen.
Code: Alles auswählen
Strombezugsmessmodul (EVU-Übergabepunkt)
MPM3PM
/dev/ttyUSB1
ID: 5
Ladepunkt 1 Garage
Anbindung
/dev/ttyUSB0
ID: 1
Ladeleistungmodul
/dev/ttyUSB0
ID: 6
Ladepunkt 2 Fahrradbox
Anbindung
/dev/ttyUSB1
ID: 1
Ladeleistungmodul
/dev/ttyUSB1
ID: 8
Code: Alles auswählen
sudo pip3 install -U pymodbus
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pymodbus in /usr/local/lib/python3.9/dist-packages (3.2.2)
Collecting pymodbus
Using cached https://www.piwheels.org/simple/pymodbus/pymodbus-3.2.2-py3-none-any.whl (154 kB)
Using cached https://www.piwheels.org/simple/pymodbus/pymodbus-3.2.1-py3-none-any.whl (154 kB)
Requirement already satisfied: setuptools<66.0.0 in /usr/lib/python3/dist-packages (from pymodbus) (52.0.0)
Code: Alles auswählen
lsusb
Bus 001 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 001 Device 005: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 004: ID 0b95:772b ASIX Electronics Corp. AX88772B
Bus 001 Device 008: ID ffff:0035 Sycreader USB Reader
Bus 001 Device 007: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code: Alles auswählen
2023-04-20 20:46:53: PID: 26342: **** FATAL ********************************* (LV0)
2023-04-20 20:46:53: PID: 26342: **** FATAL Regulation loop needs 11 seconds (LV0)
2023-04-20 20:46:53: PID: 26342: **** FATAL ********************************* (LV0)
2023-04-20 20:46:52: PID: 27383: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
26342
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 110, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 88, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 49, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
2023-04-20 20:46:47: PID: 7357: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-20 20:46:44: PID: 26342: Modbus EVSE read CP2 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:46:43: PID: 26342: Modbus EVSE read CP1 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:46:34: PID: 25081: **** FATAL ********************************* (LV0)
2023-04-20 20:46:34: PID: 25081: **** FATAL Regulation loop needs 12 seconds (LV0)
2023-04-20 20:46:34: PID: 25081: **** FATAL ********************************* (LV0)
2023-04-20 20:46:32: PID: 26119: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
26110 25081
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 110, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 88, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 49, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
2023-04-20 20:46:28: PID: 7357: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-20 20:46:24: PID: 25081: Modbus EVSE read CP2 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:46:23: PID: 25081: Modbus EVSE read CP1 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:46:13: PID: 23813: **** FATAL ********************************* (LV0)
2023-04-20 20:46:13: PID: 23813: **** FATAL Regulation loop needs 11 seconds (LV0)
2023-04-20 20:46:13: PID: 23813: **** FATAL ********************************* (LV0)
2023-04-20 20:46:12: PID: 24924: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
23813
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 110, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 88, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 49, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
2023-04-20 20:46:08: PID: 7357: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-20 20:46:04: PID: 23813: Modbus EVSE read CP2 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:46:03: PID: 23813: Modbus EVSE read CP1 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:45:53: PID: 22556: **** FATAL ********************************* (LV0)
2023-04-20 20:45:53: PID: 22556: **** FATAL Regulation loop needs 11 seconds (LV0)
2023-04-20 20:45:53: PID: 22556: **** FATAL ********************************* (LV0)
2023-04-20 20:45:52: PID: 23301: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
22556
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 110, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 88, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 49, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
2023-04-20 20:45:49: PID: 7357: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-20 20:45:45: PID: 22556: Modbus EVSE read CP2 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:45:44: PID: 22556: Modbus EVSE read CP1 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:45:33: PID: 21315: **** FATAL ********************************* (LV0)
2023-04-20 20:45:33: PID: 21315: **** FATAL Regulation loop needs 11 seconds (LV0)
2023-04-20 20:45:33: PID: 21315: **** FATAL ********************************* (LV0)
2023-04-20 20:45:32: PID: 22418: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
21315
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 110, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 88, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 49, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
2023-04-20 20:45:27: PID: 7357: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-20 20:45:24: PID: 21315: Modbus EVSE read CP2 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:45:23: PID: 21315: Modbus EVSE read CP1 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:45:14: PID: 19826: **** FATAL ********************************* (LV0)
2023-04-20 20:45:14: PID: 19826: **** FATAL Regulation loop needs 12 seconds (LV0)
2023-04-20 20:45:14: PID: 19826: **** FATAL ********************************* (LV0)
2023-04-20 20:45:12: PID: 20681: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
19826
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 110, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 88, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 49, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
2023-04-20 20:45:09: PID: 7357: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-20 20:45:07: PID: 19807: ##### cron5min.sh finished ##### (LV0)
2023-04-20 20:45:05: PID: 19826: Modbus EVSE read CP2 issue - using previous state '1' (LV0)
2023-04-20 20:45:05: PID: 20152: smart home handler not running! restarting process (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:45:04: PID: 20152: Starting OpenWB services (LV0)
2023-04-20 20:45:03: PID: 19826: Modbus EVSE read CP1 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):