· 8 years ago · Mar 17, 2018, 04:32 AM
1<type 'exceptions.RuntimeError'> Python 2.5: C:\Python25\pythonw.exe
2Sat Nov 19 01:21:58 2011
3
4A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
5 C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py in _HandleRequest(self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler instance at 0x0000000004B5BB48>)
6 2639 outfile = cStringIO.StringIO()
7 2640 try:
8 2641 self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
9 2642 finally:
10 2643 self.module_manager.UpdateModuleFileModificationTimes()
11self = <google.appengine.tools.dev_appserver.DevAppServerRequestHandler instance at 0x0000000004B5BB48>, self._Dispatch = <bound method DevAppServerRequestHandler._Dispat...erRequestHandler instance at 0x0000000004B5BB48>>, dispatcher = <google.appengine.tools.dev_appserver.MatcherDispatcher object at 0x0000000004B6A860>, self.rfile = <socket._fileobject object at 0x0000000004B626C8>, outfile = <cStringIO.StringO object at 0x0000000004B6A768>, env_dict = {'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~akashr-test2', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_ID_HASH': 'B6589FC6', 'REQUEST_METHOD': 'GET', 'SDK_VERSION': '1.6.0', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', ...}
12 C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py in _Dispatch(self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler instance at 0x0000000004B5BB48>, dispatcher=<google.appengine.tools.dev_appserver.MatcherDispatcher object at 0x0000000004B6A860>, socket_infile=<socket._fileobject object at 0x0000000004B626C8>, outfile=<cStringIO.StringO object at 0x0000000004B6A768>, env_dict={'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~akashr-test2', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_ID_HASH': 'B6589FC6', 'REQUEST_METHOD': 'GET', 'SDK_VERSION': '1.6.0', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', ...})
13 2526 dispatcher.Dispatch(app_server_request,
14 2527 outfile,
15 2528 base_env_dict=env_dict)
16 2529 finally:
17 2530 request_file.close()
18base_env_dict undefined, env_dict = {'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~akashr-test2', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_ID_HASH': 'B6589FC6', 'REQUEST_METHOD': 'GET', 'SDK_VERSION': '1.6.0', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', ...}
19 C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py in Dispatch(self=<google.appengine.tools.dev_appserver.MatcherDispatcher object at 0x0000000004B6A860>, request=<AppServerRequest relative_url: / path: simpleAp...e 'rb' at 0x00000000029ABA08> force_admin: False>, outfile=<cStringIO.StringO object at 0x0000000004B6A768>, base_env_dict={'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~akashr-test2', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_ID_HASH': 'B6589FC6', 'REQUEST_METHOD': 'GET', 'SDK_VERSION': '1.6.0', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', ...})
20 614 forward_request = dispatcher.Dispatch(request,
21 615 outfile,
22 616 base_env_dict=base_env_dict)
23 617
24 618 if forward_request:
25base_env_dict = {'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~akashr-test2', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_ID_HASH': 'B6589FC6', 'REQUEST_METHOD': 'GET', 'SDK_VERSION': '1.6.0', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', ...}
26 C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py in Dispatch(self=<google.appengine.tools.dev_appserver.CGIDispatcher object at 0x0000000004B61C18>, request=<AppServerRequest relative_url: / path: simpleAp...e 'rb' at 0x00000000029ABA08> force_admin: False>, outfile=<cStringIO.StringO object at 0x0000000004B6A768>, base_env_dict={'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~akashr-test2', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_ID_HASH': 'B6589FC6', 'REQUEST_METHOD': 'GET', 'SDK_VERSION': '1.6.0', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', ...})
27 1590 memory_file,
28 1591 outfile,
29 1592 self._module_dict)
30 1593 finally:
31 1594 logging.root.level = before_level
32self = <google.appengine.tools.dev_appserver.CGIDispatcher object at 0x0000000004B61C18>, self._module_dict = {'__builtin__': <module '__builtin__' (built-in)>, 'cStringIO': <module 'cStringIO' (built-in)>, 'codecs': <module 'codecs' from 'C:\Python25\lib\codecs.pyc'>, 'email': <module 'email' from 'C:\Python25\lib\email\__init__.py'>, 'email.Charset': <email.LazyImporter object at 0x0000000003F53BA8>, 'email.Encoders': <email.LazyImporter object at 0x0000000003F53F28>, 'email.Errors': <email.LazyImporter object at 0x0000000003F53FD0>, 'email.FeedParser': <email.LazyImporter object at 0x000000000306E0F0>, 'email.Generator': <email.LazyImporter object at 0x000000000306E198>, 'email.Header': <email.LazyImporter object at 0x000000000306E208>, ...}
33 C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py in ExecuteCGI(config=<AppInfoExternal error_handlers=None b...one api_version=1 api_config=None >, root_path=r'C:\Users\Akash\Contacts\Desktop\stuff', handler_path='simpleApp.app', cgi_path=r'C:\Users\Akash\Contacts\Desktop\stuff\simpleApp.app', env={'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~akashr-test2', 'AUTH_DOMAIN': 'gmail.com', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'CURRENT_VERSION_ID': '1.1', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', ...}, infile=<cStringIO.StringO object at 0x0000000004B6A340>, outfile=<cStringIO.StringO object at 0x0000000004B6A768>, module_dict={'__builtin__': <module '__builtin__' (built-in)>, 'cStringIO': <module 'cStringIO' (built-in)>, 'codecs': <module 'codecs' from 'C:\Python25\lib\codecs.pyc'>, 'email': <module 'email' from 'C:\Python25\lib\email\__init__.py'>, 'email.Charset': <email.LazyImporter object at 0x0000000003F53BA8>, 'email.Encoders': <email.LazyImporter object at 0x0000000003F53F28>, 'email.Errors': <email.LazyImporter object at 0x0000000003F53FD0>, 'email.FeedParser': <email.LazyImporter object at 0x000000000306E0F0>, 'email.Generator': <email.LazyImporter object at 0x000000000306E198>, 'email.Header': <email.LazyImporter object at 0x000000000306E208>, ...}, exec_script=<function ExecuteOrImportScript at 0x0000000004B4FE48>, exec_py27_handler=<function ExecutePy27Handler at 0x0000000004B4FEB8>)
34 1489
35 1490 if handler_path and config and config.runtime == 'python27':
36 1491 reset_modules = exec_py27_handler(config, handler_path, cgi_path, hook)
37 1492 else:
38 1493 reset_modules = exec_script(config, handler_path, cgi_path, hook)
39reset_modules = True, exec_py27_handler = <function ExecutePy27Handler at 0x0000000004B4FEB8>, config = <AppInfoExternal error_handlers=None b...one api_version=1 api_config=None >, handler_path = 'simpleApp.app', cgi_path = r'C:\Users\Akash\Contacts\Desktop\stuff\simpleApp.app', hook = <google.appengine.tools.dev_appserver_import_hook.HardenedModulesHook object at 0x0000000003493DA0>
40 C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py in ExecutePy27Handler(config=<AppInfoExternal error_handlers=None b...one api_version=1 api_config=None >, handler_path='simpleApp.app', cgi_path=r'C:\Users\Akash\Contacts\Desktop\stuff\simpleApp.app', import_hook=<google.appengine.tools.dev_appserver_import_hook.HardenedModulesHook object at 0x0000000003493DA0>)
41 1260 """
42 1261 if request_environment is None or runtime is None:
43 1262 raise RuntimeError('Python 2.5 is too old to emulate the Python 2.7 runtime.'
44 1263 ' Please use Python 2.6 or Python 2.7.')
45 1264
46builtin RuntimeError = <type 'exceptions.RuntimeError'>
47
48<type 'exceptions.RuntimeError'>: Python 2.5 is too old to emulate the Python 2.7 runtime. Please use Python 2.6 or Python 2.7.