如何在 Ubuntu 18.04 上安装 senaite.lims?

如何在 Ubuntu 18.04 上安装 senaite.lims?

我正在尝试这一页 但我遇到了很多错误。如果有人能在 Ubuntu 18.04 上安装这个程序,我会很高兴看到一些可用的说明。

说明已更新,虽然安装过程中出现一些错误消息,但现在似乎可以正常工作。错误如下所示:

Got senaite.jsonapi 1.2.0.
Getting distribution for 'senaite.impress<2.0.0'.
warning: no files found matching '*.rst'
warning: no previously-included files matching '*' found under directory 'static'
warning: no previously-included files matching '*.pyc' found under directory 'src/senaite/impress'
warning: no previously-included files matching '*.mo' found under directory 'src/senaite/impress'
warning: no previously-included files matching '*' found under directory 'src/senaite/impress/static/js/node_modules'
warning: no previously-included files matching '*' found under directory 'src/senaite/impress/static/js/src'
warning: no previously-included files matching '*' found under directory 'node_modules'
warning: no previously-included files matching '*' found under directory 'src/senaite/impress/locales/.tx'
Got senaite.impress 1.2.2.
Getting distribution for 'senaite.core<2.0.0'.
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_handler.py", line 10
    return wf_guard_handler(context, transition_id)
SyntaxError: 'return' outside function

  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 "/home/senaite/buildout-cache/eggs/tmpx_dMCJ/senaite.core-1.3.2-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/tmpx_dMCJ/senaite.core-1.3.2-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/tmpx_dMCJ/senaite.core-1.3.2-py2.7.egg/bika/lims/skins/bika/member_is_client.py", line 16
    return 'Clients' in member_groups
SyntaxError: 'return' outside function

答案1

我们更新了官方网站上的安装说明:https://www.senaite.com/docs/installation

如果仍然遇到问题,您还可以尝试预先构建的 Docker 容器:https://github.com/senaite/senaite.docker/

相关内容