Installation Failed in ubuntu 18.04 x64

I buildout senaitelims project as the doc :Installation · SENAITE ,but faild:

(senaite) senaite@y:~/senaitelims$ which buildout
/home/senaite/miniconda2/envs/senaite/bin/buildout
(senaite) senaite@y:~/senaitelims$ PYTHONHTTPSVERIFY=0 buildout
Uninstalling unifiedinstaller.
Uninstalling zopepy.
Uninstalling backup.
Uninstalling repozo.
Uninstalling instance.
Installing instance.
Getting distribution for ‘senaite.lims==1.3.3’.
Got senaite.lims 1.3.3.
Getting distribution for ‘simplejson==2.5.2’.
In file included from /home/senaite/miniconda2/envs/senaite/include/python2.7/Python.h:83:0,
from simplejson/_speedups.c:1:
simplejson/_speedups.c: In function ‘encoder_listencode_obj’:
/home/senaite/miniconda2/envs/senaite/include/python2.7/object.h:439:18: warning: comparison of distinct pointer types lacks a cast
(Py_TYPE(ob) == (tp) || PyType_IsSubtype(Py_TYPE(ob), (tp)))
^
simplejson/_speedups.c:2263:36: note: in expansion of macro ‘PyObject_TypeCheck’
else if (s->use_decimal && PyObject_TypeCheck(obj, s->Decimal)) {
^~~~~~~~~~~~~~~~~~
/home/senaite/miniconda2/envs/senaite/include/python2.7/object.h:439:59: warning: passing argument 2 of ‘PyType_IsSubtype’ from incompatible pointer type [-Wincompatible-pointer-types]
(Py_TYPE(ob) == (tp) || PyType_IsSubtype(Py_TYPE(ob), (tp)))
^
simplejson/_speedups.c:2263:36: note: in expansion of macro ‘PyObject_TypeCheck’
else if (s->use_decimal && PyObject_TypeCheck(obj, s->Decimal)) {
^~~~~~~~~~~~~~~~~~
/home/senaite/miniconda2/envs/senaite/include/python2.7/object.h:437:17: note: expected ‘PyTypeObject * {aka struct _typeobject }’ but argument is of type ‘PyObject * {aka struct _object *}’
PyAPI_FUNC(int) PyType_IsSubtype(PyTypeObject *, PyTypeObject *);
^~~~~~~~~~~~~~~~
zip_safe flag not set; analyzing archive contents…
simplejson.tests.init: module references file
Got simplejson 2.5.2.
Getting distribution for ‘senaite.jsonapi==1.2.2’.
Got senaite.jsonapi 1.2.2.
Getting distribution for ‘senaite.impress==1.2.3’.
Got senaite.impress 1.2.3.
Getting distribution for ‘senaite.core.spotlight==1.0.2’.
Got senaite.core.spotlight 1.0.2.
Getting distribution for ‘senaite.core.listing==1.4.0’.
warning: no files found matching ‘docs’
warning: no files found matching '
.rst’
warning: no previously-included files matching ‘.pyc’ found under directory ‘src/senaite/core/listing’
warning: no previously-included files matching '
’ found under directory ‘src/senaite/core/listing/tests’
warning: no previously-included files matching ‘’ found under directory ‘src/senaite/core/listing/react’
warning: no previously-included files matching '
’ found under directory ‘node_modules’
Got senaite.core.listing 1.4.0.
Getting distribution for ‘senaite.core==1.3.3’.
warning: no previously-included files matching ‘’ found under directory ‘docs’
warning: no previously-included files matching '
.pyc’ found under directory ‘bika’
File “build/bdist.linux-x86_64/egg/bika/lims/skins/bika/guard_attach_transition.py”, line 19
return False
SyntaxError: ‘return’ outside function

File “build/bdist.linux-x86_64/egg/bika/lims/skins/bika/member_is_client.py”, line 16
return ‘Clients’ in member_groups
SyntaxError: ‘return’ outside function

File “build/bdist.linux-x86_64/egg/bika/lims/skins/bika/guard_handler.py”, line 10
return wf_guard_handler(context, transition_id)
SyntaxError: ‘return’ outside function

File “/home/senaite/buildout-cache/eggs/tmpKR2YKP/senaite.core-1.3.3-py2.7.egg/bika/lims/skins/bika/guard_attach_transition.py”, line 19
return False
SyntaxError: ‘return’ outside function

File “/home/senaite/buildout-cache/eggs/tmpKR2YKP/senaite.core-1.3.3-py2.7.egg/bika/lims/skins/bika/guard_handler.py”, line 10
return wf_guard_handler(context, transition_id)
SyntaxError: ‘return’ outside function

File “/home/senaite/buildout-cache/eggs/tmpKR2YKP/senaite.core-1.3.3-py2.7.egg/bika/lims/skins/bika/member_is_client.py”, line 16
return ‘Clients’ in member_groups
SyntaxError: ‘return’ outside function

Got senaite.core 1.3.3.
Getting distribution for ‘tinycss2<1.0.0’.
Got tinycss2 0.6.1.
Getting distribution for ‘WeasyPrint==0.42.3’.
warning: no files found matching ‘pytest.ini’
warning: no files found matching ‘tox.ini’
no previously-included directories found matching ‘docs/_build’
Got WeasyPrint 0.42.3.
Getting distribution for ‘cairocffi<1.0.0’.
/tmp/easy_install-gVQPDH/cairocffi-0.9.0/.eggs/cffi-1.15.1-py2.7-linux-x86_64.egg/cffi/cparser.py:154: UserWarning: String literal found in cdef() or type source. String literals are ignored here, but you should remove them anyway because some character sequences confuse pre-parsing.
warnings.warn("String literal found in cdef() or type source. "
/tmp/easy_install-gVQPDH/cairocffi-0.9.0/.eggs/cffi-1.15.1-py2.7-linux-x86_64.egg/cffi/cparser.py:165: UserWarning: Global variable ‘CAIRO_TAG_DEST’ in cdef(): for consistency with C it should have a storage class specifier (usually ‘extern’)
“(usually ‘extern’)” % (decl.name,))
/tmp/easy_install-gVQPDH/cairocffi-0.9.0/.eggs/cffi-1.15.1-py2.7-linux-x86_64.egg/cffi/cparser.py:165: UserWarning: Global variable ‘CAIRO_TAG_LINK’ in cdef(): for consistency with C it should have a storage class specifier (usually ‘extern’)
“(usually ‘extern’)” % (decl.name,))
no previously-included directories found matching ‘docs/_build’
warning: no previously-included files found matching ‘cairocffi/_ffi*.py’
file cairocffi/_ffi.py (for module cairocffi._ffi) not found
file cairocffi/_ffi_pixbuf.py (for module cairocffi._ffi_pixbuf) not found
file cairocffi/_ffi.py (for module cairocffi._ffi) not found
file cairocffi/_ffi_pixbuf.py (for module cairocffi._ffi_pixbuf) not found
zip_safe flag not set; analyzing archive contents…
cairocffi.ffi_build: module references file
Got cairocffi 0.9.0.
Getting distribution for ‘CairoSVG==1.0.20’.
zip_safe flag not set; analyzing archive contents…
Got CairoSVG 1.0.20.
Getting distribution for ‘beautifulsoup4’.
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-23AG1x/beautifulsoup4-4.11.1/setup.py”, line 7, in
File “/tmp/easy_install-23AG1x/beautifulsoup4-4.11.1/bs4/init.py”, line 35, in
ImportError: You are trying to use a Python 3-specific version of Beautiful Soup under Python 2. This will not work. The final version of Beautiful Soup to support Python 2 was 4.9.3.
An error occurred when trying to install /home/senaite/buildout-cache/downloads/dist/beautifulsoup4-4.11.1.tar.gz. Look above this message for any errors that were output by easy_install.
While:
Installing instance.
Getting distribution for ‘beautifulsoup4’.

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/plone.recipe.zope2instance-4.4.1-py2.7.egg/plone/recipe/zope2instance/init.py”, line 169, in install
installed.extend(self.install_scripts())
File “/home/senaite/buildout-cache/eggs/plone.recipe.zope2instance-4.4.1-py2.7.egg/plone/recipe/zope2instance/init.py”, line 668, in install_scripts
requirements, ws = self.egg.working_set([‘plone.recipe.zope2instance’])
File “/home/senaite/buildout-cache/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 730, in install
for dist in self._get_dist(req, 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) senaite@y:~/senaitelims$ bin/instance fg
-su: bin/instance: no file or directory

buildout.cfg:

eggs =
Plone
Pillow
senaite.lims
simplejson

[versions]
zc.buildout =
setuptools =
Pillow = 5.1.0
cssselect2 = 0.2.2
soupsieve = 1.9.5
senaite.lims = 1.3.3

buildout.sanitycheck = 1.0.2
collective.recipe.backup = 4.0
plone.recipe.unifiedinstaller = 4.3.2

Hello, @lngg9er . I suspect the problem you’re experiencing is caused by a mismatch in package versions. Most packages must be compatible with one another.

Check out this tutorial: Senaite Installation on Ubuntu 18.04. Try following the installation instructions, and then let us know if you run into any more issues. I’d love to keep engaging.

I follow with method:https://senaite.hashnode.dev/installing-senaite-on-ubuntu-18-04,error info:
(senaite) senaite@y:~/Plone-5.2.9-UnifiedInstaller-1.0$ sudo ./install.sh standalone --target=/home/senaite --instance=senaitelims --password=admin --with-python=/home/senaite/miniconda2/bin/python

Testing /home/senaite/miniconda2/bin/python for Zope/Plone requirements…
/home/senaite/miniconda2/bin/python looks OK. We will use it.

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-5.2.9-UnifiedInstaller-1.0/install.log
Installing Plone 5.2.9 at /home/senaite

Using useradd and groupadd to create users and groups.
Instance target /home/senaite/senaitelims already exists; aborting install.

Instance target /home/senaite/senaitelims already exists; aborting install. means the directory senaitelims already exists, probably from a previous installation attempt.

Deleting the senaitelims directory should be able to fix this.