【发布时间】:2015-03-27 06:59:54
【问题描述】:
当我这样做时:
from oauth2client.client import SignedJwtAssertionCredentials
在使用 App Engine 开发服务器提供服务的 main.py 中,出现错误:
ImportError: cannot import name SignedJwtAssertionCredentials
当我从标准 python 控制台运行相同的语句时,我没有收到任何错误。导入工作正常。
我确认我的系统上安装了 pyopenssl。我已经阅读了这篇建议只安装它的帖子:ImportError: cannot import name SignedJwtAssertionCredentials
知道开发服务器出了什么问题吗?
PS:我的主要目标是连接到 BigQuery
【问题讨论】:
-
@Pentium10 我已经注意到另一个线程。但是,我安装了 pyopenssl,它在 python 控制台中正常工作。我的问题专门针对 Google App Engine。
-
developers.google.com/identity/protocols/… google 文档中的示例代码
标签: python google-app-engine google-bigquery