NoseGAE ImportError:没有名为contrib.appengine

时间:2016-03-11 02:56:21

标签: python-2.7 google-app-engine testing nose nose-gae

我正在尝试将和NoseGAE集成到Python项目中。

试着跑步:

nosetests tests --with-gae in virtualenv
  

错误:来自oauth2client.contrib.appengine导入AppAssertionCredentials              ImportError:没有名为contrib.appengine的模块

奇怪的是它解析了其他所有内容oauth2client,检查contrib.appengine,并退出Python站点包。

1 个答案:

答案 0 :(得分:0)

检查sys.path。不幸的是,gcloud sdk提供了google-cloud-sdk/platform/google_appengine/lib/oauth2client/oauth2client/,其中没有contrib,它可能位于您的网站包中oauth2client之前的路径中。