An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/srv/Projects/test/plone/foo/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1946, in main
getattr(buildout, command)(args)
File "/srv/Projects/test/plone/foo/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 510, in install
[self[part]['recipe'] for part in install_parts]
File "/srv/Projects/test/plone/foo/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1098, in __getitem__
options._initialize()
File "/srv/Projects/test/plone/foo/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1202, in _initialize
self.initialize()
File "/srv/Projects/test/plone/foo/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1208, in initialize
recipe_class = _install_and_load(reqs, 'zc.buildout', entry, buildout)
File "/srv/Projects/test/plone/foo/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1162, in _install_and_load
allow_hosts=buildout._allow_hosts
File "/srv/Projects/test/plone/foo/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 844, in install
return installer.install(specs, working_set)
File "/srv/Projects/test/plone/foo/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 681, in install
for_buildout_run=for_buildout_run):
File "/srv/Projects/test/plone/foo/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 538, in _get_dist
ws.add(dist, replace=True)
TypeError: add() got an unexpected keyword argument 'replace'
If I try it without pins for setuptools and zc.buildout I am getting lots of version conflicts for setuptools and zc.buildout
I've been using zc.buildout 2.4.0 and setuptools 18.5. Newer versions of each would probably also work, but I know that I usually don't have problems with these.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/srv/Projects/test/plone/bar/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1987, in main
getattr(buildout, command)(args)
File "/srv/Projects/test/plone/bar/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 552, in install
[self[part]['recipe'] for part in install_parts]
File "/srv/Projects/test/plone/bar/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1137, in __getitem__
options._initialize()
File "/srv/Projects/test/plone/bar/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1241, in _initialize
self.initialize()
File "/srv/Projects/test/plone/bar/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1247, in initialize
recipe_class = _install_and_load(reqs, 'zc.buildout', entry, buildout)
File "/srv/Projects/test/plone/bar/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1201, in _install_and_load
allow_hosts=buildout._allow_hosts
File "/srv/Projects/test/plone/bar/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 848, in install
return installer.install(specs, working_set)
File "/srv/Projects/test/plone/bar/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 635, in install
for_buildout_run=for_buildout_run):
File "/srv/Projects/test/plone/bar/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 477, in _get_dist
dist, avail = self._satisfied(requirement)
File "/srv/Projects/test/plone/bar/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 234, in _satisfied
return None, self._obtain(req, source)
File "/srv/Projects/test/plone/bar/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 420, in _obtain
if _final_version(dist.parsed_version)
File "/srv/Projects/test/plone/bar/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 1407, in _final_version
return not parsed_version.is_prerelease
AttributeError: 'tuple' object has no attribute 'is_prerelease'
Hm, interesting, it is here still not working, even in a new dir I get errors:
Installing 'plone.recipe.zope2instance'.
We have no distributions for plone.recipe.zope2instance that satisfies 'plone.recipe.zope2instance==4.2.18'.
Could't load zc.buildout entry point default
from plone.recipe.zope2instance:
'tuple' object has no attribute 'is_prerelease'.
I will try later something else
Thanks, at least I know now, that it is not my buildout
I usually do this to debug buyildout problems: ./bin/python -m pdb ./bin/buildout
Now you are in a pdb and you cat set breakpoints and debug who what is happening there.
Anyway I usually pip install the latest zc.buildout (2.5.0, which has way better version conflict reporting) and the latest setuptools.
I still did not try the latest one (20.2.2) but other 20.x version were working fine.