Title: ValueError: Bad Args PS1 object – when using VSCode Python extension v2024.0.0 or newer · Issue #1041 · bpython/bpython · GitHub
Open Graph Title: ValueError: Bad Args PS1 object – when using VSCode Python extension v2024.0.0 or newer · Issue #1041 · bpython/bpython
X Title: ValueError: Bad Args PS1 object – when using VSCode Python extension v2024.0.0 or newer · Issue #1041 · bpython/bpython
Description: Within the terminal panel of VSCode with Python extension enabled: >>> python -m pip show bpython curtsies Name: bpython Version: 0.21 Summary: Fancy Interface to the Python Interpreter Requires: curtsies, cwcwidth, greenlet, pygments, p...
Open Graph Description: Within the terminal panel of VSCode with Python extension enabled: >>> python -m pip show bpython curtsies Name: bpython Version: 0.21 Summary: Fancy Interface to the Python Interpreter Requires: c...
X Description: Within the terminal panel of VSCode with Python extension enabled: >>> python -m pip show bpython curtsies Name: bpython Version: 0.21 Summary: Fancy Interface to the Python Interpreter Re...
Opengraph URL: https://github.com/bpython/bpython/issues/1041
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ValueError: Bad Args PS1 object – when using VSCode Python extension v2024.0.0 or newer","articleBody":"Within the terminal panel of VSCode with Python extension enabled:\n```\n\u003e\u003e\u003e python -m pip show bpython curtsies\nName: bpython\nVersion: 0.21\nSummary: Fancy Interface to the Python Interpreter\nRequires: curtsies, cwcwidth, greenlet, pygments, pyxdg, requests\nRequired-by: \n---\nName: curtsies\nVersion: 0.4.0\nSummary: Curses-like terminal wrapper, with colored strings!\nRequires: blessed, cwcwidth\nRequired-by: bpython\n\n\u003e\u003e\u003e bpython\nbpython version 0.21 on top of Python 3.12.3 /root/.venvs/p312/bin/python3\n\nTraceback (most recent call last):\n File \"/root/.venvs/p312/bin/bpython\", line 8, in \u003cmodule\u003e\n sys.exit(main())\n ^^^^^^\n File \"/root/.venvs/p312/lib/python3.12/site-packages/bpython/curtsies.py\", line 201, in main\n exit_value = repl.mainloop(True, paste)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/root/.venvs/p312/lib/python3.12/site-packages/bpython/curtsies.py\", line 113, in mainloop\n self.process_event_and_paint(None)\n File \"/root/.venvs/p312/lib/python3.12/site-packages/bpython/curtsies.py\", line 95, in process_event_and_paint\n array, cursor_pos = self.paint()\n ^^^^^^^^^^^^\n File \"/root/.venvs/p312/lib/python3.12/site-packages/bpython/curtsiesfrontend/repl.py\", line 1468, in paint\n min_height, width, self.current_cursor_line\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/root/.venvs/p312/lib/python3.12/site-packages/bpython/curtsiesfrontend/repl.py\", line 1374, in current_cursor_line\n return self.current_cursor_line_without_suggestion + suggest(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/root/.venvs/p312/lib/python3.12/site-packages/bpython/curtsiesfrontend/repl.py\", line 1363, in current_cursor_line_without_suggestion\n \"\" if self.coderunner.running else self.display_line_with_prompt\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/root/.venvs/p312/lib/python3.12/site-packages/bpython/curtsiesfrontend/repl.py\", line 1352, in display_line_with_prompt\n prompt(self.ps1) if self.done else more(self.ps2)\n ^^^^^^^^^^^^^^^^\n File \"/root/.venvs/p312/lib/python3.12/site-packages/curtsies/formatstring.py\", line 883, in fmtstr\n raise ValueError(\nValueError: Bad Args: \u003c__main__.PS1 object at 0x76bb09ea1550\u003e (of type \u003cclass '__main__.PS1'\u003e), (), {'fg': 36, 'bold': False}\n```","author":{"url":"https://github.com/interDist","@type":"Person","name":"interDist"},"datePublished":"2025-08-22T11:30:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/1041/bpython/issues/1041"}
| 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:efcc2fd8-372a-5331-76fa-79c034d97cc0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED48:1EF88C:5803E6:7ABC20:6968DEC2 |
| html-safe-nonce | 4daa1b7fa20d79f52e2465564e51615da1c7478d4674128e9d8d80d8553358ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDQ4OjFFRjg4Qzo1ODAzRTY6N0FCQzIwOjY5NjhERUMyIiwidmlzaXRvcl9pZCI6IjQ5MzM0NTQwMzUwMjU0NTI3MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a01c37abee1c85e89d99f1ba10b691f816c558e9ab4104b6fb45182089db88fe |
| hovercard-subject-tag | issue:3345165994 |
| 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/1041/issue_layout |
| twitter:image | https://opengraph.githubassets.com/28b006fa5fc89f3cd33fa0a2137ce02d33cd1059b7bc0ee6deb372cf89300003/bpython/bpython/issues/1041 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/28b006fa5fc89f3cd33fa0a2137ce02d33cd1059b7bc0ee6deb372cf89300003/bpython/bpython/issues/1041 |
| og:image:alt | Within the terminal panel of VSCode with Python extension enabled: >>> python -m pip show bpython curtsies Name: bpython Version: 0.21 Summary: Fancy Interface to the Python Interpreter Requires: c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | interDist |
| 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