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

SyntaxError: invalid syntax #39

Open
NgeNdomo opened this issue Jan 5, 2021 · 3 comments
Open

SyntaxError: invalid syntax #39

NgeNdomo opened this issue Jan 5, 2021 · 3 comments

Comments

@NgeNdomo
Copy link

NgeNdomo commented Jan 5, 2021

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
Copy link

mmykle commented Mar 7, 2021

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
Copy link
Author

NgeNdomo commented Jun 5, 2021

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
Copy link
Author

NgeNdomo commented Jun 5, 2021

I guess my error was not to work with python3

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