professional-services icon indicating copy to clipboard operation
professional-services copied to clipboard

gsuite-exporter only compatible with google-api-python-client < v1.18

Open Mrandyrew95 opened this issue 4 years ago • 1 comments

The function google.auth._default._load_credentials_from_file is now a public method google.auth._default.load_credentials_from_file.

Attempting to authenticate thus causes error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/andrew_ford2/.local/lib/python3.7/site-packages/gsuite_exporter/cli.py", line 23, in <module>
    from gsuite_exporter.collectors.reports import AdminReportsAPIFetcher
  File "/home/andrew_ford2/.local/lib/python3.7/site-packages/gsuite_exporter/collectors/reports.py", line 17, in <module>
    from gsuite_exporter import auth
  File "/home/andrew_ford2/.local/lib/python3.7/site-packages/gsuite_exporter/auth.py", line 19, in <module>
    from google.auth._default import _load_credentials_from_file
ImportError: cannot import name '_load_credentials_from_file' from 'google.auth._default' (/usr/local/lib/python3.7/dist-packages/google/auth/_default.py)

Mrandyrew95 avatar Sep 22 '20 14:09 Mrandyrew95

Thanks for the report, sorry I've just seen it. Committing a fix very soon.

ocervell avatar Apr 20 '21 17:04 ocervell

Closed as fixed.

agold-rh avatar Feb 17 '23 16:02 agold-rh