Goal: Following Training Chapter 17 trying to get Addon to run by restarting system. Error occurs and the Addon for a new Content Type does not show up in the Plone Instance. Site seems to be untouched and operable.
Error:
Installing instance.
While:
Installing instance.
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/buildout.py", line 2127, in main
getattr(buildout, command)(args)
File "/usr/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 797, in install
installed_files = self[part]._call(recipe.install)
File "/usr/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1557, in _call
return f()
File "/plone/buildout-cache/eggs/plone.recipe.zope2instance-4.4.1-py2-none-any.ovo/plone/recipe/zope2instance/__init__.py", line 169, in install
installed.extend(self.install_scripts())
File "/plone/buildout-cache/eggs/plone.recipe.zope2instance-4.4.1-py2-none-any.ovo/plone/recipe/zope2instance/__init__.py", line 668, in install_scripts
requirements, ws = self.egg.working_set(['plone.recipe.zope2instance'])
File "/plone/buildout-cache/eggs/zc.recipe.egg-2.0.5-py2.7.egg/zc/recipe/egg/egg.py", line 84, in working_set
allow_hosts=self.allow_hosts,
File "/plone/buildout-cache/eggs/zc.recipe.egg-2.0.5-py2.7.egg/zc/recipe/egg/egg.py", line 162, in _working_set
allow_hosts=allow_hosts)
File "/usr/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 924, in install
return installer.install(specs, working_set)
File "/usr/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 670, in install
for spec in specs]
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2986, in parse
req, = parse_requirements(s)
ValueError: need more than 0 values to unpack
root@44aecad5ccf0:/plone/instance# ```
*Command Run to Get Error:*
```gosu plone buildout -c site.cfg```
*Environment We are Using: Docker container. Set up with the following files and Commands:*
_Dockerfile:_
```FROM plone:5.1
COPY site.cfg /plone/instance/
RUN gosu plone buildout -c site.cfg
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y vim```
_Site.cfg_
```[buildout]
extends = buildout.cfg
eggs +=
plone.app.mosaic```
_docker-compose.yml:_
```version: "2"
services:
plone:
build: .
volumes:
- data:/data
ports:
- "8080:8080"
volumes:
data:
Commands Run In directory to create container:
$docker run -p 8080:8080 custom-plone-image
ssh into container at plone/instance
In Container:
$ ../bin/mrbob -O ploneconf.site bobtemplates.plone:addon
follow instructions from : https://training.plone.org/5/mastering-plone/eggs1.html
Add XML Files as directed in :
https://training.plone.org/5/mastering-plone/export_code.html
And then have to alter the plone/instance/src/buildout.cfg
extends =
buildout-base.cfg
extensions =
buildout.wheel
effective-user = plone
buildout-user = plone
var-dir=/data
user=admin:admin
find-links = ${buildout:directory}/src/ploneconf.site
index = https://pypi.python.org/simple/
#auto-checkout +=
#clear ploneconf.site
parts +=
zeo
mrbob
eggs =
ploneconf.site
#develop =
#src/ploneconf.site
#test-eggs +=
# ploneconf.site [test]
[client1]
recipe =
[zeo]
<= zeoserver_base
recipe = plone.recipe.zeoserver
zeo-address = 8080
# Requires gcc, thus install it on image build
[mrbob]
recipe = zc.recipe.egg
eggs =
mr.bob
bobtemplates.plone
[versions]
setuptools =
zc.buildout =
# The following part definition lists the versions picked:
Pillow = 5.3.0
buildout.wheel = 0.2.0
plone.recipe.command = 1.1
plone.recipe.precompiler = 0.6
collective.recipe.backup = 4.0.1
Unidecode = 0.04.16
MarkupSafe = 1.0
bobtemplates.plone = 3.5.1
mr.bob = 0.1.2
regex = 2018.8.29
# Required by:
# bobtemplates.plone==3.5.1
case-conversion = 2.1.0
# Required by:
# bobtemplates.plone==3.5.1
python-slugify = 1.2.6
Products.DocFinderTab = 1.0.5
collective.checkdocs = 0.2
zest.pocompile = 1.4
# Required by:
# bobtemplates.plone==3.5.1
# zest.releaser==6.15.0
colorama = 0.4.0
[sources]
ploneconf.site = ${buildout:directory}/src/ploneconf.site```