Bootstrap doesn't work when the python-pkg-resources is installed in Debian systems

Bug #515398 reported by Tiberiu Ichim
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Buildout
New
Undecided
Unassigned

Bug Description

I'm trying to bootstrap a buildout on a newly installed Ubuntu Lucid Lynx system, and the bootstrap fails with:

# python2.4 bootstrap.py
Traceback (most recent call last):
  File "bootstrap.py", line 112, in ?
    PYTHONPATH=
AttributeError: 'NoneType' object has no attribute 'location'

The line where it fails is:

    assert os.spawnle(
        os.P_WAIT, sys.executable, quote (sys.executable),
        '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout' + VERSION,
        dict(os.environ,
            PYTHONPATH=
            ws.find(pkg_resources.Requirement.parse(requirement)).location
            ),
        ) == 0

I was able to solve the problem by removing the python-pkg-resources package. I think the bootstrap script, being able to import pkg_resources, assumes that I have Distribute or Setuptools installed, which is not the case.

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.