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
It turns out that in my google takeout data 'geoData' is much more present than 'geoDataExif'. But the script seems to assume this key is always present, or else:
sys.exit(main())
File "/Users/E.Bunders/.local/pipx/venvs/google-photos-takeout-helper/lib/python3.13/site-packages/google_photos_takeout_helper/__main__.py", line 698, in main
for_all_files_recursive(
File "/Users/E.Bunders/.local/pipx/venvs/google-photos-takeout-helper/lib/python3.13/site-packages/google_photos_takeout_helper/__main__.py", line 159, in for_all_files_recursive
file_function(file)
File "/Users/E.Bunders/.local/pipx/venvs/google-photos-takeout-helper/lib/python3.13/site-packages/google_photos_takeout_helper/__main__.py", line 700, in <lambda>
file_function=lambda f: _walk_with_tqdm(fix_metadata(f), _metadata_bar),
File "/Users/E.Bunders/.local/pipx/venvs/google-photos-takeout-helper/lib/python3.13/site-packages/google_photos_takeout_helper/__main__.py", line 613, in fix_metadata
set_file_geo_data(file, google_json)
File "/Users/E.Bunders/.local/pipx/venvs/google-photos-takeout-helper/lib/python3.13/site-packages/google_photos_takeout_helper/__main__.py", line 524, in set_file_geo_data
longitude = _str_to_float(json['geoDataExif']['longitude'])
KeyError: 'geoDataExif'
So I had to make a little change to google-photos-takeout-helper/lib/python3.13/site-packages/google_photos_takeout_helper/__main__.py
on line 523:
try:
if longitude == 0 and latitude == 0:
longitude = _str_to_float(json['geoDataExif']['longitude'])
latitude = _str_to_float(json['geoDataExif']['latitude'])
altitude = _str_to_float(json['geoDataExif']['altitude'])
except Exception:
pass
Than it worked.
Thanks for the script!
The text was updated successfully, but these errors were encountered:
It turns out that in my google takeout data 'geoData' is much more present than 'geoDataExif'. But the script seems to assume this key is always present, or else:
So I had to make a little change to
google-photos-takeout-helper/lib/python3.13/site-packages/google_photos_takeout_helper/__main__.py
on line 523:
Than it worked.
Thanks for the script!
The text was updated successfully, but these errors were encountered: