Comment 1 for bug 410528

On Fri, Aug 7, 2009 at 7:49 PM, Erik Karulf<email address hidden> wrote:
> Public bug reported:
> I was using zc.buildout on a brand-new ubuntu machine when I was met
> with the following cryptic error message.
> 18:46 erik@fozzie % python
> Traceback (most recent call last):
>  File "", line 76, in <module>
>    ws.find(pkg_resources.Requirement.parse('setuptools')).location
> AttributeError: 'NoneType' object has no attribute 'location'
> Exit 1
> It turns out that I did not have the setuptools package installed.
> Would it be possible to catch and display the error in a more graceful
> way?

My guess is that setuptools is installed, but without it's egg info.
Were you using the system Python?

Can you import pkg_resources?

In any case, I *can* an a check for this situation. I shouldn't have to, but ...


Jim Fulton