Setuptools version conflict while installing docker image


Dear community,
I am trying out the docker image by ramonski and wanted to add the addon.
For this i tried with a bash session in the docker container, adding “” to “buildout.cfg” and “bin//buildout”.
But it fails with an error:

senaite@9b0764535e3b:~/senaitelims$ bin/buildout
Getting section instance.
Initializing section instance.
Loading zc.buildout recipe entry plone.recipe.zope2instance:default.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File “/usr/local/lib/python2.7/site-packages/zc/buildout/”, line 2174, in main
getattr(buildout, command)(args)
File “/usr/local/lib/python2.7/site-packages/zc/buildout/”, line 701, in install
[self[part][‘recipe’] for part in install_parts]
File “/usr/local/lib/python2.7/site-packages/zc/buildout/”, line 1324, in getitem
File “/usr/local/lib/python2.7/site-packages/zc/buildout/”, line 1432, in _initialize
File “/usr/local/lib/python2.7/site-packages/zc/buildout/”, line 1438, in initialize
recipe_class = _install_and_load(reqs, ‘zc.buildout’, entry, buildout)
File “/usr/local/lib/python2.7/site-packages/zc/buildout/”, line 1393, in _install_and_load
req.project_name, group, entry)
File “build/bdist.linux-x86_64/egg/pkg_resources/”, line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “build/bdist.linux-x86_64/egg/pkg_resources/”, line 2631, in load_entry_point
return ep.load()
File “build/bdist.linux-x86_64/egg/pkg_resources/”, line 2290, in load
self.require(*args, **kwargs)
File “build/bdist.linux-x86_64/egg/pkg_resources/”, line 2307, in require
items = working_set.resolve(reqs, env, installer)
File “build/bdist.linux-x86_64/egg/pkg_resources/”, line 854, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
ContextualVersionConflict: (setuptools 33.1.1 (/home/senaite/buildout-cache/eggs/setuptools-33.1.1-py2.7.egg), Requirement.parse(‘setuptools>=36.2’), set([‘Zope’]))

What am I doing wrong?
What is the intended way to add the addon?
How will this process be adapted to the docker image?



This is an installation problem, has nothing to do with (I’ve changed the title of the post). There is a version conflict with setuptools: the version you have installed is 33.1.1 (which is the correct one), but one of the packages requires 36.2. You have to figure out which is the package that depends on setuptools >=36.2.


Thing is, I did just Fire up the existing docker image and logged in.
I then Added to the buildout.cfg and ran buildout.
So I did Not change others packages.
It seems what I did was somehow wrong, because it didnt Work.

What is the intended way of adding

Thanks again.


I was able to activate now by starting the docker container with:

$ docker run --name=instance1 --link=zeo -e ZEO_ADDRESS=zeo:8080 -p 8080:8080
-e ADDONS=“” senaite

This created a “custom.cfg” and reran buildout.

The storage addon was activated right away.