Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.
This repository was archived by the owner on May 18, 2026. It is now read-only.

Multiple issues deploying server app into AppEngine #105

Description

@lukwam

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions