setup.py fails trying to download setuptools-0.6c8-py2.6.egg from a dead link (old ez-setup.py)

Bug #406366 reported by blep
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpadlib
Fix Released
High
Unassigned

Bug Description

Running from the latest released tarball:
launchpadlib-1.5.1>python setup.py install

Fails with:
---
Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c8-py2.6.egg
Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    ez_setup.use_setuptools()
  File "C:\perso\tc\devtools\sf-tarball-sync\launchpadlib-1.5.1\ez_setup.py", line 95, in use_setuptools
    return do_download()
  File "C:\perso\tc\devtools\sf-tarball-sync\launchpadlib-1.5.1\ez_setup.py", line 89, in do_download
    egg = download_setuptools(version, download_base, to_dir, download_delay)
  File "C:\perso\tc\devtools\sf-tarball-sync\launchpadlib-1.5.1\ez_setup.py", line 150, in download_setuptools
    src = urllib2.urlopen(url)
  File "c:\Python26\lib\urllib2.py", line 124, in urlopen
    return _opener.open(url, data, timeout)
  File "c:\Python26\lib\urllib2.py", line 389, in open
    response = meth(req, response)
  File "c:\Python26\lib\urllib2.py", line 502, in http_response
    'http', request, response, code, msg, hdrs)
  File "c:\Python26\lib\urllib2.py", line 427, in error
    return self._call_chain(*args)
  File "c:\Python26\lib\urllib2.py", line 361, in _call_chain
    result = func(*args)
  File "c:\Python26\lib\urllib2.py", line 510, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
---

Following the instruction, I tried to download the file manually in the browser but it seems that it no longer exist:
http://pypi.python.org/packages/2.6/s/setuptools/
Only the file:
setuptools-0.6c9-py2.6.egg
exists. (c9 instead of c8).

Downloading the above file and placing it in the directory does not work.

Tags: easy
Revision history for this message
blep (blep) wrote :

I found a work-around. Replacing ez_setup.y with the latest version from:
http://peak.telecommunity.com/dist/ez_setup.py
solved the problem.

Updating the installation instruction with the above work-around.

Changed in launchpadlib:
importance: Undecided → High
status: New → Fix Committed
status: Fix Committed → Triaged
summary: setup.py fails trying to download setuptools-0.6c8-py2.6.egg from a dead
- link
+ link (old ez-setup.py)
Revision history for this message
Robert Collins (lifeless) wrote :

There is a new ez-setup in the LP download cache.

tags: added: easy
Revision history for this message
Colin Watson (cjwatson) wrote :

launchpadlib hasn't used ez_setup.py at all since version 1.10.3. For local installation, use pip to install into a virtualenv instead, or use tox for local testing.

Changed in launchpadlib:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.