Description
Trying to deploy the password-alert server into a new GCP Project and I'm running into some trouble.
The first issue I ran into was the app.yaml
, which gcloud app deploy
complained about, so I changed:
application: broad-password-alert
version: 1
to
# application: broad-password-alert
# version: 1
and then I was able to deploy the app.
Once it was deployed. I tried to access it and got the error:
ImportError: No module named apiclient.discovery
I tried to fix this by installing the gcloud-api-python-client
into a newly created lib
directory in the server
directory like this:
mkdir lib/
pip install -t lib/ google-api-python-client
I also created an appengine_config.py
with the following:
from google.appengine.ext import vendor
# Add any libraries install in the "lib" folder.
vendor.add('lib')
and then I redeployed the app with gcloud app deploy
.
Then I ran into the issue:
ImportError: cannot import name appengine
At this point I'm wondering if there is an older version of google-api-python-client I should be using, or if there are newer docs that show how to deploy this successfully so I don't have to modify the code too much?