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'm trying to run the sample code given in https://github.com/GivEnergy/givenergy-modbus2#readme.
It fails trying to import GivEnergyClient from givenergy_modbus.client
(I am a bit of a python n00b, so I might be missing something obvious)
What I Did
I copied and pasted the sample code into a file (test.py) in ~/givenergy-modbus2/.
I commented out the lines which send control signals to the inverter.
I ran the code with python test.py
Traceback (most recent call last):
File "/home/pi/givenergy-modbus2/test2.py", line 2, in <module>
from givenergy_modbus.client import GivEnergyClient
ImportError: cannot import name 'GivEnergyClient' from 'givenergy_modbus.client' (/home/pi/givenergy-modbus2/givenergy_modbus/client/__init__.py)
The text was updated successfully, but these errors were encountered:
Description
I'm trying to run the sample code given in
https://github.com/GivEnergy/givenergy-modbus2#readme
.It fails trying to import
GivEnergyClient
fromgivenergy_modbus.client
(I am a bit of a python n00b, so I might be missing something obvious)
What I Did
I copied and pasted the sample code into a file (
test.py
) in~/givenergy-modbus2/
.I commented out the lines which send control signals to the inverter.
I ran the code with
python test.py
The text was updated successfully, but these errors were encountered: