invalid syntax
Closed this issue · 3 comments
Don't know if I'm just running it wrong or something (using any kind of option), but whenever I run it I get the following
Traceback (most recent call last):
File "./adbsync.py", line 3, in
import ADBSync
File "/home/Mac/better-adb-sync/src/ADBSync/init.py", line 16, in
from .FileSystems.Local import LocalFileSystem
File "/home/Mac/better-adb-sync/src/ADBSync/FileSystems/Local.py", line 10, in
from .Base import FileSystem
File "/home/Mac/better-adb-sync/src/ADBSync/FileSystems/Base.py", line 18
while adbLine := proc.stdout.readline():
^
SyntaxError: invalid syntax
Edit: this is running on a NAS running Debian Server, with Python3 installed
Ah what Python version are you using? I'd guess that the :=
'walrus operator' is the problem. That requires Python >= 3.8.
I only use it in two places and I could easily replace it with a while True...
equivalent if you need that lower-version of Python?
Closing due to inactivity. Update your installation of Python.
I know this is closed now, just wanted to say that installed latest python in a venv and it works now, thanks! Was using Python 2.7 due to some compatibility issues with a couple of projects Didn't realize Walrus Operators were in use in this code, thanks!