这个错误信息是什么意思?

时间:2011-07-13 21:15:17

标签: python django google-app-engine

在我对我的GAE / django项目进行了一些重新配置之后,即使用appengine_config.py来选择django 1.2这个错误消息是否意味着我正在运行错误的python版本?如果是这样,我应该运行哪个版本?我以前在ubuntu 11上使用过最新的预装python版本。

--> --> -->

Traceback (most recent call last):
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 4113, in _HandleRequest
    self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 4022, in _Dispatch
    base_env_dict=env_dict)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 596, in Dispatch
    base_env_dict=base_env_dict)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 3095, in Dispatch
    self._module_dict)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 2999, in ExecuteCGI
    reset_modules = exec_script(handler_path, cgi_path, hook)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 2862, in ExecuteOrImportScript
    exec module_code in script_module.__dict__
  File "/media/Lexar/project/myproject/i18n.py", line 12, in <module>
    from main import Ad
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 1513, in Decorate
    return func(self, *args, **kwargs)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 2478, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 1513, in Decorate
    return func(self, *args, **kwargs)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 2350, in FindAndLoadModule
    description)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 1513, in Decorate
    return func(self, *args, **kwargs)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 2293, in LoadModuleRestricted
    description)
  File "/media/Lexar/project/myproject/main.py", line 1573, in <module>
    import gzip
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 1513, in Decorate
    return func(self, *args, **kwargs)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 2478, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 1513, in Decorate
    return func(self, *args, **kwargs)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 2350, in FindAndLoadModule
    description)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 1513, in Decorate
    return func(self, *args, **kwargs)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 2293, in LoadModuleRestricted
    description)
  File "/usr/lib/python2.7/gzip.py", line 10, in <module>
    import io
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 1513, in Decorate
    return func(self, *args, **kwargs)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 2478, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 1513, in Decorate
    return func(self, *args, **kwargs)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 2350, in FindAndLoadModule
    description)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 1513, in Decorate
    return func(self, *args, **kwargs)
  File "/media/Lexar/project/google/appengine/tools/dev_appserver.py", line 2293, in LoadModuleRestricted
    description)
  File "/usr/lib/python2.7/io.py", line 60, in <module>
    import _io
ImportError: No module named _io

1 个答案:

答案 0 :(得分:1)

您正在使用 python 2.7

File "/usr/lib/python2.7/io.py", line 60, in <module>

Python运行时环境使用 Python 2.5.2