Buildout error while installing senaite

Hi,
I am trying to install senaite using the following instructions . I follow exactly what instructions say except the beginning that I don’t create a senaite user and install everything under my own user. The OS is WSL 20.04.
When I reach the final line of instructions I get and error for buildout script as below. I appreciate if someone can troubleshoot this problem with me. Thank you!

 $ PYTHONHTTPSVERIFY=0 buildout
Uninstalling unifiedinstaller.
Uninstalling zopepy.
Uninstalling backup.
Uninstalling repozo.
Uninstalling instance.
Installing instance.
Download error on http://dist.plone.org: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) -- Some packages may not be found!
Download error on http://download.zope.org/ppix/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) -- Some packages may not be found!
Download error on http://download.zope.org/distribution/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) -- Some packages may not be found!
Download error on http://dist.plone.org/release/4.3.19: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) -- Some packages may not be found!
Getting distribution for 'senaite.lims'.
Got senaite.lims 2.0.0.
Getting distribution for 'simplejson==2.5.2'.
In file included from /home/parham/miniconda3/envs/senaite/include/python2.7/Python.h:83,
                 from simplejson/_speedups.c:1:
simplejson/_speedups.c: In function ‘encoder_listencode_obj’:
/home/parham/miniconda3/envs/senaite/include/python2.7/object.h:439:18: warning: comparison of distinct pointer types lacks a cast
  439 |     (Py_TYPE(ob) == (tp) || PyType_IsSubtype(Py_TYPE(ob), (tp)))
      |                  ^~
