Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named appengine

Following Google's example code at the time of posting, the OAUTH2 decoration for the app engine client should be imported as follows:

from oauth2client.appengine import OAuth2Decorator

Attempting to import that module results in the following log error:

from oauth2client.appengine import OAuth2Decorator

ImportError: No module named appengine

like image 250
Dan O'Boyle Avatar asked Mar 17 '16 19:03

Dan O'Boyle


1 Answers

Google has moved the module but has not updated their example code.

The correct import is now:

from oauth2client.contrib.appengine import OAuth2Decorator

(Notice the contrib module. Many related modules are also housed there as well.)

like image 176
Dan O'Boyle Avatar answered Oct 17 '22 09:10

Dan O'Boyle