'GDrive issues with credentials
I have below code, its supposed to paste a dataframe into a GSheet, in particular create a new sheet in a google workbook.
The issue is with google credentials, apparently google changed something and i cant seem to "log in"
`from google.auth import defaultcreds, _ = default()gc = gspread.authorize(creds)
wks = d2g.upload(not_in_airtable, gfile=gspread_key, wks_name='Upload 2.0', credentials = creds, row_names=False)`
Below is the error code i get
InvalidClientSecretsError Traceback (most recent call last) <ipython-input-15-08f6d8b5266b> in <module>() 3 gc = gspread.authorize(creds) 4 ----> 5 wks = d2g.upload(not_in_airtable, gfile=gspread_key, wks_name='Upload 2.0', credentials = creds, row_names=False)
6 frames /usr/local/lib/python3.7/dist-packages/oauth2client/clientsecrets.py in _validate_clientsecrets(clientsecrets_dict) 99 raise InvalidClientSecretsError( 100 'Missing property "{0}" in a client type of "{1}".'.format( --> 101 prop_name, client_type)) 102 for prop_name in VALID_CLIENT[client_type]['string']: 103 if client_info[prop_name].startswith('[['):
InvalidClientSecretsError: Missing property "redirect_uris" in a client type of "web".`
I tried few different types of google authentication, however without success.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
