Title: cmd2 crash running with Python 3.15.0a6 · Issue #1603 · python-cmd2/cmd2 · GitHub
Open Graph Title: cmd2 crash running with Python 3.15.0a6 · Issue #1603 · python-cmd2/cmd2
X Title: cmd2 crash running with Python 3.15.0a6 · Issue #1603 · python-cmd2/cmd2
Description: Attempting to run any cmd2 app using the latest alpha version of Python 3.15, 3.15.0a6, results in a crash in our argparse_custom.py code. The crash looks like: class ArgparseApp(cmd2.Cmd): tests/test_argparse.py:58: in ArgparseApp tag_p...
Open Graph Description: Attempting to run any cmd2 app using the latest alpha version of Python 3.15, 3.15.0a6, results in a crash in our argparse_custom.py code. The crash looks like: class ArgparseApp(cmd2.Cmd): tests/t...
X Description: Attempting to run any cmd2 app using the latest alpha version of Python 3.15, 3.15.0a6, results in a crash in our argparse_custom.py code. The crash looks like: class ArgparseApp(cmd2.Cmd): tests/t...
Opengraph URL: https://github.com/python-cmd2/cmd2/issues/1603
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cmd2 crash running with Python 3.15.0a6","articleBody":"Attempting to run any `cmd2` app using the latest alpha version of Python 3.15, 3.15.0a6, results in a crash in our `argparse_custom.py` code.\n\nThe crash looks like:\n\n```sh\n class ArgparseApp(cmd2.Cmd):\ntests/test_argparse.py:58: in ArgparseApp\n tag_parser = cmd2.Cmd2ArgumentParser(description='create a html tag')\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\ncmd2/argparse_custom.py:1205: in __init__\n super().__init__(\n../../../.local/share/uv/python/cpython-3.15.0a6-macos-aarch64-none/lib/python3.15/argparse.py:1992: in __init__\n self.add_argument(\ncmd2/argparse_custom.py:801: in _add_argument_wrapper\n new_arg = orig_actions_container_add_argument(self, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n../../../.local/share/uv/python/cpython-3.15.0a6-macos-aarch64-none/lib/python3.15/argparse.py:1625: in add_argument\n formatter = self._get_validation_formatter()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n../../../.local/share/uv/python/cpython-3.15.0a6-macos-aarch64-none/lib/python3.15/argparse.py:2817: in _get_validation_formatter\n self._cached_formatter = self._get_formatter()\n ^^^^^^^^^^^^^^^^^^^^^\ncmd2/argparse_custom.py:1263: in _get_formatter\n return cast(Cmd2HelpFormatter, super()._get_formatter())\n ^^^^^^^^^^^^^^^^^^^^^^^^\n../../../.local/share/uv/python/cpython-3.15.0a6-macos-aarch64-none/lib/python3.15/argparse.py:2810: in _get_formatter\n formatter._set_color(self.color, file=file)\nE TypeError: RichHelpFormatter._set_color() got an unexpected keyword argument 'file'\n```","author":{"url":"https://github.com/tleonhardt","@type":"Person","name":"tleonhardt"},"datePublished":"2026-03-07T20:00:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1603/cmd2/issues/1603"}
| 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:a49ea1f3-e4fe-0608-e8b5-b1b335928109 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97B6:86A36:101AC21:17292BF:6A4E55F5 |
| html-safe-nonce | 13fa9b6359f12e371714ba87fd91425ce1af671c5ca4a4b18874a8a1d5cffd70 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0I2Ojg2QTM2OjEwMUFDMjE6MTcyOTJCRjo2QTRFNTVGNSIsInZpc2l0b3JfaWQiOiI2NzUxMzAwMTE1NTk4NTYyODA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 066afe10a4f70a6388f38cca909b929a152c1499b4fe6a5332da57ac8b1c3e65 |
| hovercard-subject-tag | issue:4039343397 |
| 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-cmd2/cmd2/1603/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d443d5d04c5cb11e86e36455389475081b19093bc58809159e21d972e5a18104/python-cmd2/cmd2/issues/1603 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d443d5d04c5cb11e86e36455389475081b19093bc58809159e21d972e5a18104/python-cmd2/cmd2/issues/1603 |
| og:image:alt | Attempting to run any cmd2 app using the latest alpha version of Python 3.15, 3.15.0a6, results in a crash in our argparse_custom.py code. The crash looks like: class ArgparseApp(cmd2.Cmd): tests/t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tleonhardt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-cmd2/cmd2 git https://github.com/python-cmd2/cmd2.git |
| octolytics-dimension-user_id | 17161025 |
| octolytics-dimension-user_login | python-cmd2 |
| octolytics-dimension-repository_id | 51442999 |
| octolytics-dimension-repository_nwo | python-cmd2/cmd2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 51442999 |
| octolytics-dimension-repository_network_root_nwo | python-cmd2/cmd2 |
| 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 | f344f1eab54fc7dfc02d0d018cda7e158c3db65c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width