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

Script not compatible with the latest Takeout zip structure #58

Open
davidmigloz opened this issue Jan 1, 2023 · 1 comment
Open

Script not compatible with the latest Takeout zip structure #58

davidmigloz opened this issue Jan 1, 2023 · 1 comment
Labels
Bug Something isn't working Priority: High This has high priority Todo

Comments

@davidmigloz
Copy link

I downloaded my location data today and tried to run the script but I'm getting the following exception:

python geo_heatmap.py takeout-20230101T215713Z-001.zip

(1/3) Loading data from takeout-20230101T215713Z-001.zip
Traceback (most recent call last):
  File "/Users/davidmigloz/repos/geo-heatmap/geo_heatmap.py", line 327, in <module>
    generator.run(data_file, output_file, date_range, stream_data, settings)
  File "/Users/davidmigloz/repos/geo-heatmap/geo_heatmap.py", line 252, in run
    self.loadZIPData(data_file, date_range)
  File "/Users/davidmigloz/repos/geo-heatmap/geo_heatmap.py", line 173, in loadZIPData
    (data_path,) = fnmatch.filter(
ValueError: not enough values to unpack (expected 1, got 0)

The Takeout folder structure doesn't seem to match the one the script is expecting:

image

"Takeout/{name}/{name}.*".format(name=name))

@davidmigloz davidmigloz added the Bug Something isn't working label Jan 1, 2023
@luka1199
Copy link
Owner

luka1199 commented Jan 9, 2023

Looks like Google changed the format again. While this is not fixed you can just unzip the Records.json file and use that (if you haven't already). I'm not sure when I'll have time to fix this issue.

@luka1199 luka1199 pinned this issue Jan 9, 2023
@luka1199 luka1199 added Todo Priority: High This has high priority labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Priority: High This has high priority Todo
Projects
None yet
Development

No branches or pull requests

2 participants