ImportError:没有名为google.appengine.ext的模块

时间:2014-09-10 10:29:11

标签: google-compute-engine continuous-deployment

我刚刚获得了发布渠道,谷歌推动部署在App Engine上。

我发布了一些单元测试失败。

======================================================================
ERROR: Failure: ImportError (No module named google.appengine.ext)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 414, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/var/jenkins/workspace/deployment_5175583809994752_1410355681821/tests.py", line 9, in <module>
    from cfc.search.nosqlhelper import set_meeting_date
  File "/var/jenkins/workspace/deployment_5175583809994752_1410355681821/cfc/search/nosqlhelper.py", line 3, in <module>
    from cfc.models.event import Event
  File "/var/jenkins/workspace/deployment_5175583809994752_1410355681821/cfc/models/event.py", line 3, in <module>
    from google.appengine.ext import ndb
ImportError: No module named google.appengine.ext

----------------------------------------------------------------------
Ran 1 test in 0.270s

我尝试在包含Jenkins的VM中的python REPL中运行以下命令,该Jenkins通过Google Developer Console中的发布管道自动配置。

from google.appengine.ext import ndb

我收到了以下错误。

ImportError: No module named google.appengine.ext

我登录了虚拟机,注意到这些文件位于例如:

var/lib/docker/aufs/mnt/bbc6deda44e4806c5c0e377df6f1109733e382e8531c1c9ed440084d8e98e3fe/google-cloud-sdk/platform/google_
appengine/google/appengine/ext/ndb/utils.py

如何在VM中普遍获取路径?

0 个答案:

没有答案