Description of problem: 1. launch a new terminal (such as gnome-terminal) 2. On new terminal, type $ koji <tab><tab> Then this backtrace occurrs (100% reproducible) koji-1.33.1-2.fc39.noarch python3-argcomplete-2.0.0-10.fc39.noarch Version-Release number of selected component: python3-argcomplete-2.0.0-10.fc39 Additional info: reporter: libreport-2.17.11 runlevel: N 5 interpreter: python3-3.12.0~rc1-1.fc39.x86_64 reason: __init__.py:287:__getitem__:KeyError: 'console_scripts' exception_type: StopIteration crash_function: __getitem__ cmdline: /usr/bin/python3 -m argcomplete._check_console_script /bin/koji type: Python3 kernel: 6.4.9-200.fc38.x86_64 cgroup: 0::/user.slice/user-500.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-df5ed674-d1c2-4411-876d-8022134f2db2.scope uid: 500 executable: /usr/lib/python3.12/site-packages/argcomplete/_check_console_script.py package: python3-argcomplete-2.0.0-10.fc39 Truncated backtrace: #1 [/usr/lib64/python3.12/importlib/metadata/__init__.py:285] __getitem__ Potential duplicate: bug 2231589
Created attachment 1983100 [details] File: environ
Created attachment 1983101 [details] File: mountinfo
Created attachment 1983102 [details] File: open_fds
Created attachment 1983103 [details] File: namespaces
Created attachment 1983104 [details] File: backtrace
Created attachment 1983105 [details] File: os_info
Created attachment 1983106 [details] File: cpuinfo
Looks like below? https://github.com/kislyuk/argcomplete/issues/435 https://github.com/kislyuk/argcomplete/pull/436
*** Bug 2231589 has been marked as a duplicate of this bug. ***
https://src.fedoraproject.org/rpms/python-argcomplete/pull-request/16 https://src.fedoraproject.org/rpms/python-argcomplete/pull-request/17
FEDORA-2023-530e9e4567 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-530e9e4567
FEDORA-2023-237c202647 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-237c202647
FEDORA-2023-237c202647 has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2023-530e9e4567 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.