Issue #5 invalid fails with pkg_resources.VersionConflict

Marius Gedminas
created an issue

Steps to reproduce:

$ virtualenv tmpenv
New python executable in tmpenv/bin/python
Installing setuptools............done.
Installing pip...............done.

$ wget

$ tmpenv/bin/python
Traceback (most recent call last):
  File "", line 78, in <module>
  File "<string>", line 151, in use_setuptools
  File "/tmp/tmpenv/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/", line 666, in require
  File "/tmp/tmpenv/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/", line 569, in resolve
pkg_resources.VersionConflict: (setuptools 0.6c11 (/tmp/tmpenv/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg), Requirement.parse('setuptools>=0.7b'))

What does is try to install distribute when it finds setuptools in the outer Python

    exec(urlopen('').read(), ez)
    setup_args = dict(to_dir=tmpeggs, download_delay=0, no_fake=True)

It looks like this might be the commit that introduced this problem (thanks to Troy J. Farrell for finding it).

As a workaround I can use virtualenv --distribute in step 1. But not every instance of this problem involves a virtualenv -- the Zope Windows buildbot is all red today, with similar errors, and there's no virtualenv in the picture.

Comments (4)

  1. Jason R. Coombs

    On second thought, I'm not sure where bugs should be filed. My original intention was to continue to maintain Distribute in the Distribute project. But I'm not sure that's the best choice. File bugs wherever they seem most appropriate and I'll adjust accordingly if necessary.

  2. Jason R. Coombs

    I've tried testing this against the latest distribute release, but I'm unable to confirm the fix. I ran the commands above against the latest distribute 0.6.45, but it fails because I don't have buildout.cfg in my current directory. I also looked at the the Zope buildbot, but I didn't understand the buildbot enough to determine if the problem is fixed. Please report in the distribute issue if the issue is not resolved.

  3. Marius Gedminas reporter

    Things appear to work fine with distribute 0.6.45. The bit about not finding a buildout.cfg is expected; previously bootstrap would fail before reaching that point.

    I only filed the issue here because I saw that commit, and assumed that was now being maintained as part of the new merged setuptools.

  4. Log in to comment