Installing senaite lims on ubuntu 18 or 20

Hi all,

My name is James and I am new to this community. I’ve been trying to install senaite lims (for evaluation) on one of my servers but I haven’t been successful. I am using the notes on Installation · SENAITE but I haven’t been successful. When I follow all the steps and start senaite on port 8080, I get the plone webpage

Are there other step by step notes that I could use to install this successfully? There used to be an ansible playbook that made this easier, if this is still available how can I get it? I didn’t see the playbook on github.

James

These are errors I am getting. Your help is highly appreciated
Got Zope2 2.13.28.
Getting distribution for ‘ZODB3==3.10.7’.
In file included from src/BTrees/BTreeModuleTemplate.c:394:0,
from src/BTrees/_IIBTree.c:34:
src/BTrees/BucketTemplate.c: In function ‘bucket_traverse’:
src/BTrees/BucketTemplate.c:1627:12: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
int i, len;
^~~
In file included from src/BTrees/BTreeModuleTemplate.c:394:0,
from src/BTrees/_IFBTree.c:34:
src/BTrees/BucketTemplate.c: In function ‘bucket_traverse’:
src/BTrees/BucketTemplate.c:1627:12: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
int i, len;
^~~
In file included from src/BTrees/BTreeModuleTemplate.c:394:0,
from src/BTrees/_fsBTree.c:83:
src/BTrees/BucketTemplate.c: In function ‘bucket_traverse’:
src/BTrees/BucketTemplate.c:1627:12: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
int i, len;
^~~
In file included from src/BTrees/BTreeModuleTemplate.c:394:0,
from src/BTrees/_LLBTree.c:36:
src/BTrees/BucketTemplate.c: In function ‘bucket_traverse’:
src/BTrees/BucketTemplate.c:1627:12: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
int i, len;
^~~
In file included from src/BTrees/BTreeModuleTemplate.c:394:0,
from src/BTrees/_LFBTree.c:36:
src/BTrees/BucketTemplate.c: In function ‘bucket_traverse’:
src/BTrees/BucketTemplate.c:1627:12: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
int i, len;
^~~
Got ZODB3 3.10.7.

Traceback (most recent call last):
File “”, line 1, in
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-dzjC2f/Pillow-5.1.0/setup.py”, line 806, in
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/senaitelims/eggs/plone.recipe.zope2instance-4.4.0-py2.7.egg/plone/recipe/zope2instance/init.py”, line 139, in install
installed.extend(self.install_scripts())
File “/home/senaite/senaitelims/eggs/plone.recipe.zope2instance-4.4.0-py2.7.egg/plone/recipe/zope2instance/init.py”, line 638, in install_scripts
requirements, ws = self.egg.working_set([‘plone.recipe.zope2instance’])
File “/home/senaite/senaitelims/eggs/zc.recipe.egg-1.3.2-py2.7.egg/zc/recipe/egg/egg.py”, line 101, in working_set
**kw)
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

I’m not 100% sure, but it looks like you may be missing some system dependencies for Pillow (which is part of Plone and the Required Libraries for Plone.

If you’re on Ubuntu, try installing these 13 packages on your system according to the Pillow Installation Requirements (follow link for other OSs), and then try re-running Buildout.

sudo apt-get install libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev
sudo apt-get install libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev 
sudo apt-get install tk8.6-dev python3-tk libharfbuzz-dev libfribidi-dev libxcb1-dev

Thank you! I did install your recommended packages but it didn’t work.

I went ahead and installed this docker image ramonski/senaite. It seems to work, I am now stuck on where to get the metadata and how to install it.

Any ideas is highly appreciated.

James

Metadata as in Tests, Methods, and Instruments? Most of that will be customized to your particular lab. You can add it via the setup menu (gear icon). Given that it is on Docker though, you will need to make sure you are managing the database as a Docker volume.

You can check out a bit about Backing up Plone Databases to learn which files are relevant. Senaite uses Plone’s default database setup for Zope.

Plone also offers a CLI for interacting with it programatically. Senaite has an API to make managing the site content easier too. The documentation assumes you are familiar with some Plone and Python concepts.