httpie requires requests < 1.0, raring ships with 1.1.0

Bug #1213247 reported by Brian Moyles on 2013-08-16
80
This bug affects 17 people
Affects Status Importance Assigned to Milestone
httpie (Ubuntu)
Undecided
Unassigned

Bug Description

httpie has a dependency on requests > 0.10.1 but < 1.0. Raring ships with requests 1.1.0. The httpie deb doesn't declare a dependency on any specific version of requests, so everything installs clean.

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=13.04
DISTRIB_CODENAME=raring
DISTRIB_DESCRIPTION="Ubuntu 13.04"

# apt-get install httpie
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  python-pygments
Suggested packages:
  ttf-bitstream-vera
The following NEW packages will be installed:
  httpie python-pygments
0 upgraded, 2 newly installed, 0 to remove and 15 not upgraded.
Need to get 579 kB of archives.
After this operation, 3,096 kB of additional disk space will be used.
Do you want to continue [Y/n]? yes
Get:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ raring/main python-pygments all 1.6+dfsg-1 [529 kB]
Get:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ raring/universe httpie amd64 0.3.1-1 [49.2 kB]
Fetched 579 kB in 0s (2,856 kB/s)
Selecting previously unselected package python-pygments.
(Reading database ... 77295 files and directories currently installed.)
Unpacking python-pygments (from .../python-pygments_1.6+dfsg-1_all.deb) ...
Selecting previously unselected package httpie.
Unpacking httpie (from .../httpie_0.3.1-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up python-pygments (1.6+dfsg-1) ...
Setting up httpie (0.3.1-1) ...

# http
Traceback (most recent call last):
  File "/usr/bin/http", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2807, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 594, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests>=0.10.1,<1.0

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in httpie (Ubuntu):
status: New → Confirmed
Seb Bonnard (sebmansfeld) wrote :

Hi, i have the same pb. with ubuntu saucy :

$ lsb_release -sr
13.10
$ http
Traceback (most recent call last):
  File "/usr/bin/http", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2809, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 594, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests>=0.10.1,<1.0

In the meantime this bug is studied, is there a workaround ?

Seb.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers