bohdan-s / SunGather

GNU General Public License v3.0
148 stars 61 forks source link

new install module not found #77

Closed danpadure closed 1 year ago

danpadure commented 1 year ago

I can't understand if the problem is with SunGather (I think not) or with SungrowModbusTcpClient or pymodbus

In pymodbus/client there is no sync.py file. Only sync_diag.py

Traceback (most recent call last): File "/home/dan/SunGather/SunGather/sungather.py", line 3, in from SungrowModbusTcpClient import SungrowModbusTcpClient File "/usr/local/lib/python3.9/dist-packages/SungrowModbusTcpClient/SungrowModbusTcpClient.py", line 1, in from pymodbus.client.sync import ModbusTcpClient ModuleNotFoundError: No module named 'pymodbus.client.sync'

bohdan-s commented 1 year ago

Hi,There seems to be an issue where pymodbus v3 is not supported. In the requirements file force v2 (change >= to ==) and it will work. Will look at a PR to fix shortly. Regards,BohdanOn 22 Oct 2022, at 7:08 am, danpadure @.***> wrote: I can't understand if the problem is with SunGather (I think not) or with SungrowModbusTcpClient or pymodbus In pymodbus/client there is no sync.py file. Only sync_diag.py Traceback (most recent call last): File "/home/dan/SunGather/SunGather/sungather.py", line 3, in from SungrowModbusTcpClient import SungrowModbusTcpClient File "/usr/local/lib/python3.9/dist-packages/SungrowModbusTcpClient/SungrowModbusTcpClient.py", line 1, in from pymodbus.client.sync import ModbusTcpClient ModuleNotFoundError: No module named 'pymodbus.client.sync'

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

danpadure commented 1 year ago

it worked I get something, but only on http mode it's working ok. In sungrow/modbus mode I get some data but lots of modbus errors I am accessing it through the WINET-S wifi dongle Should I remove the dongle and connect the eth directly to the inverter in it's place? It's a SG3.0RS and it has code 9731 = 0x2603 I replaced SG3.0RT with the RS and I get some more information, but I'dd like also the MPPTs voltage/amps (has 2 MPPTs)

bohdan-s commented 1 year ago

Correct, the WiNet-S does not fully work with modbus. You will need to use the HTTP method. In fact up until the last firmware update the WiNet-S had no modbus support, now it seems to have “some”. We are all hoping a future update fully resolves/enables modbus support. Regards,BohdanOn 23 Oct 2022, at 8:09 am, danpadure @.***> wrote: it worked I get something, but only on http mode it's working ok. In sungrow/modbus mode I get some data but lots of modbus errors I am accessing it through the WINET-S wifi dongle Should I remove the dongle and connect the eth directly to the inverter in it's place? It's a SG3.0RS and it has code 9731 = 0x2603 I replaced SG3.0RT with the RS and I get some more information, but I'dd like also the MPPTs voltage/amps (has 2 MPPTs)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>