-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: Module "google.cloud" has no attribute "pubsub_v1" #1059
Comments
Thanks for providing the detailed reproduction steps. I wasn't able to re-create the same error Following the steps that you provided, I have the following output
After installing The mypy failures also reduced if you use
I found more mypy error messages when I run the command from the root of the repository. It looks like the mypy presubmit checks are not currently running for the samples files. I've opened #1060 for the team to take a look.
|
python-pubsub/samples/snippets/subscriber.py
Line 35 in 265f410
Steps to Reproduce:
cd python-pubsub/samples/snippets
python3 -m venv venv && source ./venv/bin/activate
pip install -r requirements.txt
python3 -m pip install mypy
python3 -m mypy --install-types
python3 -m mypy subscriber.py
error: Module "google.cloud" has no attribute "pubsub_v1" [attr-defined]
The text was updated successfully, but these errors were encountered: