Ozone HIS on Docker - Senaite build failure

Hi community, I’m trying to start Ozone HIS on Docker. I followed all the steps as listed on Github. Upon docker-compose -p $DISTRO_GROUP up, after a long time building and executing, it fails as below. Please advise on how to proceed. Thanks.

Getting distribution for 'Pyphen>=0.8'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
error: Couldn't find a setup script in /home/senaite/buildout-cache/downloads/dist/pyphen-0.12.0.tar.gz
An error occurred when trying to install /home/senaite/buildout-cache/downloads/dist/pyphen-0.12.0.tar.gz. Look above this message for any errors that were output by easy_install.
While:
  Installing instance.
  Getting distribution for 'Pyphen>=0.8'.

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 2174, in main
    getattr(buildout, command)(args)
  File "/usr/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 817, in install
    installed_files = self[part]._call(recipe.install)
  File "/usr/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1603, in _call
    return f()
  File "/home/senaite/buildout-cache/eggs/plone.recipe.zope2instance-6.8.1-py2.7.egg/plone/recipe/zope2instance/recipe.py", line 146, in install
    installed.extend(self.install_scripts())
  File "/home/senaite/buildout-cache/eggs/plone.recipe.zope2instance-6.8.1-py2.7.egg/plone/recipe/zope2instance/recipe.py", line 867, in install_scripts
    requirements, ws = self.egg.working_set(['plone.recipe.zope2instance'])
  File "/home/senaite/buildout-cache/eggs/zc.recipe.egg-2.0.7-py2.7.egg/zc/recipe/egg/egg.py", line 87, in working_set
    allow_unknown_extras=bool_option(buildout_section, 'allow-unknown-extras')
  File "/home/senaite/buildout-cache/eggs/zc.recipe.egg-2.0.7-py2.7.egg/zc/recipe/egg/egg.py", line 168, in _working_set
    allow_unknown_extras=allow_unknown_extras)
  File "/usr/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 957, in install
    return installer.install(specs, working_set)
  File "/usr/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 730, in install
    for dist in self._get_dist(req, ws):
  File "/usr/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 574, in _get_dist
    dists = [_move_to_eggs_dir_and_compile(dist, self._dest)]
  File "/usr/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 1745, in _move_to_eggs_dir_and_compile
    [tmp_loc] = glob.glob(os.path.join(tmp_dest, '*'))
ValueError: need more than 0 values to unpack
The command '/bin/sh -c pip install -r requirements.txt     && buildout -c develop.cfg    && ln -s $SENAITE_FILESTORAGE/ var/filestorage     && ln -s $SENAITE_BLOBSTORAGE/ var/blobstorage     && chown -R senaite:senaite $SENAITE_HOME $SENAITE_DATA' returned a non-zero code: 1
ERROR: Service 'senaite' failed to build : Build failed

Hi @feamcor,

I also stumbled across this problem and they told me its on their plan to fix it.

As a workaround (!), i was able to mitigate this problem by adding pyphen==0.10.0 into ozone-docker/senaite/requirements.txt (i tested this on my branch)

Maybe it helps you until the official fix i released with their new demo setup script, which is currently in review.

BR, Johannes

1 Like