You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(1/3) Loading data from /home/jsibert/Projects/Trips/Takeout/Location History/Semantic Location History/2022/2022_AUGUST.json
Traceback (most recent call last):
File "geo_heatmap.py", line 327, in
generator.run(data_file, output_file, date_range, stream_data, settings)
File "geo_heatmap.py", line 258, in run
self.loadJSONData(json_file, date_range)
File "geo_heatmap.py", line 57, in loadJSONData
first_element = data["locations"][0]
KeyError: 'locations'
The text was updated successfully, but these errors were encountered:
It seem in my cursory reading of the README, that I misunderstood the file names and directory structure. Also my takeout download from google does not contain files named "locations.json" or "Location History.json". Instead my takeout contains "Records.json." So the following command seems to work as expected in a bash terminal under linux: ./geo_heatmap.py ~/Projects/Trips/Takeout/Location\ History/Records.json --min-date 2022-08-19 --max-date 2022-08-19
Does google arbitrarily change file name? Or is it browser (I use Firefox) or OS (I use linux) dependent/
Note the '\' character to escape the space in the path name. Also it was necessary to convert the DOS line endings in the python source to unix line endings (with fromdos).
$ uname -a
Linux kihikihi 5.4.0-124-generic #140-Ubuntu SMP Thu Aug 4 02:23:37 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
$ python3 --version
Python 3.8.10
$ python3 geo_heatmap.py ~/Projects/Trips/Takeout/Location\ History/Semantic\ Location\ History/2022/2022_AUGUST.json
(1/3) Loading data from /home/jsibert/Projects/Trips/Takeout/Location History/Semantic Location History/2022/2022_AUGUST.json
Traceback (most recent call last):
File "geo_heatmap.py", line 327, in
generator.run(data_file, output_file, date_range, stream_data, settings)
File "geo_heatmap.py", line 258, in run
self.loadJSONData(json_file, date_range)
File "geo_heatmap.py", line 57, in loadJSONData
first_element = data["locations"][0]
KeyError: 'locations'
The text was updated successfully, but these errors were encountered: