Package: httpie
Version: 0.9.2-0.1
Severity: normal

Hi,

Thank you for maintaining httpie!

httpie depends on `python-requests` but not on a specific version of
that module.
However, installing and running httpie when only an old version (2.3) of
python-requests is installed on the system results in the error shown
below.
I believe this to be related to the bug fix mentioned in [1].
Upgrading python-requests to 2.7.0 fixed the issue.
Therefore, I assume that requiring a python-requests version of >= 2.5.2
should avoid this problem.

All the Best,
Raphael

[1] http://docs.python-requests.org/en/latest/community/updates/#id8


$ http example.com
Traceback (most recent call last):
  File "/usr/bin/http", line 9, in <module>
    load_entry_point('httpie==0.9.2', 'console_scripts', 'http')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 558, 
in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2682, 
in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2355, 
in load
    return self.resolve()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2361, 
in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/dist-packages/httpie/__main__.py", line 6, in 
<module>
    from .core import main
  File "/usr/lib/python2.7/dist-packages/httpie/core.py", line 22, in <module>
    from httpie.client import get_response
  File "/usr/lib/python2.7/dist-packages/httpie/client.py", line 6, in <module>
    from requests.packages import urllib3
ImportError: No module named packages

Reply via email to