“AttributeError:”module“对象在与Google Calend一起使用oauth2client时没有属性”file“

2024-06-26 18:09:59 发布

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

我正在使用googlecalendarspythonapi(https://developers.google.com/google-apps/calendar/quickstart/python#step_3_set_up_the_sample)的示例脚本来尝试打印所有的日历事件。但是我得到了一个错误:

AttributeError: 'module' object has no attribute 'file'

从线上

store = oauth2client.file.Storage(credential_path)

我在文件中找不到这样的错误。以前有人碰到过这个吗?

干杯, 杰克


Tags: appsthesamplehttpscomstep错误google