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)