Reputation: 446
While importing appengine api in to python flex environment causing import error in local server. I have and application running on appengine which is using the flex environment instead of standard.
In my codebase the app directory contains python scripts and yaml file. When I try to run the py file which through this error.
Run command
$ python main.py
from google.appengine.api import app_identity
ImportError: No module named appengine.api
Upvotes: 1
Views: 571
Reputation: 446
The App Engine flexible environment does not provide the API libraries present in the App Engine SDK.
Please check this link Migrating Services from the Standard Environment to the Flexible Environment
Upvotes: 4