I am using Google Cloud to deploy a relatively small but computationally intensive Python application. I am using Flask. Since the current version of my app is really slow (I am not storing computed values for future reuse), I am hoping to use the Appengine Memcache. For that, I have the following line of code within my python file: from google.appengine.api import memcache
When I try to deploy this (gcloud app deploy
), the deployment packaging works for about 8-10 minutes before stopping with this error: No module named appengine.api
I have installed Google Cloud SDK (/usr/local/Google-Cloud-SDK
- I'm on OSX). I have also installed the Python Libraries: https://googlecloudplatform.github.io/google-cloud-python/
I have looked at some related issues here & tried the proposed solutions: remove protobuf
, modified $PYTHONPATH
move directories, and remove/reinstall. None of them seem to work. Reached out to Google as well but they just pointed me to the documentation.