Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9032223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:55:32+00:00 2026-06-16T07:55:32+00:00

Just began setting up for App Engine (Python). When I run any app on

  • 0

Just began setting up for App Engine (Python). When I run any app on http://localhost:8080 I am getting this:

--> --> -->


<type 'exceptions.RuntimeError'>    Python 2.5.2: E:\Python25\pythonw.exe
Tue Dec 25 13:40:46 2012

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
 E:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py in _HandleRequest(self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler instance at 0x02F16DA0>)
 2999         outfile = cStringIO.StringIO()
 3000         try:
 3001           self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
 3002         finally:
 3003           self.module_manager.UpdateModuleFileModificationTimes()
self = <google.appengine.tools.dev_appserver.DevAppServerRequestHandler instance at 0x02F16DA0>, self._Dispatch = <bound method DevAppServerRequestHandler._Dispat...vAppServerRequestHandler instance at 0x02F16DA0>>, dispatcher = <google.appengine.tools.dev_appserver.MatcherDispatcher object at 0x02F64870>, self.rfile = <socket._fileobject object at 0x02F18F30>, outfile = <cStringIO.StringO object at 0x02F64480>, env_dict = {'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~bismillah', 'CURRENT_VERSION_ID': '1.1', 'DEFAULT_VERSION_HOSTNAME': 'localhost:8080', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_ID_HASH': 'B6589FC6', 'REQUEST_METHOD': 'GET', 'SDK_VERSION': '1.7.4', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', ...}
 E:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py in _Dispatch(self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler instance at 0x02F16DA0>, dispatcher=<google.appengine.tools.dev_appserver.MatcherDispatcher object at 0x02F64870>, socket_infile=<socket._fileobject object at 0x02F18F30>, outfile=<cStringIO.StringO object at 0x02F64480>, env_dict={'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~bismillah', 'CURRENT_VERSION_ID': '1.1', 'DEFAULT_VERSION_HOSTNAME': 'localhost:8080', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_ID_HASH': 'B6589FC6', 'REQUEST_METHOD': 'GET', 'SDK_VERSION': '1.7.4', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', ...})
 2868           dispatcher.Dispatch(app_server_request,
 2869                               outfile,
 2870                               base_env_dict=env_dict)
 2871         finally:
 2872           request_file.close()
