Description of problem: Tab completion crashes qtconsole. Should be fixed in 5.5.1 by https://github.com/jupyter/qtconsole/commit/5bf935cd9effb6a5e90326a6ef8c1f1bcdd48f21 Version-Release number of selected component: python3-qtconsole-5.5.0-1.fc39 Additional info: reporter: libreport-2.17.11 kernel: 6.7.5-200.fc39.x86_64 cgroup: 0::/user.slice/user-2222.slice/user/app.slice/app-jupyter\x2dqtconsole-4042e8b00005436696674a0be9a044a8.scope reason: completion_html.py:315:show_items:TypeError: compute_item_matrix() got an unexpected keyword argument 'displaywidth' interpreter: python3-3.12.1-2.fc39.x86_64 uid: 2222 cmdline: /usr/bin/python3 /usr/bin/jupyter-qtconsole package: python3-qtconsole-5.5.0-1.fc39 crash_function: show_items exception_type: TypeError runlevel: N 5 executable: /usr/bin/jupyter-qtconsole type: Python3 Truncated backtrace: completion_html.py:315:show_items:TypeError: compute_item_matrix() got an unexpected keyword argument 'displaywidth' Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/qtconsole/base_frontend_mixin.py", line 138, in _dispatch handler(msg) File "/usr/lib/python3.12/site-packages/qtconsole/jupyter_widget.py", line 176, in _handle_complete_reply self._complete_with_items(cursor, matches) File "/usr/lib/python3.12/site-packages/qtconsole/console_widget.py", line 1090, in _complete_with_items self._completion_widget.show_items(cursor, items, File "/usr/lib/python3.12/site-packages/qtconsole/completion_html.py", line 315, in show_items items_m, ci = compute_item_matrix(items, empty=" ", displaywidth=displaywidth) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: compute_item_matrix() got an unexpected keyword argument 'displaywidth' Local variables in innermost frame: self: <qtconsole.completion_html.CompletionHtml object at 0x7fc82380b380> cursor: <PyQt5.QtGui.QTextCursor object at 0x7fc81bfadfd0> items: ['abs', 'all', 'any', 'ascii', 'assert', 'async', 'await', '%alias', '%alias_magic', '%autoawait', '%autocall', '%automagic', '%autosave'] prefix_length: 0 width: 664.0 char_width: 8 displaywidth: 82
Created attachment 2019448 [details] File: cpuinfo
Created attachment 2019449 [details] File: os_info
Created attachment 2019450 [details] File: backtrace
The linked commit is included in 5.5.1. We have already updated to 5.5.1 in Fedora 40+. Perhaps we can do that on Fedora 39 as well.
FEDORA-2024-909a06aba9 (python-qtconsole-5.5.1-1.fc39) has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-909a06aba9
FEDORA-2024-909a06aba9 has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-909a06aba9` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-909a06aba9 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-909a06aba9 (python-qtconsole-5.5.1-1.fc39) has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.