spacemanspiff2007 / sml2mqtt

Sml to MQTT Bridge
GNU General Public License v3.0
25 stars 8 forks source link

errors when running config #1

Closed bruma59 closed 3 years ago

bruma59 commented 3 years ago

What did I do wrong

(venv) root@DietPi:/opt/sml2mqtt/venv# sml2mqtt --config /opt/sml2mqtt Traceback (most recent call last): File "/opt/sml2mqtt/venv/bin/sml2mqtt", line 6, in from sml2mqtt.main import main File "/opt/sml2mqtt/venv/lib/python3.7/site-packages/sml2mqtt/main.py", line 1 3, in from sml2mqtt.sml_device import Device File "/opt/sml2mqtt/venv/lib/python3.7/site-packages/sml2mqtt/sml_device.py", line 7, in from smllib import CrcError, SmlStreamReader File "/opt/sml2mqtt/venv/lib/python3.7/site-packages/smllib/init.py", line 3, in from smllib.sml_frame import SmlFrame # noqa: F401 File "/opt/sml2mqtt/venv/lib/python3.7/site-packages/smllib/sml_frame.py", lin e 107 while (start := self.bytes.find(b'\x77\x07\x01', start + 1)) != -1: ^ SyntaxError: invalid syntax

spacemanspiff2007 commented 3 years ago

sml2mqtt requires python 3.8, you try to run it with python 3.7

bruma59 commented 3 years ago

Thanks for the quick response. Dietpi-jessie auto upgraded to buster - python3.8 is not available yet for that debian I'll try raspbian

spacemanspiff2007 commented 3 years ago

I'll close this - feel free to reopen if you experience errors with python 3.8