Closed tristanlatr closed 3 years ago
Thanks for reporting. It looks like you are using Python 2.7, which is no longer supported. Please upgrade to Python 3.
@kislyuk Yes I'm using python2.7 because some software are not ported to python3 and probably never will be.
I would be very surprised if Red Hat removes python2.7 from their distribution within the next 10 years, so it's still really alive to me! Also your setup.py state that python 2.7 is supported by this package, this is why I opened this issue :-)
Thanks for your help!
If I understand correctly, this: (in the setup.py
)
packages=find_packages(exclude=['test']),
Is not supported by Python2.7.
I believe, this would work exactly the same and will be compatible with python2.7
packages=['argcomplete'],
Tell me what you think @kislyuk .
Thanks
The error that you see actually comes from a dependency of argcomplete called importlib-metadata. You can install an older version of that package that is compatible with Python 2.7 to avoid this issue. A quick check indicates that version 2.1.1 is the last version of that library compatible with Python 2.7: https://pypi.org/project/importlib-metadata/2.1.1/ so you can pip install importlib-metadata==2.1.1
followed by pip install argcomplete
and it should work.
While we won't go out of our way to drop existing Python 2.7 support yet, we also will not make any effort to support it. So nothing will be done to accommodate Python 2.7 specific issues at this point.
Hello, I' m running into this issue when trying to install argcomplete on Kali's Python2.7.
Any help would be much appreciated, thanks!
Full stack trace: