oauth2client TypeError:super(type,obj):obj必须是typ的实例或子类型

2024-09-26 18:02:31 发布

您现在位置:Python中文网/ 问答频道 /正文

设置

我使用gspread用Python操作google工作表。在

以前一切都很好,但现在我在尝试使用凭据时遇到了一个错误。在

所有都是根据great manual on Twillio设置的。在


编码

os.chdir('/Users/path/to/client_secret.json')

scope = ['https://spreadsheets.google.com/feeds']
creds = ServiceAccountCredentials.from_json_keyfile_name('client_secret.json', scope)

gc = gspread.authorize(creds)

运行此代码会出现以下错误

^{pr2}$

我做错什么了?在


Tags: clientjson编码secretoson错误google

热门问题