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
Hi. I run the application like this:
/home/pi/modbus2mqtt/bin/python3 -m modbus2mqtt --rtu /dev/ttyUSB0 --rtu-baud 9600 --rtu-parity none --mqtt-host localhost --config /home/pi/modbus2mqtt/example.csv
I get this error:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/pi/modbus2mqtt/lib/python3.11/site-packages/modbus2mqtt/modbus2mqtt.py", line 44, in
from .addToHomeAssistant import HassConnector
ImportError: attempted relative import with no known parent package
the library versions are as follows:
/home/pi/modbus2mqtt/bin/pip3 list
Package Version
Hi. I run the application like this:
/home/pi/modbus2mqtt/bin/python3 -m modbus2mqtt --rtu /dev/ttyUSB0 --rtu-baud 9600 --rtu-parity none --mqtt-host localhost --config /home/pi/modbus2mqtt/example.csv
I get this error:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/pi/modbus2mqtt/lib/python3.11/site-packages/modbus2mqtt/modbus2mqtt.py", line 44, in
from .addToHomeAssistant import HassConnector
ImportError: attempted relative import with no known parent package
the library versions are as follows:
/home/pi/modbus2mqtt/bin/pip3 list
Package Version
future 1.0.0
iso8601 2.1.0
modbus2mqtt 0.72
paho-mqtt 1.6.1
pip 23.0.1
pymodbus 3.7.4
PyYAML 6.0.2
serial 0.0.97
setuptools 66.1.1
Please tell me what is wrong and how to fix it? probably some libraries of the wrong version?
The text was updated successfully, but these errors were encountered: