kentavv / linuxcnc-streamdeck

Elgato StreamDeck control of LinuxCNC example
MIT License
9 stars 1 forks source link

Invalid syntax error #1

Open slukaskawcez opened 2 years ago

slukaskawcez commented 2 years ago

slukas@ShakeOko:~/linuxcnc-streamdeck$ ./linuxcnc-streamdeck.py File "./linuxcnc-streamdeck.py", line 425 msg = '\n'.join([f'{k}:{1 if v else 0}' for k,v in state_.items()]) ^ SyntaxError: invalid syntax

kentavv commented 2 years ago

My guess is either the shell interpreter or python2 is being called. You'll need Python 3. Does 'python3 ./linuxcnc-streamdeck.py' work for you? The linuxcnc-server.py file uses python2 to be compatible with LinuxCNC at the time. It's possible to rebuild the development LinuxCNC to use Python 3 now.