Ubuntu server 20.x install error

I have an error when i go to install senaite

ERROR

(senaite) limsadmin@labworxsen:~/senaitelims$ PYTHONHTTPSVERIFY=0 buildout
Unused options for buildout: 'deprecation-warnings'.
Installing instance.
Getting distribution for 'Pillow==5.1.0'.
Single threaded build, not installing mp_compile:1 processes
warning: no files found matching '*.c'
warning: no files found matching '*.h'
warning: no files found matching '*.sh'
no previously-included directories found matching 'docs/_static'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.codecov.yml'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching '.travis'
warning: no previously-included files found matching '.travis/*'
warning: no previously-included files found matching 'build_children.sh'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution


The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.

Please see the install instructions at:
   https://pillow.readthedocs.io/en/latest/installation.html

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 2312, in main
**kw
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 412, in run
self.easy_install(spec, not self.no_deps)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 654, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 699, in install_item
dists = self.install_eggs(spec, download, tmpdir)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 884, in install_eggs
return self.build_and_install(setup_script, setup_base)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1152, in build_and_install
self.run_setup(setup_script, setup_base, args)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1138, in run_setup
run_setup(setup_script, args)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/sandbox.py", line 253, in run_setup
raise
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
yield
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/sandbox.py", line 166, in save_modules
saved_exc.resume()
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/sandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
yield
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
  File "/tmp/easy_install-uLJIjs/Pillow-5.1.0/setup.py", line 806, in <module>
setuptools.sandbox.UnpickleableException: RequiredDependencyException('\n\nThe headers or library files could not be found for jpeg,\na required dependency when compiling Pillow from source.\n\nPlease see the install instructions at:\n   https://pillow.readthedocs.io/en/latest/installation.html\n\n',)
An error occurred when trying to install /home/senaite/buildout-cache/downloads/dist/Pillow-5.1.0.tar.gz. Look above this message for any errors that were output by easy_install.
While:
  Installing instance.
  Getting distribution for 'Pillow==5.1.0'.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/zc/buildout/buildout.py", line 2174, in main
getattr(buildout, command)(args)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/zc/buildout/buildout.py", line 817, in install
installed_files = self[part]._call(recipe.install)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1603, in _call
return f()
  File "/home/senaite/buildout-cache/eggs/cp27mu/plone.recipe.zope2instance-6.8.3-py2.7.egg/plone/recipe/zope2instance/recipe.py", line 146, in install
installed.extend(self.install_scripts())
  File "/home/senaite/buildout-cache/eggs/cp27mu/plone.recipe.zope2instance-6.8.3-py2.7.egg/plone/recipe/zope2instance/recipe.py", line 865, in install_scripts
requirements, ws = self.egg.working_set(['plone.recipe.zope2instance'])
  File "/home/senaite/buildout-cache/eggs/cp27mu/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/cp27mu/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 "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 957, in install
return installer.install(specs, working_set)
  File "/home/senaite/miniconda2/envs/senaite/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 682, in install
for dist in self._get_dist(requirement, ws):
  File "/home/senaite/miniconda2/envs/senaite/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 "/home/senaite/miniconda2/envs/senaite/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
(senaite) limsadmin@labworxsen:~/senaitelims$

Here is my BUILDOUT
# Note that versions specified here will override those specified earlier
# in the configuration, including those from the Plone and Zope version
# config files.
#
[versions]
# other pins not in plone
plone.recipe.unifiedinstaller = 5.2b1
buildout.sanitycheck = 1.0.2
collective.recipe.backup = 4.1.0

zc.buildout =
setuptools =
Pillow = 5.1.0
cssselect2 = 0.2.2
soupsieve = 1.9.5
werkzeug==1.0.1

# only for Windows
nt-svcutils = 2.13.0

Make sure you have the system packages installed: see

1 Like

Got it working late lastnight, thank you so much