Version-Release number of selected component: python3-argcomplete-1.9.4-2.fc30 Additional info: reporter: libreport-2.10.0 cmdline: python3.7 -m argcomplete._check_module '' crash_function: find exception_type: AttributeError executable: /usr/lib/python3.7/site-packages/argcomplete/_check_module.py interpreter: python3-3.7.2-7.fc30.x86_64 kernel: 5.0.0-300.fc30.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: _check_module.py:26:find:AttributeError: 'NoneType' object has no attribute 'has_location' Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/lib/python3.7/site-packages/argcomplete/_check_module.py", line 49, in <module> main() File "/usr/lib/python3.7/site-packages/argcomplete/_check_module.py", line 42, in main with open(find(sys.argv[1])) as f: File "/usr/lib/python3.7/site-packages/argcomplete/_check_module.py", line 26, in find if not spec.has_location: AttributeError: 'NoneType' object has no attribute 'has_location' Local variables in innermost frame: name: '' names: [''] spec: None Potential duplicate: bug 1601763
Created attachment 1544722 [details] File: backtrace
Created attachment 1544723 [details] File: cgroup
Created attachment 1544724 [details] File: cpuinfo
Created attachment 1544725 [details] File: environ
Created attachment 1544726 [details] File: mountinfo
Created attachment 1544727 [details] File: namespaces
Created attachment 1544728 [details] File: open_fds
How to reproduce this? Do you actually run the "python3.7 -m argcomplete._check_module ''" command? What is supposed to happen?
I've started this upstream yet until I know when this actually happens, I don't know what the proper fix is: https://github.com/kislyuk/argcomplete/pull/261
(In reply to Miro Hrončok from comment #8) > How to reproduce this? Do you actually run the "python3.7 -m > argcomplete._check_module ''" command? What is supposed to happen? Hi, sorry for the initial lack of information and context. I've only just been able to reproduce this. From a bash terminal session, I have typed 'python3.7 -m ' and then hit the tab key twice. From here gnome-abrt notifies me that "python-argcomplete quit unexpectedly". I can mostly reproduce this by error by entering 'python3.7 -m ' which results in the help dialogue output, then retyping 'python3.7 -m ' and pressing the tab key twice.
Additionally, when typing 'python3.7 -m ' in a bash shell and pressing the tab key twice, it outputs the entire contents of the working directory. I am admittedly very inexperienced with python but my assumption is that modules should be listed rather than the entire contents of the working directory.
*** Bug 1692895 has been marked as a duplicate of this bug. ***
Samuel, thanks for the input. I'm working with argcomplete upstream to change the code not to raise the ABRT reports - those are actually false positives.
python-argcomplete-1.9.5-1.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-22fbf54bf8
python-argcomplete-1.9.5-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-2dadb71ee7
python-argcomplete-1.9.5-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-22fbf54bf8
python-argcomplete-1.9.5-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-2dadb71ee7
python-argcomplete-1.9.5-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.
python-argcomplete-1.9.5-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.