gspread 电子表格未加载,没有错误

gspread spreadsheet not loading, no errors

我正在使用 gspread 编写 python 脚本。这是代码:

json_key = json.load(open('<path to json>'))
scope = ['https://spreadsheets.google.com/feeds']
credentials = SignedJwtAssertionCredentials(json_key['client_email'], json_key['private_key'], scope)
gc = gspread.authorize(credentials)

print "0"
worksheet = gc.open("<name of sheet>").get_worksheet(2)
print "1"

打印了 0,这意味着正在加载凭据和所有内容。但是,当我尝试加载实际的 sheet,并在 "name of sheet" 处使用实际名称时,它实际上不起作用。什么都没有发生,也没有错误,而且它从不打印 1。我做错了什么吗?我不认为我是因为我已经使用这个确切的代码几个星期了,我突然遇到了问题。

gdata 电子表格 API 挂起

https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3939

https://github.com/burnash/gspread/issues/278

api 正在关闭。