Skip to content

ImportError: cannot import name 'connection' in logs when deploying via App Engine #689

@jeremykeen

Description

@jeremykeen

In which file did you encounter the issue?

python-docs-samples/appengine/flexible/pubsub/main.py

Did you change the file? If so, how?

No

Describe the issue

Error when deploying to App Engine:
from google.cloud.pubsub.connection import Connection File "/env/lib/python3.4/site-packages/google/cloud/pubsub/connection.py", line 19, in <module> from google.cloud import connection as base_connection ImportError: cannot import name 'connection'

In the CLI I eventually get the below error and the app simply is repeatedly relaunching.

ERROR: (gcloud.app.deploy) Error Response: [13] Timed out when starting VMs. It's possible that the application code is unhealthy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions