-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Unable to import flask #1212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @zjn0505 ! If you do not mind me asking, are you running your application directly ( |
Hi @michaelawyu, I ran it with |
Hi @zjn0505 , what version of gcloud are you currently using? You can check it by running |
Local env is:
Cloud env is:
|
Thanks, @zjn0505 ! Do you have Extra Libraries component for Python installed? It can be installed with
After installing this extra library you should be able to use built-in flask library without a problem. For more information, refer to this page :) |
This is it, thank you. |
In which file did you encounter the issue?
/appengine/standard/flask/hello_world/main.py
Did you change the file? If so, how?
no
Describe the issue
Like it is said in the guide, "Flask is bundled into the runtime". I suppose as long as flask is added to libraries in app.yaml, I should be able to import it from main.py. That is what has been implemented after this commit. But I still get ImportError: No module named flask.
I've tested on online console and local env that I can't import flask simply by adding it to app.yaml, and I tested PIL in the same way, which managed to be imported.
The text was updated successfully, but these errors were encountered: