Bug 1529926
Summary: | using tab-completion for fedpkg crashes python3-argcomplete | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Fabio Valentini <decathorpe> |
Component: | python-argcomplete | Assignee: | Miro Hrončok <mhroncok> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 27 | CC: | cqi, dbmacartney, decathorpe, dennis, dominik, gspurgeon, igor.raits, jkeating, loganjerry, lsedlar, mhroncok, pbabinca, s, steve.traylen |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-08-20 21:25:28 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Fabio Valentini
2017-12-31 08:26:03 UTC
So far, there is no Python 3 package for fedpkg. It is only distributed in Python 2 package. I have no idea how python-argcomplete works, we also only provide bash and zsh autocomplete script. I know, which is why I am baffled that installing a completely unrelated package suddenly produces these strange crashes when using fedpkg. As I said, I couldn't find any code that could cause this issue - I just thought that someone else might be smarter than me and find something. Hi Fabio, what do you mean by "installing a completely unrelated package suddenly produces these strange crashes when using fedpkg."? Can you give the steps you did to reproduce this issue? I mean this: fedpkg is installed, python3-argcomplete is not: everything works fine fedpkg is installed, python3-argcomplete is also installed: I get crashes during tab completion for fedpkg commands Since fedpkg is a python2 package, python3-argcomplete obviously is a python3 package, and fedpkg isn't even using the argcomplete package, I consider those 2 completely unrelated packages, where installing one causes crashes when using the other - which is why I find this to be a strange error. I don't even get error messages on the terminal when setting PYTHONWARNINGS, PYTHONDEBUG and PYTHONVERBOSE flags. Upon further investigation, it looks like this is an error in the way argcomplete looks for completions (with the python-argcomplete-check-easy-install-script script): It always fall back to trying to import the package, and since fedpkg is a python2 application it fails because it wants to import a python3 package named fedpkg. So, I'm reassigning this to the python-argcomplete package ... Thanks for your help. Same here. Additionally, ABRT is unable to report it, saying the report data is invalid. I cannot reproduce this in mock and on my system fedpkg is already python3 driven. Can you still reproduce this? The script has: if line1.startswith('#') and ('py' in line1 or 'Py' in line1): We could patch it use: if line1.startswith('#') and ('/usr/bin/python3' in line1): And that should do it. Correction, fedpkg doesn't have PYTHON_ARGCOMPLETE_OK any more. It looks like I can't reproduce this issue anymore with the latest fedpkg and python-argcomplete packages from fedora 28/updates-testing. I think we can close this bug. I'll re-open it if it happens again. Thanks :) |