You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was on Raspberry Buster (Python 3.7) and everything worked fine.
I reinstalled a Bullseye version on Raspberry (which has Python 3.9.2) and wanted to install SolarEdge Modbus again.
Everything seems to be going well, both for the installation of SolarEdge Modbus :
Problem: Contrary to before, when starting the plugin in domoticz I get the following message (as if the module "pymodbus.client.sync" was not installed).
2023-03-19 10:58:47.494 Status: Solaire: Entering work loop.
2023-03-19 10:58:47.494 Status: Solaire: Started.
2023-03-19 10:58:48.163 Error: Solaire: (SolarEdge_ModbusTCP) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Solaredge/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2023-03-19 10:58:48.166 Error: Solaire: Traceback (most recent call last):
2023-03-19 10:58:48.166 Error: Solaire: File "/home/pi/domoticz/plugins/Solaredge/plugin.py", line 54, in <module>
2023-03-19 10:58:48.166 Error: Solaire: import solaredge_modbus
2023-03-19 10:58:48.166 Error: Solaire: File "/usr/local/lib/python3.9/dist-packages/solaredge_modbus/__init__.py", line 7, in <module>
2023-03-19 10:58:48.166 Error: Solaire: from pymodbus.client.sync import ModbusTcpClient
2023-03-19 10:58:48.166 Error: Solaire: ModuleNotFoundError: No module named 'pymodbus.client.sync'
I have seen the problem #62 which is similar.
I tried to make a I tried to do a "python3 -m pip install --upgrade solaredge_modbus" which went well but did not solve the problem
I then modified the "nano init.py" file to replace "pymodbus.client.sync" by "pymodbus.client" and indeed the module starts but it doesn't work at all afterwards (I get many errors):
2023-03-19 11:58:06.076 Error: SolarEdge: Call to function 'onHeartbeat' failed, exception details:
2023-03-19 11:58:06.078 Error: SolarEdge: Traceback (most recent call last):
2023-03-19 11:58:06.078 Error: SolarEdge: inverter_values = self.inverter.read_all()
2023-03-19 11:58:06.078 Error: SolarEdge: File "/usr/local/lib/python3.9/dist-packages/solaredge_modbus/__init__.py", line 394, in read_all
2023-03-19 11:58:06.078 Error: SolarEdge: results.update(self._read_all(register_batch, rtype))
2023-03-19 11:58:06.078 Error: SolarEdge: File "/usr/local/lib/python3.9/dist-packages/solaredge_modbus/__init__.py", line 330, in _read_all
2023-03-19 11:58:06.078 Error: SolarEdge: data = self._read_holding_registers(offset, length)
2023-03-19 11:58:06.078 Error: SolarEdge: File "/usr/local/lib/python3.9/dist-packages/solaredge_modbus/__init__.py", line 224, in _read_holding_registers
2023-03-19 11:58:06.078 Error: SolarEdge: result = self.client.read_holding_registers(address, length, unit=self.unit)
2023-03-19 11:58:06.078 Error: SolarEdge: File "/usr/local/lib/python3.9/dist-packages/pymodbus/client/mixin.py", line 103, in read_holding_registers
2023-03-19 11:58:06.078 Error: SolarEdge: pdu_reg_read.ReadHoldingRegistersRequest(address, count, slave, **kwargs)
2023-03-19 11:58:06.078 Error: SolarEdge: TypeError: __init__() got multiple values for argument 'unit'
etc...
Would you know how to solve this problem?
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered:
vinchz31
changed the title
Error "ModuleNotFoundError: No module named 'pymodbus.client.sync'"
[Solved] - Error "ModuleNotFoundError: No module named 'pymodbus.client.sync'"
Mar 19, 2023
Hello to all,
I use SolarEdge Modbus to import into domoticz (with the plugin "Solaredge Modbus TCP for Domoticz" (https://github.com/addiejanssen/domoticz-solaredge-modbustcp-plugin).
I was on Raspberry Buster (Python 3.7) and everything worked fine.
I reinstalled a Bullseye version on Raspberry (which has Python 3.9.2) and wanted to install SolarEdge Modbus again.
Everything seems to be going well, both for the installation of SolarEdge Modbus :
But also for the installation of the Domoticz plugin:
Problem: Contrary to before, when starting the plugin in domoticz I get the following message (as if the module "pymodbus.client.sync" was not installed).
I have seen the problem #62 which is similar.
I tried to make a I tried to do a "python3 -m pip install --upgrade solaredge_modbus" which went well but did not solve the problem
I then modified the "nano init.py" file to replace "pymodbus.client.sync" by "pymodbus.client" and indeed the module starts but it doesn't work at all afterwards (I get many errors):
etc...
Would you know how to solve this problem?
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: