Skip to content

error: Module "google.cloud" has no attribute "pubsub_v1" #1059

@coactive-jeffrey

Description

@coactive-jeffrey

from google.cloud import pubsub_v1

Steps to Reproduce:

  1. cd python-pubsub/samples/snippets
  2. python3 -m venv venv && source ./venv/bin/activate
  3. pip install -r requirements.txt
  4. python3 -m pip install mypy
  5. python3 -m mypy --install-types
  6. python3 -m mypy subscriber.py
  7. Observe many occurrences of error: Module "google.cloud" has no attribute "pubsub_v1" [attr-defined]

Metadata

Metadata

Labels

api: pubsubIssues related to the googleapis/python-pubsub API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions