Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError on running migrate while using Python 3.10.0 #9224

Closed
nitheezkant opened this issue Mar 27, 2022 · 1 comment
Closed

ImportError on running migrate while using Python 3.10.0 #9224

nitheezkant opened this issue Mar 27, 2022 · 1 comment

Comments

@nitheezkant
Copy link
Contributor

Observed behavior

On running kolibri manage migrate command while using Python version 3.10.0, ImportError is observed.
Complete screenshot of Terminal is attached:
image

Errors and logs

ImportError: cannot import name 'Iterator' from 'collections' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/__init__.py)

Expected behavior

Migration is successful when lower versions of python is used.

Steps to reproduce

Make sure you are using Python 3.10.0 inside the virtual environment and then run kolibri manage migrate.

Context

OS:macOS, M1

@rtibbles
Copy link
Member

Kolibri does not support Python 3.10.0 or later, and cannot until we drop Python 2.7 support and upgrade our Django version.

However, this could be better specified in our setup.py with a python_requires kwarg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants