Title: Module '
Open Graph Title: Module '
X Title: Module '
Description: Bug Report Attempting to run mypy on jaraco.ui, I'm getting an error: _________________________________________________ jaraco/ui/cmdline.py _________________________________________________ 5: error: Module 'jaraco' has no attribute 'te...
Open Graph Description: Bug Report Attempting to run mypy on jaraco.ui, I'm getting an error: _________________________________________________ jaraco/ui/cmdline.py _________________________________________________ 5: err...
X Description: Bug Report Attempting to run mypy on jaraco.ui, I'm getting an error: _________________________________________________ jaraco/ui/cmdline.py _________________________________________________ 5:...
Opengraph URL: https://github.com/python/mypy/issues/9619
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Module '\u003cnamespace package>' has no attribute '\u003cmodule/pkg in namespace>'","articleBody":"**Bug Report**\r\n\r\nAttempting to run mypy on `jaraco.ui`, I'm getting an error:\r\n\r\n```\r\n_________________________________________________ jaraco/ui/cmdline.py _________________________________________________\r\n5: error: Module 'jaraco' has no attribute 'text'\r\n```\r\n\r\nHere is the [pertinent code](https://github.com/jaraco/jaraco.ui/blob/10e844c03f3afb3d37bd5d727ba9334af2547fcf/jaraco/ui/cmdline.py#L5), namely:\r\n\r\n```\r\nfrom jaraco import text\r\n```\r\n\r\nThe module `text` is supplied by a separate package [jaraco.text](https://pypi.org/project/jaraco.text). The `jaraco` namespace uses the `pkgutil` style namespaces (mostly for historical reasons as the code is Python 3-only now, but could still interact with older builds).\r\n\r\nThis issue is related to #9393, although that issue indicates a different failure mode. Also possibly relevant #6385, #7029.\r\n\r\n**To Reproduce**\r\n\r\n```\r\ngit clone https://github.com/jaraco/jaraco.ui\r\ncd jaraco.ui\r\ngit checkout eacca37\r\ntox -- -k cmdline\r\n```\r\n\r\n**Expected Behavior**\r\n\r\nmypy should recognize working implementations of extant modules and not fail.\r\n\r\n**Actual Behavior**\r\n\r\nError reported above is emitted.\r\n\r\n**Your Environment**\r\n\r\n\u003c!-- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n- Mypy version used: 0.790\r\n- Mypy command-line flags: None\r\n- Mypy configuration options from `mypy.ini` (and other config files):\r\n ignore_missing_imports = True\r\n- Python version used: 3.9.0\r\n- Operating system and version: macOS 10.15\r\n","author":{"url":"https://github.com/jaraco","@type":"Person","name":"jaraco"},"datePublished":"2020-10-20T16:17:16Z","url":"https://github.com/python/mypy/issues/9619"}
| 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:35f17476-989a-ca20-5f31-b3145541845f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 944E:1BCD46:29304B:376E85:6B002533 |
| html-safe-nonce | 1166ffa1f9d9c7a1a305a2dcedcab4c7db0e09b47586209abbfa3e6622eefb9a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDRFOjFCQ0Q0NjoyOTMwNEI6Mzc2RTg1OjZCMDAyNTMzIiwidmlzaXRvcl9pZCI6IjUyMjIwNzkzODA2OTEzNjMxMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4bf16115bff715c62100aa8a1ad3ca540c53e53ec5f36656f50001a8f4fd46f3 |
| hovercard-subject-tag | issue:725749801 |
| 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/9619/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d11b763d2fe3c110fb27b2d14855d180d74523592af719ffdb25467264d5f25/python/mypy/issues/9619 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d11b763d2fe3c110fb27b2d14855d180d74523592af719ffdb25467264d5f25/python/mypy/issues/9619 |
| og:image:alt | Bug Report Attempting to run mypy on jaraco.ui, I'm getting an error: _________________________________________________ jaraco/ui/cmdline.py _________________________________________________ 5: err... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jaraco |
| 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