Title: module google.cloud has no attribute firestore - Incorrect · Issue #12985 · python/mypy · GitHub
Open Graph Title: module google.cloud has no attribute firestore - Incorrect · Issue #12985 · python/mypy
X Title: module google.cloud has no attribute firestore - Incorrect · Issue #12985 · python/mypy
Description: Bug Report module google.cloud has no attribute firestore The bug is that this statement is not true. There have been a few related stackoverflow issues (e.g. 1, 2) relating to incorrect "module x as no attribute y" specifically relating...
Open Graph Description: Bug Report module google.cloud has no attribute firestore The bug is that this statement is not true. There have been a few related stackoverflow issues (e.g. 1, 2) relating to incorrect "module x ...
X Description: Bug Report module google.cloud has no attribute firestore The bug is that this statement is not true. There have been a few related stackoverflow issues (e.g. 1, 2) relating to incorrect "modu...
Opengraph URL: https://github.com/python/mypy/issues/12985
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"module google.cloud has no attribute firestore - Incorrect","articleBody":"**Bug Report**\r\n\r\n`module google.cloud has no attribute firestore`\r\nThe bug is that this statement is not true.\r\n\r\nThere have been a few related stackoverflow issues (e.g. [1](https://stackoverflow.com/questions/63339732/module-google-cloud-has-no-attribute-storage), [2](https://stackoverflow.com/questions/55212535/issue-with-google-cloud-storage-module-has-no-attribute-client/55212631#55212631)) relating to incorrect \"module x as no attribute y\" specifically relating to google.cloud.\r\nSome issues were sorted by recreating the virtual env.\r\nOther issues on this repo were historically traced back to using incremental mode but solution seemed incomplete (e.g. [1](https://github.com/python/mypy/issues/10360), [2](https://github.com/python/mypy/issues/12232)).\r\nWe disabled mypy cache (e.g. incremental mode) which dealt with a chunk of the problem\r\n\r\n**To Reproduce**\r\nHard to know exactly how to reproduce because the problem with this issue is it seems random and indeterministic - even after disabling incremental mode.\r\n\r\nAll I can tell you is in our code we do:\r\n```python\r\nfrom google.cloud import bigquery, firestore\r\n```\r\nBoth `google-cloud-bigquery` and `google-cloud-firestore` are in setup.cfg/requirements.txt and installed in the virtual environment which mypy is being activated from.\r\n\r\nWe have no issues (currently) with the bigquery import but we do with firestore. They are completely identical for all intents and purposes here.\r\n\r\n**Expected Behaviour**\r\n\r\nNo complaint about missing attribute.\r\n\r\n**Actual Behaviour**\r\n\r\nIncorrect complaint about missing attribute.\r\n\r\n**Your Environment**\r\n\r\nmypy 0.950 (compiled: yes)\r\npython 3.9.x\r\n\r\nPlease can we get to the bottom of this once and for all?","author":{"url":"https://github.com/adamcunnington-mlg","@type":"Person","name":"adamcunnington-mlg"},"datePublished":"2022-06-15T08:40:35Z","url":"https://github.com/python/mypy/issues/12985"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:794009af-f028-8914-a8fa-07127444e7d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3E4:34D604:17DDAA8:1F82E62:6B0023FF |
| html-safe-nonce | 4a99855a64cbb1ba5b954759cb90d961a9a719361b43651ac622fea4b54f00f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0U0OjM0RDYwNDoxN0REQUE4OjFGODJFNjI6NkIwMDIzRkYiLCJ2aXNpdG9yX2lkIjoiNjIwNzc0ODEzNzE2ODE1MTU1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3a65ead0f95e39f5e23f0dc3c2bb1d7d6579863b08e4fefb33c7660db59ab2cc |
| hovercard-subject-tag | issue:1271881077 |
| 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/python/mypy/12985/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9dddbf4d2ba5d786d8e842e3acbe6b8fffee80f1b13ae94e27b043213a990acb/python/mypy/issues/12985 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9dddbf4d2ba5d786d8e842e3acbe6b8fffee80f1b13ae94e27b043213a990acb/python/mypy/issues/12985 |
| og:image:alt | Bug Report module google.cloud has no attribute firestore The bug is that this statement is not true. There have been a few related stackoverflow issues (e.g. 1, 2) relating to incorrect "module x ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adamcunnington-mlg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width