ImportError: no module named appengine

Following the Google sample code at the time of publication, the OAUTH2 decoration for the application engine client should be imported as follows:

from oauth2client.appengine import OAuth2Decorator 

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

from oauth2client.appengine import OAuth2Decorator

ImportError: no module named appengine

+5
source share
1 answer

Google moved the module, but did not update its sample code.

Correct import now:

 from oauth2client.contrib.appengine import OAuth2Decorator 

(Note the contrib module. Many related modules are also located there.)

+8
source

Source: https://habr.com/ru/post/1245264/


All Articles