base_env_dict undefined, env_dict = {'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~bismillah', 'CURRENT_VERSION_ID': '1.1', 'DEFAULT_VERSION_HOSTNAME': 'localhost:8080', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_ID_HASH': 'B6589FC6', 'REQUEST_METHOD': 'GET', 'SDK_VERSION': '1.7.4', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', ...}
 E:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py in Dispatch(self=<google.appengine.tools.dev_appserver.MatcherDispatcher object at 0x02F64870>, request=<AppServerRequest relative_url: / path: main.app...mp', mode 'rb' at 0x0184C530> force_admin: False>, outfile=<cStringIO.StringO object at 0x02F64480>, base_env_dict={'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~bismillah', 'CURRENT_VERSION_ID': '1.1', 'DEFAULT_VERSION_HOSTNAME': 'localhost:8080', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_ID_HASH': 'B6589FC6', 'REQUEST_METHOD': 'GET', 'SDK_VERSION': '1.7.4', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', ...})
  717         forward_request = dispatcher.Dispatch(request,
  718                                               outfile,
  719                                               base_env_dict=base_env_dict)
  720 
  721         while forward_request:
base_env_dict = {'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~bismillah', 'CURRENT_VERSION_ID': '1.1', 'DEFAULT_VERSION_HOSTNAME': 'localhost:8080', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_ID_HASH': 'B6589FC6', 'REQUEST_METHOD': 'GET', 'SDK_VERSION': '1.7.4', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', ...}
 E:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py in Dispatch(self=<google.appengine.tools.dev_appserver.CGIDispatcher object at 0x02F64410>, request=<AppServerRequest relative_url: / path: main.app...mp', mode 'rb' at 0x0184C530> force_admin: False>, outfile=<cStringIO.StringO object at 0x02F64480>, base_env_dict={'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~bismillah', 'CURRENT_VERSION_ID': '1.1', 'DEFAULT_VERSION_HOSTNAME': 'localhost:8080', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_ID_HASH': 'B6589FC6', 'REQUEST_METHOD': 'GET', 'SDK_VERSION': '1.7.4', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', ...})
 1801                      memory_file,
 1802                      outfile,
 1803                      self._module_dict)
 1804     finally:
 1805       logging.root.level = before_level
self = <google.appengine.tools.dev_appserver.CGIDispatcher object at 0x02F64410>, self._module_dict = {'__builtin__': <module '__builtin__' (built-in)>, 'cStringIO': <module 'cStringIO' (built-in)>, 'codecs': <module 'codecs' from 'E:\Python25\lib\codecs.pyc'>, 'decimal': <module 'decimal' from 'E:\Python25\lib\decimal.py'>, 'email': <module 'email' from 'E:\Python25\lib\email\__init__.py'>, 'email.Charset': <email.LazyImporter object at 0x0191AAB0>, 'email.Encoders': <email.LazyImporter object at 0x0191AB10>, 'email.Errors': <email.LazyImporter object at 0x0191AB30>, 'email.FeedParser': <email.LazyImporter object at 0x0191AA90>, 'email.Generator': <email.LazyImporter object at 0x0191AB70>, ...}
 E:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py in ExecuteCGI(config=<AppInfoExternal automatic_scaling=None ... runtime=python27 api_config=None >, root_path=r'J:\Tabrez\Projects\GAE\Python\bismillah', handler_path='main.app', cgi_path=r'J:\Tabrez\Projects\GAE\Python\bismillah\main.app', env={'APPENGINE_RUNTIME': 'python27', 'APPLICATION_ID': 'dev~bismillah', 'AUTH_DOMAIN': 'gmail.com', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'CURRENT_VERSION_ID': '1.1', 'DEFAULT_VERSION_HOSTNAME': 'localhost:8080', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', ...}, infile=<cStringIO.StringO object at 0x02F64820>, outfile=<cStringIO.StringO object at 0x02F64480>, module_dict={'__builtin__': <module '__builtin__' (built-in)>, 'cStringIO': <module 'cStringIO' (built-in)>, 'codecs': <module 'codecs' from 'E:\Python25\lib\codecs.pyc'>, 'decimal': <module 'decimal' from 'E:\Python25\lib\decimal.py'>, 'email': <module 'email' from 'E:\Python25\lib\email\__init__.py'>, 'email.Charset': <email.LazyImporter object at 0x0191AAB0>, 'email.Encoders': <email.LazyImporter object at 0x0191AB10>, 'email.Errors': <email.LazyImporter object at 0x0191AB30>, 'email.FeedParser': <email.LazyImporter object at 0x0191AA90>, 'email.Generator': <email.LazyImporter object at 0x0191AB70>, ...}, exec_script=<function ExecuteOrImportScript at 0x02F148F0>, exec_py27_handler=<function ExecutePy27Handler at 0x02F14930>)
 1699 
 1700       if handler_path and config and config.runtime == 'python27':
 1701         reset_modules = exec_py27_handler(config, handler_path, cgi_path, hook)
 1702       else:
 1703         reset_modules = exec_script(config, handler_path, cgi_path, hook)
reset_modules = True, exec_py27_handler = <function ExecutePy27Handler at 0x02F14930>, config = <AppInfoExternal automatic_scaling=None ... runtime=python27 api_config=None >, handler_path = 'main.app', cgi_path = r'J:\Tabrez\Projects\GAE\Python\bismillah\main.app', hook = <google.appengine.tools.dev_appserver_import_hook.HardenedModulesHook object at 0x02284F10>
 E:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py in ExecutePy27Handler(config=<AppInfoExternal automatic_scaling=None ... runtime=python27 api_config=None >, handler_path='main.app', cgi_path=r'J:\Tabrez\Projects\GAE\Python\bismillah\main.app', import_hook=<google.appengine.tools.dev_appserver_import_hook.HardenedModulesHook object at 0x02284F10>)
 1456   """
 1457   if request_environment is None or runtime is None:
 1458     raise RuntimeError('Python 2.5 is too old to emulate the Python 2.7 runtime.'
 1459                        ' Please use Python 2.6 or Python 2.7.')
 1460 
builtin RuntimeError = <type 'exceptions.RuntimeError'>

<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.
      args = ('Python 2.5 is too old to emulate the Python 2.7 runtime. Please use Python 2.6 or Python 2.7.',)
      message = 'Python 2.5 is too old to emulate the Python 2.7 runtime. Please use Python 2.6 or Python 2.7.' 

From what I can understand, it is just the problem with the Python Installation because the app works fine when deployed.

I have Installed Python 2.5.2.

What exactly is going on?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T07:55:34+00:00Added an answer on June 16, 2026 at 7:55 am

    I assume from the logs the the reason is that you are trying to run app engine with python25.

    Options 1: Edit your app.yaml and put python25 at your runtime. The rest you can leave it as you have it setup

    application: bismillah
    version: 1
    runtime: python25
    api_version: 1
    

    Option 2: Install python 2.6 or python 2.7 and either make it your system default either just use it only for google app engine

    Python 2.7

    Google App Engine Application setup

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just began working on a little twitter-app using tweepy. is there any kind
I just began using Visual Studio to work on a practice .NET project. I
I just began reading more about Markov Chain Generators today, and am really intrigued
I just began looking into source control.... And installed subversion from collabnet... I also
So, I've just began playing around with the demo of Skeleton, the responsive grid
So just as I began to get a good grasp on MySQL, I found
I am new in building web apps and just begun learning and setting up
I'm trying to deploy (Run as->Run on Server) a basic Roo web-app (MVC +
I've just come onboard with a new team and I am trying to run
I have just started using c++ exceptions and want to get it right. What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.