0

我正在运行一些困难的 gettung 1.7.6。收到以下错误:

INFO     2013-03-20 08:39:10,233 admin_server.py:117] Starting admin server at: http://localhost:8086
ERROR    2013-03-20 08:39:13,768 wsgi.py:219] 
Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 196, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/lib_config.py", line 353, in __getattr__
    self._update_configs()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/lib_config.py", line 289, in _update_configs
    self._registry.initialize()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/lib_config.py", line 164, in initialize
    import_func(self._modname)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/python/sandbox.py", line 890, in load_module
    raise ImportError
ImportError
4

2 回答 2

5

我有同样的问题。我在 appengine 问题跟踪器中提出了一个问题:

https://code.google.com/p/googleappengine/issues/detail?id=9008&sort=-id&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log

问题似乎是项目目录中的旧 pyc 文件。我删除了它们:

寻找 。-name "*.pyc" -exec rm -rf {} \;

重新启动服务器后,问题已为我解决。

如果这没有帮助,您可以使用旧的开发服务器:运行“old_dev_appserver.py”。+ 您现在需要的任何参数。

于 2013-03-20T11:12:18.333 回答
0

在这里我决定了一些启动问题,删除项目并添加一个现有项目。我做到了,我的应用程序又正常启动了。

于 2013-03-20T17:05:28.710 回答