Scarygami / location-history-json-converter

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

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

Open AnimoStudios opened 1 year ago

AnimoStudios commented 1 year ago

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 commented 1 year ago

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

AnimoStudios commented 1 year ago

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

rickprice commented 1 year ago

Did you need a fix for this?

On Fri, Feb 10, 2023, 09:16 AnimoStudios @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/Scarygami/location-history-json-converter/issues/55#issuecomment-1425871930, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHXNTW3VNGTIZAXAN7XAHTWWZEU5ANCNFSM6AAAAAAUNMVT2Y . You are receiving this because you are subscribed to this thread.Message ID: @.*** .com>

AnimoStudios commented 1 year ago

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

edgiles commented 1 year ago

Please see https://github.com/Scarygami/location-history-json-converter/issues/37

rickprice commented 1 year ago

yes, can you send me an example file that breaks, or really detailed reproduce by instructions? ie the command line you use, since an empty CSV file seems easy to create...

On Fri, Feb 10, 2023, 23:08 AnimoStudios @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/Scarygami/location-history-json-converter/issues/55#issuecomment-1426606610, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHXNTTGO2MAYCBZ7PTZDU3WW4GDHANCNFSM6AAAAAAUNMVT2Y . You are receiving this because you commented.Message ID: @.*** com>

rickprice commented 1 year ago

I can probably turn a fix around in a day or two. I can't work on it today anymore, but tommorrow or Monday is looking good.

On Fri, Feb 10, 2023, 23:08 AnimoStudios @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/Scarygami/location-history-json-converter/issues/55#issuecomment-1426606610, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHXNTTGO2MAYCBZ7PTZDU3WW4GDHANCNFSM6AAAAAAUNMVT2Y . You are receiving this because you commented.Message ID: @.*** com>

rickprice commented 1 year ago

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

sturmi commented 1 year ago

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