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

Data["loctations"] on M1 OS 12.2.1 with Python 3.11 #55

Open
AnimoStudios opened this issue Feb 1, 2023 · 9 comments
Open

Data["loctations"] on M1 OS 12.2.1 with Python 3.11 #55

AnimoStudios opened this issue Feb 1, 2023 · 9 comments

Comments

@AnimoStudios
Copy link

Hello,
Using the latest script and Python 3.11 on a mac and keep getting errors or empty CSV files.

python3 location_history_json_converter.py 2020_JANUARY.json testit2.csv -f 'csvfullest' -c

Traceback (most recent call last):
File "/Users/animo/Documents/_Code/location_history_json_converter.py", line 601, in
sys.exit(main())
^^^^^^
File "/Users/animo/Documents/_Code/location_history_json_converter.py", line 569, in main
items = data["locations"]
~~~~^^^^^^^^^^^^^
KeyError: 'locations'

@ashwinma14
Copy link

I got the same issue - did you figure out a way to resolve it?

@AnimoStudios
Copy link
Author

Hi, don't have a solve for the issue yet.

@rickprice
Copy link

rickprice commented Feb 10, 2023 via email

@AnimoStudios
Copy link
Author

Hi Rick, yes looking for a fix or work around. Are you able to assist?

@edgiles
Copy link

edgiles commented Feb 11, 2023

Please see #37

@rickprice
Copy link

rickprice commented Feb 11, 2023 via email

@rickprice
Copy link

rickprice commented Feb 11, 2023 via email

@rickprice
Copy link

I just created a PR that should fix this, but its untested.

@sturmi
Copy link

sturmi commented Apr 27, 2023

Hello, Using the latest script and Python 3.11 on a mac and keep getting errors or empty CSV files.

python3 location_history_json_converter.py 2020_JANUARY.json testit2.csv -f 'csvfullest' -c

Traceback (most recent call last): File "/Users/animo/Documents/_Code/location_history_json_converter.py", line 601, in sys.exit(main()) ^^^^^^ File "/Users/animo/Documents/_Code/location_history_json_converter.py", line 569, in main items = data["locations"] ~~~~^^^^^^^^^^^^^ KeyError: 'locations'

Hello all,
to convert the monthly files I am using this project:
https://github.com/DovarFalcone/google-takeout-location-parser
It generates one csv from all the YYYY_MONTH.json files.

regards
Thomas

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

5 participants