Google.appengine.ext Python module ImportError No module named google.appengine.ext

Python 2.7.6, Google APIs Client Library for Python for the Google App Engine, Google Developer's Guide

I am browsing the Google documentation and trying to duplicate their example. When I run the command:

from google.appengine.ext import webapp

from Python Shell, I get an error:

No module named google.appengine.ext

Therefore, it is obvious that this file is missing from my computer. I searched the file on my hard drive and did not find anything. I ran easy_install to install the Google APIs as indicated in the official Google Quick Start video. I'm not sure if the Google documentation is out of date or what is happening. Where can I get google.appengine.ext? I assume that my problem is simply that I do not have this module.

+4
source share
4 answers

You may need to add the following line if you use standalone tests

 sys.path.append('/usr/local/google_appengine/')
 sys.path.append('/usr/local/google_appengine/lib/yaml/lib/')
 if 'google' in sys.modules:
     del sys.modules['google']
+3
source

@varun , insert append, , .

sys.path.insert(1, '<yourFolder>/google_appengine')
sys.path.insert(1, '<yourFolder>/google_appengine/lib/yaml/lib')
if 'google' in sys.modules:           
    del sys.modules['google']
+2

Google.appengine.ext google/appengine/ext, Eclipse

-2

All Articles