Title: [bug] bpython crashes · Issue #902 · bpython/bpython · GitHub
Open Graph Title: [bug] bpython crashes · Issue #902 · bpython/bpython
X Title: [bug] bpython crashes · Issue #902 · bpython/bpython
Description: change dir to / type "import " and do not press enter it will crash with this traceback: bpython.mp4 Traceback (most recent call last): File "/tmp/test1/venv/bin/bpython", line 8, in
Open Graph Description: change dir to / type "import " and do not press enter it will crash with this traceback: bpython.mp4 Traceback (most recent call last): File "/tmp/test1/venv/bin/bpython", line 8, in
X Description: change dir to / type "import " and do not press enter it will crash with this traceback: bpython.mp4 Traceback (most recent call last): File "/tmp/test1/venv/bin/bpython", line ...
Opengraph URL: https://github.com/bpython/bpython/issues/902
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[bug] bpython crashes","articleBody":"change dir to /\r\ntype \"import \" and do not press enter it will crash with this traceback:\r\n\r\nhttps://user-images.githubusercontent.com/49244351/127768935-b91e89c7-fda0-4080-9b3f-d2fccb8418ac.mp4\r\n\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"/tmp/test1/venv/bin/bpython\", line 8, in \u003cmodule\u003e\r\n sys.exit(main())\r\n File \"/tmp/test1/venv/lib/python3.8/site-packages/bpython/curtsies.py\", line 201, in main\r\n exit_value = repl.mainloop(True, paste)\r\n File \"/tmp/test1/venv/lib/python3.8/site-packages/bpython/curtsies.py\", line 115, in mainloop\r\n while self.module_gatherer.find_coroutine():\r\n File \"/tmp/test1/venv/lib/python3.8/site-packages/bpython/importcompletion.py\", line 226, in find_coroutine\r\n next(self.find_iterator)\r\n File \"/tmp/test1/venv/lib/python3.8/site-packages/bpython/importcompletion.py\", line 217, in find_all_modules\r\n for module in self.find_modules(p):\r\n File \"/tmp/test1/venv/lib/python3.8/site-packages/bpython/importcompletion.py\", line 202, in find_modules\r\n for subname in self.find_modules(path_real):\r\n File \"/tmp/test1/venv/lib/python3.8/site-packages/bpython/importcompletion.py\", line 202, in find_modules\r\n for subname in self.find_modules(path_real):\r\n File \"/tmp/test1/venv/lib/python3.8/site-packages/bpython/importcompletion.py\", line 202, in find_modules\r\n for subname in self.find_modules(path_real):\r\n [Previous line repeated 1 more time]\r\n File \"/tmp/test1/venv/lib/python3.8/site-packages/bpython/importcompletion.py\", line 199, in find_modules\r\n stat = path_real.stat()\r\n File \"/usr/lib/python3.8/pathlib.py\", line 1198, in stat\r\n return self._accessor.stat(self)\r\nFileNotFoundError: [Errno 2] No such file or directory: '/sys/kernel/security/apparmor/apparmorfs:[12490]'\r\n```","author":{"url":"https://github.com/nikitax44","@type":"Person","name":"nikitax44"},"datePublished":"2021-08-01T11:21:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/902/bpython/issues/902"}
| 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:e64dcf30-e927-dc7e-8451-12e3819c73d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8222:4592C:1E6B4:26A69:6968A828 |
| html-safe-nonce | b34ed59a29e660e496b70a2526ad9873d26dc6233a674b995ace19362d9f559e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjIyOjQ1OTJDOjFFNkI0OjI2QTY5OjY5NjhBODI4IiwidmlzaXRvcl9pZCI6Ijc3Njg4NDcxMzI5NDM0OTMxNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 11124360535fc64c78e5475ad931d3ad9d1744e97e96ade20033a93c72ae2e2c |
| hovercard-subject-tag | issue:957465724 |
| 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/902/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a1e1ac64cadd64d4befe6bb54317744ed0e2a7b98dc55f542a4083395fb4f4b/bpython/bpython/issues/902 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a1e1ac64cadd64d4befe6bb54317744ed0e2a7b98dc55f542a4083395fb4f4b/bpython/bpython/issues/902 |
| og:image:alt | change dir to / type "import " and do not press enter it will crash with this traceback: bpython.mp4 Traceback (most recent call last): File "/tmp/test1/venv/bin/bpython", line 8, in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nikitax44 |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdc7c66bd36a6c12eb8e771e806db863266e573fc299e77f27505a768d4f8a98 |
| 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 | 3223a6503d318917691422cdadfbe16cd8fb21e5 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width