From 6bdc536198f0f288c626704dbb04039c1050d9ad Mon Sep 17 00:00:00 2001 From: Stephen Tweedie Date: Wed, 15 Apr 2020 16:13:13 +0100 Subject: [PATCH] Disable google-api-client cache discovery Cache discovery seems broken atm, disable it to suppress python import errors. See https://github.com/googleapis/google-api-python-client/issues/299 --- csvsync/gsheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csvsync/gsheet.py b/csvsync/gsheet.py index 4475eab..d082251 100644 --- a/csvsync/gsheet.py +++ b/csvsync/gsheet.py @@ -45,7 +45,7 @@ def __init__(self, fileconfig, auth): # Find all the sheet tabs from the given spreadsheet - service = build('sheets', 'v4', credentials = auth.creds).spreadsheets() + service = build('sheets', 'v4', credentials = auth.creds, cache_discovery = False).spreadsheets() self.service = service self.spreadsheet_id = fileconfig['spreadsheet_id']