Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#19805 closed Bug (duplicate)

Required trailing slash on tarball URLs breaks pip

Reported by: James Aylett Owned by: nobody
Component: * Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description ends in a slash. Without a slash, the URL returns 404 rather than the redirect to the actual tarball. Unfortunately, pip seems to remove the trailing slash before fetching the URL. (I haven't upgrade pip from my distro version—this is on Ubuntu 12.10—and it definitely worked as little as a few weeks ago.) Manually resolving the redirect yields a URL that pip handles quite happily.

user@ubuntu:~$ virtualenv --system-site-packages ENV
user@ubuntu:~$ ENV/bin/pip --version
pip 1.1 from /home/user/ENV/lib/python2.7/site-packages/pip-1.1-py2.7.egg (python 2.7)
user@ubuntu:~$ ENV/bin/pip install
  HTTP error 404 while getting
  Could not install requirement because of error HTTP Error 404: NOT FOUND
Could not install requirement because of HTTP error HTTP Error 404: NOT FOUND for URL
Storing complete log in /home/user/.pip/pip.log
user@ubuntu:~$ ENV/bin/pip install
  Downloading Django-1.4.3.tar.gz (7.7Mb): 7.7Mb downloaded
  Running egg_info for package from


Change History (2)

comment:1 Changed 6 years ago by Aymeric Augustin

Resolution: duplicate
Status: newclosed

Dupe of #19772.

I've deployed the patch on the server while we're waiting for 1.5rc2. Does it work for you now?

Is there any particular reason to use the tarball URL rather than pip install Django==1.4.3?

comment:2 Changed 6 years ago by James Aylett

Works fine. As in the duplicate ticket, I was actually using the URL for the 1.5rc, but for some reason I didn't use that in my bug report. (Possibly I assumed it would disappear at 1.5 final?)

Note: See TracTickets for help on using tickets.
Back to Top