【问题标题】:app engine python tutorial error应用引擎python教程错误
【发布时间】:2011-07-28 08:05:12
【问题描述】:

我正在尝试在这里做 python 教程 http://code.google.com/appengine/docs/python/gettingstarted/helloworld.html

(我已经安装了 python 2.5)

创建 python 和 yaml 文件后,我使用应用引擎启动器运行代码。然后我检查了 localhost:8080 并收到以下错误:

<class 'google.appengine.tools.dev_appserver.AppConfigNotFoundError'>   Python 2.5: C:\Python25\pythonw.exe
Sat Apr 02 17:15:11 2011
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py in _HandleRequest(self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler instance at 0x02CF0D50>)
 3837         config, explicit_matcher = LoadAppConfig(root_path, self.module_dict,
 3838                                                  cache=self.config_cache,
 3839                                                  static_caching=static_caching)
 3840         if config.api_version != API_VERSION:
 3841           logging.error(
static_caching = True
 C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py in LoadAppConfig(root_path=r'C:\Users\Uri\Dropbox\memory-graph\memory-graph', module_dict={'codecs': <module 'codecs' from 'C:\Python25\lib\codecs.pyc'>, 'email': <module 'email' from 'C:\Python25\lib\email\__init__.pyc'>, 'email.Charset': <email.LazyImporter object at 0x0254A330>, 'email.Encoders': <email.LazyImporter object at 0x0254A350>, 'email.Errors': <email.LazyImporter object at 0x0254A370>, 'email.FeedParser': <email.LazyImporter object at 0x0254A310>, 'email.Generator': <email.LazyImporter object at 0x0254A390>, 'email.Header': <email.LazyImporter object at 0x0254A3D0>, 'email.Iterators': <email.LazyImporter object at 0x0254A3B0>, 'email.MIMEAudio': <email.LazyImporter object at 0x0254A490>, ...}, cache=<google.appengine.tools.dev_appserver.AppConfigCache object at 0x0271C870>, static_caching=True, read_app_config=<function ReadAppConfig at 0x0271F230>, create_matcher=<function CreateURLMatcherFromMaps at 0x0271F270>)
 4164         pass
 4165 
 4166   raise AppConfigNotFoundError
 4167 
 4168 
global AppConfigNotFoundError = <class 'google.appengine.tools.dev_appserver.AppConfigNotFoundError'>
<class 'google.appengine.tools.dev_appserver.AppConfigNotFoundError'>:

有什么想法吗?

【问题讨论】:

  • 很奇怪。我刚刚重新安装了它,现在它似乎工作正常。
  • 很高兴你让它工作了——它只是在抱怨,因为它找不到自己的配置文件。

标签: python google-app-engine


【解决方案1】:

对我来说,我通过在“调试配置”对话框的“参数”选项卡下添加“app.yaml”文件所在的路径解决了这个问题:

【讨论】:

    【解决方案2】:

    AppEngine SDK 正在抱怨,因为它找不到自己的配置文件。尝试使用 Google AppEngine 网站上提供的 MSI 重新安装。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-07-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-12
      • 2012-08-07
      • 2016-02-01
      • 2011-07-07
      相关资源
      最近更新 更多