[Distutils] Problem with buildout and zc.recipe.cmmi

Reinout van Rees reinout at vanrees.org
Sat Dec 12 14:56:55 CET 2009


On 12/12/09 6:14 AM, Tres Seaver wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> James J Myers wrote:
>> Next try was to change buildout to use minitage.recipe.cmmi and that works!
>>
>> So it appears that something changed in zc.recipe.cmmi in December that
>> broke it.
>
> Unless you are using an SVN checkout of zc.recipe.cmmi, the latest
> release was 1.3.1, 2009-09-10.  zc.buildout 1.4.3 was released
> 2009-12-10, but its deltas don't appear to explain the behavior you report.

I'm also getting an error:

While:
   Installing.
   Getting section lxml.
   Initializing section lxml.
   Installing recipe z3c.recipe.staticlxml >= 0.6.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
   File 
"/private/var/folders/qC/qC6d69l0EDe-sx-yyKchqU+++TI/-Tmp-/tmpeuNbOC/zc.buildout-1.4.3-py2.5.egg/zc/buildout/buildout.py", 
line 1660, in main
   File 
"/private/var/folders/qC/qC6d69l0EDe-sx-yyKchqU+++TI/-Tmp-/tmpeuNbOC/zc.buildout-1.4.3-py2.5.egg/zc/buildout/buildout.py", 
line 416, in install
   File 
"/private/var/folders/qC/qC6d69l0EDe-sx-yyKchqU+++TI/-Tmp-/tmpeuNbOC/zc.buildout-1.4.3-py2.5.egg/zc/buildout/buildout.py", 
line 964, in __getitem__
   File 
"/private/var/folders/qC/qC6d69l0EDe-sx-yyKchqU+++TI/-Tmp-/tmpeuNbOC/zc.buildout-1.4.3-py2.5.egg/zc/buildout/buildout.py", 
line 1048, in _initialize
   File 
"/private/var/folders/qC/qC6d69l0EDe-sx-yyKchqU+++TI/-Tmp-/tmpeuNbOC/zc.buildout-1.4.3-py2.5.egg/zc/buildout/buildout.py", 
line 1004, in _install_and_load
   File 
"/private/var/folders/qC/qC6d69l0EDe-sx-yyKchqU+++TI/-Tmp-/tmpeuNbOC/zc.buildout-1.4.3-py2.5.egg/zc/buildout/easy_install.py", 
line 800, in install
   File 
"/private/var/folders/qC/qC6d69l0EDe-sx-yyKchqU+++TI/-Tmp-/tmpeuNbOC/zc.buildout-1.4.3-py2.5.egg/zc/buildout/easy_install.py", 
line 663, in install
   File 
"/private/var/folders/qC/qC6d69l0EDe-sx-yyKchqU+++TI/-Tmp-/tmpeuNbOC/zc.buildout-1.4.3-py2.5.egg/zc/buildout/easy_install.py", 
line 612, in _constrain
AttributeError: 'str' object has no attribute 'project_name'


I put a try/except in there and 'str' in this case is the string "The 
'zc.recipe.cmmi' distribution was not found on this system, and is 
required by this application.".

The staticlxml recipe uses zc.recipe.cmmi.


The path to zc.buildout that's in the traceback isn't correct either: it 
is simply a shared egg, definitively not something in a temp folder :-)


Weird... Well, I'm off cycling. I'll dig around a bit in zc.recipe.cmmi 
to see if it perhaps uses the basically one line in zc.buildout that 
changed with 1.4.3.

Another option: does it have to do with distribute 0.6.9 that was just 
released? I pinned zc.buildout to 1.4.3 to allow it to update distribute 
from 0.6.8 to 0.6.9 (that was what the buildout fix was for, otherwise 
you'd get an infinite recursion).


Reinout




-- 
Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org
Software developer at http://www.thehealthagency.com
"Military engineers build missiles. Civil engineers build targets"



More information about the Distutils-SIG mailing list