2010-07-26 79 views
0

當我要登錄我得到了以下錯誤錯誤在localhost

Traceback (most recent call last): 
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3199, in _HandleRequest 
    self._Dispatch(dispatcher, self.rfile, outfile, env_dict) 
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3142, in _Dispatch 
    base_env_dict=env_dict) 
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 524, in Dispatch 
    base_env_dict=base_env_dict) 
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2449, in Dispatch 
    CGIDispatcher.Dispatch(self, *args, **kwargs) 
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2401, in Dispatch 
    self._module_dict) 
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2438, in curried_exec_cgi 
    return ExecuteCGI(*args, **kwargs) 
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2309, in ExecuteCGI 
    logging.debug('Executing CGI with env:\n%s', pprint.pformat(env)) 
    File "C:\Python27\lib\pprint.py", line 60, in pformat 
    return PrettyPrinter(indent=indent, width=width, depth=depth).pformat(object) 
    File "C:\Python27\lib\pprint.py", line 119, in pformat 
    self._format(object, sio, 0, 0, {}, 0) 
    File "C:\Python27\lib\pprint.py", line 137, in _format 
    rep = self._repr(object, context, level - 1) 
    File "C:\Python27\lib\pprint.py", line 230, in _repr 
    self._depth, level) 
    File "C:\Python27\lib\pprint.py", line 242, in format 
    return _safe_repr(object, context, maxlevels, level) 
    File "C:\Python27\lib\pprint.py", line 284, in _safe_repr 
    for k, v in _sorted(object.items()): 
    File "C:\Python27\lib\pprint.py", line 75, in _sorted 
    with warnings.catch_warnings(): 
    File "C:\Python27\lib\warnings.py", line 327, in __init__ 
    self._module = sys.modules['warnings'] if module is None else module 
KeyError: 'warnings' 

爲了這個,我重新安裝谷歌應用程序引擎,但沒有得到結果

該怎麼辦?

+0

你需要提供更多關於你在做什麼的解釋。如果這不是編程相關,你需要問superuser.com – 2010-07-26 10:32:42

回答

6

App Engine運行Python 2.5。您需要安裝Python 2.5並使用它來代替2.7。

+0

+1我遇到了這個問題,這是修復! – 2010-10-21 15:54:57