[英]NoseGAE ImportError: No module named contrib.appengine
I am trying to integrate nose and NoseGAE in a Python project. 我正在尝试将鼻子和NoseGAE集成到Python项目中。
Tried running: 尝试运行:
nosetests tests --with-gae in virtualenv
ERROR: from oauth2client.contrib.appengine import AppAssertionCredentials ImportError: No module named contrib.appengine 错误:从oauth2client.contrib.appengine导入AppAssertionCredentials ImportError:没有名为contrib.appengine的模块
The weird thing is it resolves everything else oauth2client
, checks the contrib.appengine
, and exits in the Python site-package. 奇怪的是它解决了其他所有问题oauth2client
,检查contrib.appengine
,并退出Python站点包。
Check your sys.path
. 检查您的sys.path
。 Unfortunately the gcloud sdk provides google-cloud-sdk/platform/google_appengine/lib/oauth2client/oauth2client/
which does not have contrib
in it and it is probably in your path before the oauth2client
in your site packages. 不幸的是,gcloud SDK提供google-cloud-sdk/platform/google_appengine/lib/oauth2client/oauth2client/
不具有contrib
它,它可能是在你的路径前oauth2client
在您的网站打包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.