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
https://http-prompt.com
MIT License
8.96k stars 326 forks source link

Use latest version of prompt-toolkit #147

Closed oleynikandrey closed 3 years ago

oleynikandrey commented 5 years ago

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.
yitzikc commented 4 years ago

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
BoboTiG commented 3 years ago

Done with 69439599cac3ac243729ebe6be20b3964bb3a4dd.