Unable to install

hi
I am trying too install senaite according to the instructions here

and this happens

(base) senaite@debian-stretch-2:~/Plone-4.3.19-UnifiedInstaller$ sudo ./install.sh standalone --target=/home/senaite --instance=senaitelims --password=admin

Root install method chosen. Will install for use by users:
ZEO & Client Daemons: plone_daemon
Code Resources & buildout: plone_buildout

Detailed installation log being written to /home/senaite/Plone-4.3.19-UnifiedInstaller/install.log
Installing Plone 4.3.19 at /home/senaite

Using useradd and groupadd to create users and groups.
‘plone_group’ already exists; no need to create it.
User ‘plone_daemon’ already exists. No need to create it.
Adding user plone_daemon to group plone_group.
User ‘plone_buildout’ already exists. No need to create it.
Adding user plone_buildout to group plone_group.
Skipping libjpeg build
Found existing buildout cache at /home/senaite/buildout-cache; skipping step.
Setting /home/senaite ownership to plone_buildout:plone_group
Buildout failed. Unable to continue

Installation has failed.
See the detailed installation log at /home/senaite/Plone-4.3.19-UnifiedInstaller/install.log
to determine the cause.

and in the log

Hi @AhtiAh, this is more about your python configuration rather than about SENAITE. I’d say system does not like to have two different Python system-installations coexisting. I suggest you to install SENAITE in a virtual environment (e.g. use virtualenv), so the system’s default Python (probably 3) won’t clash with SENAITE’s (2.7). This can be helpful: https://github.com/MDAnalysis/mdanalysis/issues/1739

1 Like

I agree with Jordi. After one year experience with Plone and Senaite I would do it this way rather than using the Plone unified installer. Its uses Python 2.7 virtual environment. From my previous comment here:

An alternate install that avoids complications caused by users/groups follows. This install will buildout and start as local user rather than root, plone_buildout, and plone_daemon. Tested on Ubuntu 18.04

Get all dependencies and packages needed

$sudo apt-get install virtualenv
$sudo apt-get install python2.7
$sudo apt-get install build-essential gcc python-dev git-core libffi-dev
$sudo apt-get install libpcre3 libpcre3-dev autoconf libtool pkg-config
$sudo apt-get install zlib1g-dev libssl-dev libexpat1-dev libxslt1.1
$sudo apt-get install gnuplot libcairo2 libpango1.0-0 libgdk-pixbuf2.0-0
$sudo apt-get install libxslt-dev python-pil libjpeg-turbo8-dev

Go to your home folder
$cd /home/jeff

Create a python 2.7 virtual environment then activate it
$virtualenv --python=/usr/bin/python2.7 --no-site-tools /home/jeff/Plone
$cd Plone
$source bin/activate

Git Clone Senaite LIMS
$git clone https://github.com/senaite/senaite.lims.git
$cd senaite.lims
$python bootstrap.py

The buildout.cfg here has lots of parts you don’t need for a test install. For developing you will need them. I recommend making only one change. Pin [versions] Products.AdvancedQuery =< 4
Alternatively you can copy the minimal buildout.cfg at the bottom of this message.
Build it out
$bin/buildout

Start the instance
$bin/instance fg
(password is in the buildout.cfg admin:admin)

A stripped down buildout.cfg that contains just the basic parts:

[buildout]
extends = http://dist.plone.org/release/4.3.18/versions.cfg

index = https://pypi.python.org/simple/

find-links =
http://dist.plone.org/release/4.3.18
http://dist.plone.org/thirdparty

parts =
instance

[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
eggs =
Plone
Pillow
senaite.core
senaite.lims

[versions]
Products.AdvancedQuery =< 4

2 Likes

but bin/instance fg error:ImportError: No module named simplejson