httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
33.78k stars 3.68k forks source link

Current 'requests' release breaks httpie #339

Closed mverteuil closed 9 years ago

mverteuil commented 9 years ago

Please change the setup.py to pin against the latest version of requests that is compatible instead of letting requests move up to 2.6.0 (or later) which breaks httpie.

I know that requests works @ 2.3.0, but later versions may be compatible too.

mverteuil commented 9 years ago

For reference, the traceback seen with requests 2.6.0 is:

 ❯ http                                                                                                                                                                                    [3:52:36 pm]
Traceback (most recent call last):
  File "/usr/local/bin/http", line 7, in <module>
    from httpie.__main__ import main
  File "/usr/local/lib/python2.7/site-packages/httpie/__main__.py", line 6, in <module>
    from .core import main
  File "/usr/local/lib/python2.7/site-packages/httpie/core.py", line 21, in <module>
    from .compat import str, is_py3
  File "/usr/local/lib/python2.7/site-packages/httpie/compat.py", line 6, in <module>
    from requests.compat import (
ImportError: cannot import name is_windows
jkbrzt commented 9 years ago

This problem should be fixed in the latest version of HTTPie (0.9.2).

mverteuil commented 9 years ago

Sweet, thanks :) On Tue, Apr 14, 2015 at 5:17 PM Jakub Roztočil notifications@github.com wrote:

This problem should be fixed in the latest version of HTTPie (0.9.2).

— Reply to this email directly or view it on GitHub https://github.com/jakubroztocil/httpie/issues/339#issuecomment-93064973 .