Title: error: Module "google.cloud" has no attribute "pubsub_v1" · Issue #1059 · googleapis/python-pubsub · GitHub
Open Graph Title: error: Module "google.cloud" has no attribute "pubsub_v1" · Issue #1059 · googleapis/python-pubsub
X Title: error: Module "google.cloud" has no attribute "pubsub_v1" · Issue #1059 · googleapis/python-pubsub
Description: python-pubsub/samples/snippets/subscriber.py Line 35 in 265f410 from google.cloud import pubsub_v1 Steps to Reproduce: cd python-pubsub/samples/snippets python3 -m venv venv && source ./venv/bin/activate pip install -r requirements.txt p...
Open Graph Description: python-pubsub/samples/snippets/subscriber.py Line 35 in 265f410 from google.cloud import pubsub_v1 Steps to Reproduce: cd python-pubsub/samples/snippets python3 -m venv venv && source ./venv/bin/ac...
X Description: python-pubsub/samples/snippets/subscriber.py Line 35 in 265f410 from google.cloud import pubsub_v1 Steps to Reproduce: cd python-pubsub/samples/snippets python3 -m venv venv && source ./ven...
Opengraph URL: https://github.com/googleapis/python-pubsub/issues/1059
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"error: Module \"google.cloud\" has no attribute \"pubsub_v1\"","articleBody":"https://github.com/googleapis/python-pubsub/blob/265f4106f499ec5d2d01a127ba192404c1836a28/samples/snippets/subscriber.py#L35\r\n\r\nSteps to Reproduce:\r\n1. `cd python-pubsub/samples/snippets`\r\n2. `python3 -m venv venv \u0026\u0026 source ./venv/bin/activate`\r\n3. `pip install -r requirements.txt`\r\n4. `python3 -m pip install mypy`\r\n5. `python3 -m mypy --install-types`\r\n6. `python3 -m mypy subscriber.py`\r\n7. Observe many occurrences of `error: Module \"google.cloud\" has no attribute \"pubsub_v1\" [attr-defined]`\r\n","author":{"url":"https://github.com/coactive-jeffrey","@type":"Person","name":"coactive-jeffrey"},"datePublished":"2024-01-11T06:44:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1059/python-pubsub/issues/1059"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6313b794-02cb-8a34-1a48-e6a8668638e5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F7E:223EF0:242DC36:3434736:6A4D18FA |
| html-safe-nonce | 8714d36b61f98e3e73b9ae6a0719a1880a2eab377c7c1b59c40c9dd865cd3f97 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjdFOjIyM0VGMDoyNDJEQzM2OjM0MzQ3MzY6NkE0RDE4RkEiLCJ2aXNpdG9yX2lkIjoiMjM4MDE3NjM5MjI0MTA5Mjg1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 555ef9877cc2c46d4a06e6f68820b5266f1d113bddb1d15019f4520a000c4e5c |
| hovercard-subject-tag | issue:2075885793 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-pubsub/1059/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dd3d48a1c0ceabb44facec2197c22cffe3e387bf639c8e185f637bd3ab693f40/googleapis/python-pubsub/issues/1059 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dd3d48a1c0ceabb44facec2197c22cffe3e387bf639c8e185f637bd3ab693f40/googleapis/python-pubsub/issues/1059 |
| og:image:alt | python-pubsub/samples/snippets/subscriber.py Line 35 in 265f410 from google.cloud import pubsub_v1 Steps to Reproduce: cd python-pubsub/samples/snippets python3 -m venv venv && source ./venv/bin/ac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | coactive-jeffrey |
| hostname | github.com |
| expected-hostname | github.com |
| None | bcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-pubsub git https://github.com/googleapis/python-pubsub.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992581 |
| octolytics-dimension-repository_nwo | googleapis/python-pubsub |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992581 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-pubsub |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width