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

INVALID SYNTAX AND THEN MERRY GO ROUND WITH zsh: unknown file attribute: 1 zsh: unknown file attribute: 2 #40

Open jessehymer opened 3 years ago

jessehymer commented 3 years ago

At first I had the issue with syntax cause I have a small file size and wasnt worried about start stop dates and times. Then I saw it was required when I was reading the issues post. I've tried it every way and then back again through the side window and kept getting unknown file attribute 1 or 2. I tried the example in the issues post, I tried the example on the description in the webpage. I even tried making it look exactly the way it is in the code. 23,59,59,999999. lol anybody out there have some knowledge about this, its driving me crazy.

python3 location_history_json_converter.py "2021_MAY.json" "NEW.csv" -f csvfullest -s 2021-04-30 --starttime (23h59) -e 2021-05-02 --endtime (23h59) -i -a 500 -p
zsh: unknown file attribute: 2

python3 location_history_json_converter.py "2021_MAY.json" "NEW.csv" -f csvfullest --starttime 2021-04-30 (1000) --endtime 2021-05-02 (1000) -i -a 500 -p -v zsh: unknown file attribute: 1

python3 location_history_json_converter.py "2021_MAY.json" "NEW.csv" -f csvfullest -s 2021-04-30 (1000) -e 2021-05-02 (1000) zsh: unknown file attribute: 1

python3 location_history_json_converter.py "2021_MAY.json" "NEW.csv" -f csvfullest -s 2021-04-30 (10h00) -e 2021-05-02 (2h00) zsh: unknown file attribute: 1

python3 location_history_json_converter.py "2021_MAY.json" "NEW.csv" -f csvfullest -s 2021-04-30 (0h00) -e 2021-05-02 (0h00) zsh: unknown file attribute: 0

python3 location_history_json_converter.py "2021_MAY.json" "NEW.csv" -f csv -s 2021-04-30 (23,59,59,999999) -e 2021-05-02 (23,59,59,999999) -i
zsh: unknown file attribute: 2

python3 location_history_json_converter.py [2021_MAY.json] [NEW.csv] -f csvfullest -s 2021-04-30 (23,59,59,999999) -e 2021-05-02 (23,59,59,999999) -i zsh: unknown file attribute: 2

python3 location_history_json_converter.py [2021_MAY.json] [NEW.csv] -f csvfullest -s 2021-04-30 (23,59,59,999999) -e 2021-05-02 (23,59,59,999999) -i zsh: unknown file attribute: 2

NgeNdomo commented 3 years ago

I'm on OSX. Try 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

Just change your path and the file format.