Title: Interpreter crashes when given non-existent file in interactive mode · Issue #919 · bpython/bpython · GitHub
Open Graph Title: Interpreter crashes when given non-existent file in interactive mode · Issue #919 · bpython/bpython
X Title: Interpreter crashes when given non-existent file in interactive mode · Issue #919 · bpython/bpython
Description: See below. Running the same command with python3 versus bpython and py3 prints a short error message and then opens the interpreter, but bpy just crashes. bpython % python3 -i file_that_does_not_exist.py /Library/Developer/CommandLineToo...
Open Graph Description: See below. Running the same command with python3 versus bpython and py3 prints a short error message and then opens the interpreter, but bpy just crashes. bpython % python3 -i file_that_does_not_ex...
X Description: See below. Running the same command with python3 versus bpython and py3 prints a short error message and then opens the interpreter, but bpy just crashes. bpython % python3 -i file_that_does_not_ex...
Opengraph URL: https://github.com/bpython/bpython/issues/919
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Interpreter crashes when given non-existent file in interactive mode","articleBody":"See below. Running the same command with `python3` versus `bpython` and `py3` prints a short error message and then opens the interpreter, but `bpy` just crashes.\r\n\r\n```\r\nbpython % python3 -i file_that_does_not_exist.py\r\n/Library/Developer/CommandLineTools/usr/bin/python3: can't open file 'file_that_does_not_exist.py': [Errno 2] No such file or directory\r\n\u003e\u003e\u003e ^D\r\n\r\n\r\nbpython % bpython -i file_that_does_not_exist.py\r\nTraceback (most recent call last):\r\n File \"/Users/arian/Library/Python/3.8/bin/bpython\", line 8, in \u003cmodule\u003e\r\n sys.exit(main())\r\n File \"/Users/arian/Library/Python/3.8/lib/python/site-packages/bpython/curtsies.py\", line 181, in main\r\n bpargs.exec_code(interp, exec_args)\r\n File \"/Users/arian/Library/Python/3.8/lib/python/site-packages/bpython/args.py\", line 161, in exec_code\r\n with open(args[0]) as sourcefile:\r\nFileNotFoundError: [Errno 2] No such file or directory: 'file_that_does_not_exist.py'\r\nbpython % \r\n\r\n```","author":{"url":"https://github.com/arian-deimling","@type":"Person","name":"arian-deimling"},"datePublished":"2021-09-27T17:15:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/919/bpython/issues/919"}
| 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:1eaedfcc-0b47-4acc-3fc0-f8a387c6a56e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5C6:1E293A:AC9A72:EECBB3:6968A8D7 |
| html-safe-nonce | ce634ae1805f6a60d66fb331b0260abfda4a8298d8c48d1b285d59d4370b9643 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUM2OjFFMjkzQTpBQzlBNzI6RUVDQkIzOjY5NjhBOEQ3IiwidmlzaXRvcl9pZCI6IjQ0NzQ1Mzg2OTA3MDgyODU2NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4c5db8cc9df13b61bdd889dc964987499f43d4f818b99622eb3cd63c88111ff6 |
| hovercard-subject-tag | issue:1008397195 |
| 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/919/issue_layout |
| twitter:image | https://opengraph.githubassets.com/74686fb4ba2ac918a0d3d18b3b1f61a9ebafa0454167da6e702d1e9b59c2bfad/bpython/bpython/issues/919 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/74686fb4ba2ac918a0d3d18b3b1f61a9ebafa0454167da6e702d1e9b59c2bfad/bpython/bpython/issues/919 |
| og:image:alt | See below. Running the same command with python3 versus bpython and py3 prints a short error message and then opens the interpreter, but bpy just crashes. bpython % python3 -i file_that_does_not_ex... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arian-deimling |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width