Tuesday, December 31, 2013

Google App Engine Launcher - NameError: global name 'execfile' is not defined (Python)

When trying to run the helloworld example, it shows this error:

NameError: global name 'execfile' is not defined

This happens when you have multiple versions of python on your system. The App Engine sets its default to python 3 although it already searched and found python 2.7 on the system before installation!!

Anyway, to solve it, go to Edit -> Preferences and change Python Path to refer to Python 2.7

No comments:

Post a Comment