Scarygami / location-history-json-converter

Convert the Location History JSON File from Google Takeout into a useable format
Apache License 2.0
468 stars 117 forks source link

SyntaxError: invalid syntax #39

Open NgeNdomo opened 3 years ago

NgeNdomo commented 3 years ago

I'm getting this error:

File "location_history_json_converter.py", line 390 print("\r%s / Locations written: %s" % (time.strftime("%Y-%m-%d %H:%M"), added), end="") ^ SyntaxError: invalid syntax

mmykle commented 3 years ago

I was getting this same error but fixed it by changing how I entered the -s and -e start/end dates. You can't put: -s 2020-04-01 You have to put: -s 2020-04-01 (13h30) (for 1:30PM on April 1st, 2020)

Full entry in terminal: python location_history_json_converter.py "MyPath/Location History.json" "helloworld.kml" -f kml -s 2020-04-01 (0h00) -e 2020-04-30 (24h00) -i

NgeNdomo commented 3 years ago

Thanks. I'm on OSX and finally could make it with this:

python3 /Users/XXXXXX/location_history/location_history_json_converter.py /Users/XXXXXX/location_history/location_history.json /Users/XXXXXX/location_history/2017.GPX -s 2017-01-01 -e 2018-01-01 -f gpx

NgeNdomo commented 3 years ago

I guess my error was not to work with python3