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
Just passing by, but the script you are running is written in python2 syntax. Python 3 is not backwards compatible with python 2. Therefore you can't use python3 to run gpstest.py.
You could convert the gpstest.py to a python3 script manually (it's not a big script), or you could use python's converter program: https://docs.python.org/2/library/2to3.html
Otherwise you could use python2 to run the script.
in addition -
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("raw:", data #prints raw data)?
when running:
sudo python3 gpstest.py
the original recommendation is from here:
https://community.sixfab.com/t/how-to-get-gps-data/178/2
and the command is
sudo python3 gpstest.py
.Is this a python3 issue?
The text was updated successfully, but these errors were encountered: