Installation on Ubuntu 20.04

116 views
Skip to first unread message

vishal...@gmail.com

unread,
Sep 2, 2020, 1:45:28 AM9/2/20
to Review Board Community
I see Ubuntu 20.04 comes with Python3 out of the box.

Could you pls share instructions on how to install review board on Ubuntu 20.04

Laurent M.

unread,
Sep 2, 2020, 10:33:26 AM9/2/20
to Review Board Community
Hello,

Unless there is a valid distribution for Python 3, you would need to use Python 2.x for ReviewBoard.

The RBTools client would work on Python3.
The server ReviewBoard (at this time) is the 3.x branch and is only for Python2

The recommended way would be to setup a virtual python environment (ie pyenv, virtualenv), so you can have multiple Python version and modules installed.
Install a Python2 environment in it, switch to it then use the normal install process, pip to install reviewboard in it (if using the distribution package)

When using Apache, to use the WSGI interface, ensure that all the three versions are compatible with each other.
The WSGI module must match your Python version, and the WSGI module must be supported by your Apache version (ie Python 2.7.x + Apache 2.4 + /mod_python27-wsgi).

As it's a virtual setup, you will have to make small modifications to two files to "use" it:
- apache-wsgi.conf, you need to have some similar lines:

        WSGIDaemonProcess reviewboard user=<user> group=<group> python-home=/your/path/to/.pyenv/versions/rbweb2717
        WSGIProcessGroup reviewboard
        WSGIApplicationGroup %{GLOBAL}

        WSGIPassAuthorization On
        WSGIScriptAlias "/" "/var/www/reviewboard/review/htdocs/reviewboard.wsgi/"


- generated wsgi template (reviewboard.wsgi) must also contains

      python_home = ' /your/path/to/.pyenv/versions/rbweb2717 '
      activate_this = python_home + '/bin/activate_this.py'
      execfile(activate_this, dict(__file__=activate_this))


Far to be complete, but I hope it will help.

Laurent\
Reply all
Reply to author
Forward
0 new messages