simplejson/_speedups.c:2263:36: note: in expansion of macro ‘PyObject_TypeCheck’
 2263 |         else if (s->use_decimal && PyObject_TypeCheck(obj, s->Decimal)) {
      |                                    ^~~~~~~~~~~~~~~~~~
simplejson/_speedups.c:2263:61: warning: passing argument 2 of ‘PyType_IsSubtype’ from incompatible pointer type [-Wincompatible-pointer-types]
 2263 |         else if (s->use_decimal && PyObject_TypeCheck(obj, s->Decimal)) {
/home/parham/miniconda3/envs/senaite/include/python2.7/object.h:439:60: note: in definition of macro ‘PyObject_TypeCheck’
  439 |     (Py_TYPE(ob) == (tp) || PyType_IsSubtype(Py_TYPE(ob), (tp)))
      |                                                            ^~
/home/parham/miniconda3/envs/senaite/include/python2.7/object.h:437:50: note: expected ‘PyTypeObject *’ {aka ‘struct _typeobject *’} but argument is of type ‘PyObject *’ {aka ‘struct _object *’}
  437 | 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.
Download error on http://dist.plone.org: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) -- Some packages may not be found!
Download error on http://download.zope.org/ppix/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) -- Some packages may not be found!
Download error on http://download.zope.org/distribution/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) -- Some packages may not be found!
Download error on http://dist.plone.org/release/4.3.19: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) -- Some packages may not be found!
Getting distribution for 'senaite.impress==2.0.0'.
Got senaite.impress 2.0.0.
Getting distribution for 'senaite.app.supermodel==2.0.0'.
Got senaite.app.supermodel 2.0.0.
Getting distribution for 'senaite.app.spotlight==2.0.0'.
Got senaite.app.spotlight 2.0.0.
Getting distribution for 'senaite.app.listing==2.0.0'.
warning: no files found matching '*.rst'
warning: no previously-included files matching '*' found under directory 'src/senaite/app/listing/tests'
warning: no previously-included files matching '*' found under directory 'webpack'
warning: no previously-included files matching '*.pyc' found under directory 'src'
Got senaite.app.listing 2.0.0.
Getting distribution for 'senaite.core==2.0.0'.
warning: no previously-included files matching '*' found under directory 'docs'
warning: no previously-included files matching '*' found under directory 'src/senaite/app/listing'
warning: no previously-included files matching '*' found under directory 'src/senaite/app/spotlight'
warning: no previously-included files matching '*' found under directory 'src/senaite/app/supermodel'
warning: no previously-included files matching '*.pyc' found under directory 'src'
warning: no previously-included files matching '*' found under directory 'webpack'
  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 "build/bdist.linux-x86_64/egg/senaite/core/skins/senaite_scripts/member_is_client.py", line 17
    return "Clients" in member_groups
SyntaxError: 'return' outside function

  File "build/bdist.linux-x86_64/egg/senaite/core/skins/senaite_scripts/getDisplayView.py", line 11
    return value
SyntaxError: 'return' outside function

  File "/home/parham/software/senaite/buildout-cache/eggs/tmpFmkb35/senaite.core-2.0.0-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/parham/software/senaite/buildout-cache/eggs/tmpFmkb35/senaite.core-2.0.0-py2.7.egg/senaite/core/skins/senaite_scripts/getDisplayView.py", line 11
    return value
SyntaxError: 'return' outside function

  File "/home/parham/software/senaite/buildout-cache/eggs/tmpFmkb35/senaite.core-2.0.0-py2.7.egg/senaite/core/skins/senaite_scripts/member_is_client.py", line 17
    return "Clients" in member_groups
SyntaxError: 'return' outside function

Got senaite.core 2.0.0.
Version and requirements information containing plone:
  [versions] constraint on plone: 4.3.19
  Base installation request: 'Plone', 'Pillow', 'senaite.lims', 'simplejson', 'plone.recipe.zope2instance'
  Requirement of plone.recipe.zope2instance==4.4.1: ZODB3>=3.9
  Requirement of plone.recipe.zope2instance==4.4.1: Zope2>=2.12.1
  Requirement of plone.recipe.zope2instance==4.4.1: zc.recipe.egg
  Requirement of plone.recipe.zope2instance==4.4.1: mailinglogger
  Requirement of plone.recipe.zope2instance==4.4.1: setuptools
  Requirement of plone.recipe.zope2instance==4.4.1: zc.buildout
  Requirement of senaite.lims: Plone==5.2.4
  Requirement of Plone==4.3.19: wicked
  Requirement of Plone==4.3.19: plone.app.theming
  Requirement of Plone==4.3.19: plone.app.openid
  Requirement of Plone==4.3.19: plone.app.iterate
  Requirement of Plone==4.3.19: plone.app.dexterity
  Requirement of Plone==4.3.19: plone.app.caching
  Requirement of Plone==4.3.19: Products.CMFPlone
  Requirement of Plone==4.3.19: Products.CMFPlacefulWorkflow
  Requirement of Plone==4.3.19: setuptools
  Requirement of senaite.core==2.0.0: plone.app.jquerytools
  Requirement of senaite.core==2.0.0: plone.subrequest
  Requirement of senaite.core==2.0.0: plone.resource
  Requirement of senaite.core==2.0.0: plone.jsonapi.core
  Requirement of senaite.core==2.0.0: plone.app.z3cform
  Requirement of senaite.core==2.0.0: plone.app.relationfield
  Requirement of senaite.core==2.0.0: plone.app.referenceablebehavior
  Requirement of senaite.core==2.0.0: plone.app.iterate
  Requirement of senaite.core==2.0.0: plone.app.dexterity
  Requirement of senaite.core==2.0.0: plone.api
While:
  Installing instance.
Error: The requirement ('Plone==5.2.4') is not allowed by your [versions] constraint (4.3.19)

Please use Plone version 5.2.4 and it should work, see last line:

Error: The requirement ('Plone==5.2.4') is not allowed by your [versions] constraint (4.3.19)

(you are using 4.3.19)

The question is why it is not implemented in the official instructions then? Since I am not very familiar with these packages. I don’t know where to change to have the right workflow.

Hey, same thing just happened to me: "Error: The requirement (“Plone==5.2.6’) is not allowed by your [versions] constraint (4.3.19)” This is not updated in the official Installation. so How to change this when I’m at this point?. Thanks in advance.

The same thing just happened to me: "Error: The requirement (“Plone==5.2.6’) is not allowed by your [versions] constraint (4.3.19)” This is not updated in the official Installation. so How to change this when I’m at this point?. Thanks in advance.

+1 here.
Following the installations instructions and same error with Plone version.
Can’t find any other topic with installation instructions.

Hi @tuaititecnologia & @roooon

Senaite 1.3.5 and below runs on Plone 4.3.20 and Senaite 2 runs on Plone 5.2.4

When you run bin/built Plone pulls the latest Senaite version, if you want to run another Senaite version you have to pin it under the Versions section of builtout.cfg

Thank you, but me as others in the community are not Python experts, just users of Senaite.
Is there a current Installation Guide that works today?

I really appreciate your help but it does not help me or others to install Senaite because we don’t know about the available versions or the buildout.cfg usage or syntax.

Hi @tuaititecnologia

I recommend installing the latest version (supported and guaranteed development)

Please follow the installation manual: Installation · SENAITE instead of using Plone 4.3.19 as stated in the manual please use Plone 5.2.4

The only section you are changing in the install manual is Installation · SENAITE

Grab the Plone 5.2.4 installer file https://launchpad.net/plone/5.2/5.2.4/+download/Plone-5.2.4-UnifiedInstaller-1.0.tgz

1 Like

Thanks @ronaldm for you help. Question if I’m at the end point and got this Error: "Error: The requirement (“Plone==5.2.6’) is not allowed by your [versions] constraint (4.3.19)” How do I upgrade Plone?

Hi @roooon

Senaite 2 runs on Plone 5.2.6, please downlaod and install Plone 5.2.6

Thanks @ronaldm I did what you told me but still I found these errors and I couldn’t move forward. Any help with this?

Hi @roooon

Senaite only runs on Python 2.7 you are running Python 3.8. Please use Python 2.7

Hello every body, I got this message while buildout senaite.