ImportError: cannot import name 'Iterator' from 'collections' (Py 3.10)

Observed behavior

kolibri command crashes immediately

Errors and logs

[spacenerden@SpaceNerden ~]$ pip install kolibri
Defaulting to user installation because normal site-packages is not writeable
Collecting kolibri
  Using cached kolibri-0.15.0-py2.py3-none-any.whl (102.0 MB)
Installing collected packages: kolibri
Successfully installed kolibri-0.15.0
[spacenerden@SpaceNerden ~]$ kolibri
INFO: No C extensions are available for this platform
Traceback (most recent call last):
  File "/home/spacenerden/.local/bin/kolibri", line 5, in <module>
    from kolibri.utils.cli import main
  File "/home/spacenerden/.local/lib/python3.10/site-packages/kolibri/utils/", line 12, in <module>
    from import execute_from_command_line
  File "/home/spacenerden/.local/lib/python3.10/site-packages/kolibri/dist/django/core/management/", line 13, in <module>
    from import (
  File "/home/spacenerden/.local/lib/python3.10/site-packages/kolibri/dist/django/core/management/", line 17, in <module>
    from django.db.migrations.exceptions import MigrationSchemaMissing
  File "/home/spacenerden/.local/lib/python3.10/site-packages/kolibri/dist/django/db/migrations/", line 2, in <module>
    from .operations import *  # NOQA
  File "/home/spacenerden/.local/lib/python3.10/site-packages/kolibri/dist/django/db/migrations/operations/", line 1, in <module>
    from .fields import AddField, AlterField, RemoveField, RenameField
  File "/home/spacenerden/.local/lib/python3.10/site-packages/kolibri/dist/django/db/migrations/operations/", line 4, in <module>
    from django.db.models.fields import NOT_PROVIDED
  File "/home/spacenerden/.local/lib/python3.10/site-packages/kolibri/dist/django/db/models/", line 5, in <module>
    from django.db.models.deletion import (
  File "/home/spacenerden/.local/lib/python3.10/site-packages/kolibri/dist/django/db/models/", line 5, in <module>
    from django.db.models import signals, sql
  File "/home/spacenerden/.local/lib/python3.10/site-packages/kolibri/dist/django/db/models/sql/", line 2, in <module>
    from django.db.models.sql.query import *  # NOQA
  File "/home/spacenerden/.local/lib/python3.10/site-packages/kolibri/dist/django/db/models/sql/", line 11, in <module>
    from collections import Counter, Iterator, Mapping, OrderedDict
ImportError: cannot import name 'Iterator' from 'collections' (/usr/lib/python3.10/collections/

Expected behavior

Should run server at and begin first time setup

User-facing consequences

Unable to use kolibri.

Steps to reproduce

pip install kolibri


Kolibri 0.15 (Download from pip)
Python 3.10
Arch Linux

Hi @SpaceNerden,

Thanks for your interest in Kolibri!

I am a little surprised that pip let you install Kolibri on Python 3.10 as we explicitly only support up to Python 3.9. As you can see there are some issues in our dependencies that currently block us from supporting Python 3.10.

Please use a python version of 3.9 or earlier.

Kind Regards,