Title: bpython shell cannot import python namespace packages · Issue #835 · bpython/bpython · GitHub
Open Graph Title: bpython shell cannot import python namespace packages · Issue #835 · bpython/bpython
X Title: bpython shell cannot import python namespace packages · Issue #835 · bpython/bpython
Description: In Python 3.3, python namespace packages were introduced [0] - namespace package is a virtual package whose contents can be distributed in various places along Python's PATH. TL;DR Currently importing a namespace package in bpython fails...
Open Graph Description: In Python 3.3, python namespace packages were introduced [0] - namespace package is a virtual package whose contents can be distributed in various places along Python's PATH. TL;DR Currently import...
X Description: In Python 3.3, python namespace packages were introduced [0] - namespace package is a virtual package whose contents can be distributed in various places along Python's PATH. TL;DR Currently im...
Opengraph URL: https://github.com/bpython/bpython/issues/835
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bpython shell cannot import python namespace packages","articleBody":"In Python 3.3, python namespace packages were introduced [0] - namespace package is a virtual package whose contents can be distributed in various places along Python's PATH. TL;DR \r\n\r\nCurrently importing a namespace package in bpython fails with:\r\n```\r\n\u003e\u003e\u003e import my_namespace\r\nTraceback (most recent call last):\r\n File \"\u003cinput\u003e\", line 1, in \u003cmodule\u003e\r\n import my_namespace\r\nModuleNotFoundError: No module named 'my_namespace'\r\n```\r\n\r\nwhereas the identical python distribution, just running native shell, produces:\r\n\r\n```\r\n\u003e\u003e\u003e import my_namespace\r\n\u003e\u003e\u003e my_namespace\r\n\u003cmodule 'my_namespace' (namespace)\u003e \r\n```\r\n\r\n[0] https://www.python.org/dev/peps/pep-0420/","author":{"url":"https://github.com/tbabej","@type":"Person","name":"tbabej"},"datePublished":"2020-07-31T07:14:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/835/bpython/issues/835"}
| 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:debe7983-518c-09a4-948b-819d8708978b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B1AE:72C59:5B0BF7:7FCF0B:6968DEEB |
| html-safe-nonce | 2f62a01867073d57fa0be8dcc06cf6057f9b54b74e53036e2f7c4da5ca9f1306 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUFFOjcyQzU5OjVCMEJGNzo3RkNGMEI6Njk2OERFRUIiLCJ2aXNpdG9yX2lkIjoiODcxNTExMDUzMDg0NzEzNzUxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9b2c3b592da86ebbca2c070f6c2d9759e8f646f4c07b16855d73427503461db2 |
| hovercard-subject-tag | issue:669497280 |
| 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/bpython/bpython/835/issue_layout |
| twitter:image | https://opengraph.githubassets.com/773045cde8b5d436a72df5a72d7123408d1038725d0679ba082a7b1be3eee557/bpython/bpython/issues/835 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/773045cde8b5d436a72df5a72d7123408d1038725d0679ba082a7b1be3eee557/bpython/bpython/issues/835 |
| og:image:alt | In Python 3.3, python namespace packages were introduced [0] - namespace package is a virtual package whose contents can be distributed in various places along Python's PATH. TL;DR Currently import... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tbabej |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3c4e9f2fc1db52c609205138be6a397cfde4574cb54d53015014de30dd49f27e |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| 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 | 1fb1ea11f8c37dd4dd50347cca70d89824e93788 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width