Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting File "gpstest.py", line 8 print "raw:", data #prints raw data #5

Open
paulnewnes opened this issue Oct 17, 2020 · 2 comments
Open

Comments

@paulnewnes
Copy link

paulnewnes commented Oct 17, 2020

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?

@jclarijs
Copy link

jclarijs commented Oct 19, 2020

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.

@paulnewnes
Copy link
Author

thanks @jclarijs .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants