Granitosaurus / xonsh-click-tabcomplete

Xonsh shell tab completion for python applications based on click
GNU General Public License v3.0
3 stars 0 forks source link

xonsh-click-tabcomplete uses pip internal API ... and it's gone now #1

Open Achimh3011 opened 6 years ago

Achimh3011 commented 6 years ago

Hi, with Version 10 pip has removed internal APIs from export (as previously announced).

Starting xonsh with xonsh-click-tabcomplete and a current pip (≥10.0) now yields

pip removed `get_installed_distributions`

Workaround is downgrade to 9.0.3:

xpip install pip==9.0.3

(but it comes back after each upgrade of course...)

Happens to other packages as well:

(Accidentally filed https://github.com/xonsh/xonsh/issues/2637 for the problem, closed it now)

michaelaye commented 5 years ago

Is this issue creating this DepWarning when loading click_tabcomplete ?

$ xonsh                                                                              (base)
<unknown>:1: DeprecationWarning: invalid escape sequence \w
xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
AttributeError: module 'pip' has no attribute 'get_installed_distributions'
Achimh3011 commented 5 years ago

Yes, that's the one.