How to overcome ModuleNotFoundError: No module named 'google.appengine' ?

1,352 views
Skip to first unread message

Amruth Kiran

unread,
Jan 31, 2019, 7:51:42 PM1/31/19
to Google App Engine
I have built an app using Google App Engine. As the next step, I would like to use task queues but when I try to import taskqueue from google.appengine.api, the above error is thrown. I tried it locally on a virtual environment in Python and also tried to deploy it but with same error. I have read that it's a pretty common error and I have tried all the common solutions out there on SO, GitHub etc. but in vain. So, any help in this would be greatly appreciated.

(Stack: Windows OS, Python3, Flask)

George (Cloud Platform Support)

unread,
Feb 1, 2019, 1:18:32 PM2/1/19
to Google App Engine
Hello Amruth, 

What have you tried exactly, up to now? It looks like a path issue: google.appengine.api is part of the App Engine SDK packaged with the Google Cloud SDK. This has to be reflected in your Python path, so you'll need to add to PYTHONPATH the path to your google module google_appengine. 

What is the output of the gcloud info command? You should edit out all private information. 

Your issue should enjoy more attention and would be easier tracked and fixed if you open such issues in the Public Issue Tracker. This discussion group is meant for voicing of opinions and expressing general ideas, rather than debugging. 
Reply all
Reply to author
Forward
0 new messages