httpie / http-prompt

An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie

Home Page:https://http-prompt.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use latest version of prompt-toolkit

oleynikandrey opened this issue · comments

ipython uses prompt-toolkit==2.0.7 which is not compatible with http-prompt==1.0.0, so I can't use both ipython and http-prompt in the same python environment.

http-prompt 1.0.0 has requirement prompt-toolkit<2.0.0,>=1.0.0, but you'll have prompt-toolkit 2.0.7 which is incompatible.

As a workaround, I was able to install boarnasia's branch directly:

pip3 install git+https://github.com/boarnasia/http-prompt@prompt-toolkit-2.0

It still appears to interfere with iPython, although it doesn't break it:

  Attempting uninstall: prompt-toolkit
    Found existing installation: prompt-toolkit 3.0.5
    Uninstalling prompt-toolkit-3.0.5:
      Successfully uninstalled prompt-toolkit-3.0.5