Wednesday, April 27, 2011

Solution to Google AppEngine HelloWorld error

Exact error while running the google app engine test program on the python SDK:
NameError: global name 'execfile' is not defined
The problem is because you probably installed python 3.X. The app engine is compatible only with the python 2.X series. So the solution is to uninstall your current python installation and re-install the older version obtained from python.org. I tested with python-2.7.

After you re-install an older version of python, make sure that the app engine can find it by changing the settings on the preferences tab of the appengine. 

0 comments:

Post a Comment