Create database failed - conflicting python version

Hi there! I am following this guide for my own side project (learning to setup for fun).

Everything was okay until step 5. The error occurs when configuring database, as shown in the trace below.

TASK [edxlocal : create databases] *********************************************
An exception occurred during task execution. To see the full traceback, use -vvv. 

The error was: AttributeError: 'dict' object has no attribute 'iteritems'

This error should be due to Python 2 and Python 3. I believe my default python is Python 3.5. I re-run and get the same error.

Edit: I am using open-release/juniper.3

Hi, you should use open-release/juniper.master, but i don’t think that will fix the problem you are having. Are you sure you followed all the steps in the installation?

1 Like

Hi! Yes, I followed all the step, but I did do some tweaks in between. I am using Linode. The requirements said Ubuntu 16.04, and the default python is python2, therefore I set the python to be python3 with priority of 10.

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10

EDIT: it works by changing to open-release/juniper.master.

1 Like