Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.01 KB

upgrade-to-python3.rst

File metadata and controls

35 lines (24 loc) · 1.01 KB

Upgrading a CKAN install from python2 to python3

These instructions describe how to upgrade a source install of CKAN 2.9 from python2 to python3, which is necessary because python2 is end of life, as of 31st December 2019.

Preparation

  • Backup your CKAN source, virtualenv and databases, just in case.
  • Upgrade to CKAN 2.9, if you've not done already.

Upgrade

You'll probably need to deactivate your existing virtual environment:

deactivate

The existing setup has the virtual environment here: and the CKAN source code underneath in /usr/lib/ckan/default/src. We'll move that aside in case we need to roll-back:

sudo mv /usr/lib/ckan/py2

From this doc: /maintaining/installing/install-from-source you need to do these sections:

    1. Install the required packages
    1. Install CKAN into a Python virtual environment
    1. Link to who.ini