gilesknap / gphotos-sync

Google Photos and Albums backup with Google Photos Library API
Apache License 2.0
1.97k stars 161 forks source link

ImportError: cannot import name 'external_account_authorized_user' from 'google.auth' - Solved for ArchLinux #398

Closed wdirksen closed 1 year ago

wdirksen commented 1 year ago

This is meant to be both a report of a dependency compatibility issue but also a workaround. Recently gphotos-sync stopped working in ArchLinux with this error:

ImportError: cannot import name 'external_account_authorized_user' from 'google.auth' (/usr/lib/python3.10/site-packages/google/auth/__init__.py)

I came accross this: https://stackoverflow.com/questions/74189694/cannot-import-name-external-account-authorized-user-from-google-auth

Downgrading from python-google-auth-oauthlib-0.7.1-2 to python-google-auth-oauthlib-0.5.2-1 fixed it

gilesknap commented 1 year ago

Thanks @wdirksen, I need to sort out some dependency pins as per #397

gilesknap commented 1 year ago

OK the dependency pins are in and a new release will be going out today.