Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/298.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 应用程序引擎开发环境无法启动应用程序_Python_Google App Engine - Fatal编程技术网

Python 应用程序引擎开发环境无法启动应用程序

Python 应用程序引擎开发环境无法启动应用程序,python,google-app-engine,Python,Google App Engine,将我的应用程序引擎开发环境升级到1.7.6后,应用程序无法启动。在本地运行时,我得到以下错误,它不在项目代码中 回溯(最近一次调用上次):文件 “/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/\u python\u runtime.py”, 第194行,在 _运行\u文件(文件,glo

将我的应用程序引擎开发环境升级到1.7.6后,应用程序无法启动。在本地运行时,我得到以下错误,它不在项目代码中

回溯(最近一次调用上次):文件 “/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/\u python\u runtime.py”, 第194行,在 _运行\u文件(文件,globals())文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google\u appengine/\u python\u runtime.py”, 第190行,在_run _文件中 execfile(script_path,globals_)File“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google_appengine/tools/devappserver2/python/runtime.py”, 第101行,在 main()文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/python/runtime.py”, 第78行,主 sandbox.enable_sandbox(config)文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google_appengine/tools/devappserver2/python/sandbox.py”, 第164行,在enable_沙箱中 从google.appengine.runtime导入运行时文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/runtime.py”, 第39行,在 从google.appengine.runtime导入cgi文件“/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/cgi.py”, 第31行,在 从电子邮件导入feedparser导入错误:无法导入名称feedparser

奇怪的是,另外四个应用程序将毫无错误地启动。我在这个失败的项目中找不到任何改变或导致此错误的内容

同样值得注意的是

  • 应用程序在部署到应用程序引擎时运行
  • 当我将SDK降级到1.7.5时,应用程序再次开始运行
应用程序定义

application: myapp
version: 1
runtime: python27
api_version: 1
threadsafe: true

derived_file_type:
- python_precompiled

inbound_services:

handlers:

- url: /css
  static_dir: public/css

- url: /img
  static_dir: public/img

- url: /js
  static_dir: public/js

- url: /favicon.ico
  static_files: public/img/favicon.ico
  upload: public/img/favicon.ico

- url: /_ah/mail/.+
  script: email.email.app

- url: .*
  script: main.app

你能发一些代码吗?你的应用程序中有什么。yaml?你在Mac上运行吗?你安装了PyObj吗?我在上面添加了我的应用程序定义,但请注意,当我降级回SDK的1.7.5版本时,它又开始工作了。它在部署到App Engine时也可以工作