On Sat, Dec 12, 2009 at 2:56 PM, Reinout van Rees <[email protected]> wrote: > 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). >
Yes that's a problem introduced by 0.6.9. I have changed the way the DistributionNotFound() exception is raised. Unfortunately zc.buildout does a str(error) to grab the name of the distribution, leading to the problem you have I am reverting this change and releasing 0.6.10 so people are not confused. Then we can think about changing zc.buildout error handling. Cheers, _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
