Title: Crash while rendering traceback · Issue #12467 · ipython/ipython · GitHub
Open Graph Title: Crash while rendering traceback · Issue #12467 · ipython/ipython
X Title: Crash while rendering traceback · Issue #12467 · ipython/ipython
Description: On a clean checkout of 58006f3 PS C:\Users\wiese\Repos\lean\mathlib> py -3.8 -m IPython Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] Type 'copyright', 'credits' or 'license' for more information I...
Open Graph Description: On a clean checkout of 58006f3 PS C:\Users\wiese\Repos\lean\mathlib> py -3.8 -m IPython Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] Type 'copyright', 'cred...
X Description: On a clean checkout of 58006f3 PS C:\Users\wiese\Repos\lean\mathlib> py -3.8 -m IPython Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] Type 'copyright&...
Opengraph URL: https://github.com/ipython/ipython/issues/12467
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash while rendering traceback","articleBody":"On a clean checkout of 58006f3\r\n\r\n```\r\nPS C:\\Users\\wiese\\Repos\\lean\\mathlib> py -3.8 -m IPython\r\nPython 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)]\r\nType 'copyright', 'credits' or 'license' for more information\r\nIPython 8.0.0.dev -- An enhanced Interactive Python. Type '?' for help.\r\n\r\nIn [1]: from enum import Enum\r\n\r\nIn [2]: class MyEnum(Enum):\r\n ...: X = 1\r\n ...:\r\n\r\nIn [3]: MyEnum(2)\r\nValueError: 2 is not a valid MyEnum\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 3410, in run_code\r\n exec(code_obj, self.user_global_ns, self.user_ns)\r\n File \"\u003cipython-input-3-a0dabac034d8>\", line 1, in \u003cmodule>\r\n MyEnum(2)\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\enum.py\", line 304, in __call__\r\n return cls.__new__(cls, value)\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\enum.py\", line 595, in __new__\r\n raise exc\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\enum.py\", line 579, in __new__\r\n result = cls._missing_(value)\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\enum.py\", line 608, in _missing_\r\n raise ValueError(\"%r is not a valid %s\" % (value, cls.__name__))\r\nValueError: 2 is not a valid MyEnum\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 2042, in showtraceback\r\n stb = value._render_traceback_()\r\nAttributeError: 'ValueError' object has no attribute '_render_traceback_'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 3330, in run_ast_nodes\r\n if (await self.run_code(code, result, async_=asy)):\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 3427, in run_code\r\n self.showtraceback(running_compiled_code=True)\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 2044, in showtraceback\r\n stb = self.InteractiveTB.structured_traceback(etype,\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 1002, in structured_traceback\r\n return FormattedTB.structured_traceback(\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 902, in structured_traceback\r\n return VerboseTB.structured_traceback(\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 777, in structured_traceback\r\n formatted_exceptions += self.format_exception_as_a_whole(etype, evalue, etb, lines_of_context,\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 703, in format_exception_as_a_whole\r\n records = self.get_records(etb, number_of_lines_of_context, tb_offset)\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 753, in get_records\r\n return list(stack_data.FrameInfo.stack_data(etb, options=options))[tb_offset:]\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\stack_data\\core.py\", line 527, in stack_data\r\n if is_frame(frame_or_tb):\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\stack_data\\utils.py\", line 87, in is_frame\r\n assert_(isinstance(frame_or_tb, (types.FrameType, types.TracebackType)))\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\stack_data\\utils.py\", line 168, in assert_\r\n raise error\r\nAssertionError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 2042, in showtraceback\r\n stb = value._render_traceback_()\r\nAttributeError: 'AssertionError' object has no attribute '_render_traceback_'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 2916, in _run_cell\r\n return runner(coro)\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\async_helpers.py\", line 67, in _pseudo_sync_runner\r\n coro.send(None)\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 3138, in run_cell_async\r\n has_raised = await self.run_ast_nodes(code_ast.body, cell_name,\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 3349, in run_ast_nodes\r\n self.showtraceback()\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 2044, in showtraceback\r\n stb = self.InteractiveTB.structured_traceback(etype,\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 1002, in structured_traceback\r\n return FormattedTB.structured_traceback(\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 902, in structured_traceback\r\n return VerboseTB.structured_traceback(\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 777, in structured_traceback\r\n formatted_exceptions += self.format_exception_as_a_whole(etype, evalue, etb, lines_of_context,\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 703, in format_exception_as_a_whole\r\n records = self.get_records(etb, number_of_lines_of_context, tb_offset)\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 753, in get_records\r\n return list(stack_data.FrameInfo.stack_data(etb, options=options))[tb_offset:]\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\stack_data\\core.py\", line 527, in stack_data\r\n if is_frame(frame_or_tb):\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\stack_data\\utils.py\", line 87, in is_frame\r\n assert_(isinstance(frame_or_tb, (types.FrameType, types.TracebackType)))\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\stack_data\\utils.py\", line 168, in assert_\r\n raise error\r\nAssertionError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 2042, in showtraceback\r\n stb = value._render_traceback_()\r\nAttributeError: 'AssertionError' object has no attribute '_render_traceback_'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\runpy.py\", line 192, in _run_module_as_main\r\n return _run_code(code, main_globals, None,\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\runpy.py\", line 85, in _run_code\r\n exec(code, run_globals)\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\__main__.py\", line 14, in \u003cmodule>\r\n start_ipython()\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\__init__.py\", line 126, in start_ipython\r\n return launch_new_instance(argv=argv, **kwargs)\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\traitlets\\config\\application.py\", line 664, in launch_instance\r\n app.start()\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\terminal\\ipapp.py\", line 356, in start\r\n self.shell.mainloop()\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\terminal\\interactiveshell.py\", line 564, in mainloop\r\n self.interact()\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\terminal\\interactiveshell.py\", line 555, in interact\r\n self.run_cell(code, store_history=True)\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 2870, in run_cell\r\n result = self._run_cell(\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 2921, in _run_cell\r\n self.showtraceback(running_compiled_code=True)\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\interactiveshell.py\", line 2044, in showtraceback\r\n stb = self.InteractiveTB.structured_traceback(etype,\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 1002, in structured_traceback\r\n return FormattedTB.structured_traceback(\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 902, in structured_traceback\r\n return VerboseTB.structured_traceback(\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 777, in structured_traceback\r\n formatted_exceptions += self.format_exception_as_a_whole(etype, evalue, etb, lines_of_context,\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 703, in format_exception_as_a_whole\r\n records = self.get_records(etb, number_of_lines_of_context, tb_offset)\r\n File \"c:\\users\\wiese\\repos\\forks\\ipython\\IPython\\core\\ultratb.py\", line 753, in get_records\r\n return list(stack_data.FrameInfo.stack_data(etb, options=options))[tb_offset:]\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\stack_data\\core.py\", line 527, in stack_data\r\n if is_frame(frame_or_tb):\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\stack_data\\utils.py\", line 87, in is_frame\r\n assert_(isinstance(frame_or_tb, (types.FrameType, types.TracebackType)))\r\n File \"C:\\Users\\wiese\\AppData\\Local\\Programs\\Python\\Python38\\lib\\site-packages\\stack_data\\utils.py\", line 168, in assert_\r\n raise error\r\nAssertionError\r\n\r\nIf you suspect this is an IPython 8.0.0.dev bug, please report it at:\r\n https://github.com/ipython/ipython/issues\r\nor send an email to the mailing list at ipython-dev@python.org\r\n\r\nYou can print a more detailed traceback right now with \"%tb\", or use \"%debug\"\r\nto interactively debug it.\r\n\r\nExtra-detailed tracebacks for bug-reporting purposes can be enabled via:\r\n %config Application.verbose_crash=True\r\n```","author":{"url":"https://github.com/eric-wieser","@type":"Person","name":"eric-wieser"},"datePublished":"2020-07-29T08:32:13Z","url":"https://github.com/ipython/ipython/issues/12467"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:ac7c6a16-2c36-4b5b-b51a-0fb78ee30b66 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D29A:33E90D:4E7A8D:68AD85:6B00A52F |
| html-safe-nonce | aedf84713ed10c9a741ce5427acaad53d53e144f8162d034842132d973986bd3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjlBOjMzRTkwRDo0RTdBOEQ6NjhBRDg1OjZCMDBBNTJGIiwidmlzaXRvcl9pZCI6Ijc2Nzg4NTIzODExMTQ2NzI0MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 95c9e085cae707d121249d40a02bb8c6e71ceb110be73b047813f7369491b084 |
| hovercard-subject-tag | issue:667655863 |
| 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/ipython/ipython/12467/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8abfed079a63cf638749fd7dc6975297bf3e30e9b22d72c27f6fba0c5ad0f738/ipython/ipython/issues/12467 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8abfed079a63cf638749fd7dc6975297bf3e30e9b22d72c27f6fba0c5ad0f738/ipython/ipython/issues/12467 |
| og:image:alt | On a clean checkout of 58006f3 PS C:\Users\wiese\Repos\lean\mathlib> py -3.8 -m IPython Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] Type 'copyright', 'cred... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eric-wieser |
| hostname | github.com |
| expected-hostname | github.com |
| None | 455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a |
| turbo-cache-control | no-preview |
| go-import | github.com/ipython/ipython git https://github.com/ipython/ipython.git |
| octolytics-dimension-user_id | 230453 |
| octolytics-dimension-user_login | ipython |
| octolytics-dimension-repository_id | 658518 |
| octolytics-dimension-repository_nwo | ipython/ipython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 658518 |
| octolytics-dimension-repository_network_root_nwo | ipython/ipython |
| 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 | 2f575159976167242d488c0b062eb355c4e198b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width