spacemanspiff2007/sml2mqtt

errors when running config

Closed this issue · 3 comments

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

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

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

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