Reply To: Recording Tracks Creating Waypoints?

Home Forums Forums Technical Support for BerryGPS and BerryGPS-IMU Recording Tracks Creating Waypoints? Reply To: Recording Tracks Creating Waypoints?

#16063
West
Participant

I found this https://ozzmaker.com/how-to-save-gps-data-to-a-file-using-python/ copied and pasted into Thonny and ran Thonny returned the following error

Python 3.7.3 (/usr/bin/python3)
>>> %Run gpsfile.py
Traceback (most recent call last):
File "/home/pi/Desktop/Test_Code/gpsfile.py", line 10
print 'GPStime utc\t\t\tlatitude\tlongitude\tspeed\tsats in view' # '\t' = TAB to try and output the data in columns.
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('GPStime utc\t\t\tlatitude\tlongitude\tspeed\tsats in view' # '\t' = TAB to try and output the data in columns.)?
>>> 

Being new to all of this I do not understand the error.

Thanks

Blip, blop, bloop...