On Aug 23, 2010, at 1:26 PM, Gary Poster wrote:

> 
> On Aug 23, 2010, at 12:36 PM, Andreas Jung wrote:
> 
>> zc.recipe.egg 1.3.0 fails badly with
>> 
>> While:
>> Installing supervisor.
>> Traceback (most recent call last):
>> File
>> "/Users/ajung/sandboxes/occ/eggs/zc.buildout-1.5.0-py2.6.egg/zc/buildout/buildout.py",
>> line 1784, in main
>>   getattr(buildout, command)(args)
>> File
>> "/Users/ajung/sandboxes/occ/eggs/zc.buildout-1.5.0-py2.6.egg/zc/buildout/buildout.py",
>> line 569, in install
>>   installed_files = self[part]._call(recipe.install)
>> File
>> "/Users/ajung/sandboxes/occ/eggs/zc.buildout-1.5.0-py2.6.egg/zc/buildout/buildout.py",
>> line 1276, in _call
>>   return f()
>> File
>> "/Users/ajung/sandboxes/occ/eggs/collective.recipe.supervisor-0.12-py2.6.egg/collective/recipe/supervisor/__init__.py",
>> line 202, in install
>>   extra_eggs + \
>> File
>> "/Users/ajung/sandboxes/occ/eggs/zc.recipe.egg-1.3.0-py2.6.egg/zc/recipe/egg/egg.py",
>> line 159, in install
>>   if options.query_bool('dependent-scripts', 'false'):
>> AttributeError: 'dict' object has no attribute 'query_bool'
>> 
>> Not sure who is in charge and where the related bug tracker is!?
> 
> zc.recipe.egg 1.3.0 requires zc.buildout 1.5.0 or higher, as it states it 
> setup.py.  Are you using zc.buildout 1.5.0?  If you are, then this is a bug 
> in zc.recipe.egg (that I don't understand on the face of it; all tests pass, 
> and Options objects now have a "query_bool" method).
> 
> If you are not forced to use zc.buildout 1.5.0 somehow, I don't know what the 
> error there is.

Sorry, the traceback shows you are using zc.buildout 1.5.0.

I take it collective.recipe.supervisor does not use an Options object from 
zc.buildout?  That is what is passed to zc.recipe.egg normally.  Options 
objects now have a query_bool method, which reduces a lot of duplication of 
code acrorss recipes.

I'd argue that this is a bug in the collective.recipe.supervisor, but I knew at 
the start that zc.recipe.egg usage was likely to be fragile.  I'll put together 
a more-backwards-compatible change later, hopefully today.

Gary
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to