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

"ModuleNotFoundError: No module named 'django.utils.six'" with Django 3.0 #151

Closed
philgyford opened this issue Dec 8, 2019 · 2 comments
Closed

Comments

@philgyford
Copy link

I'm in the process of updating my project to Django 3.0 but using sortedm2m I get:

  File "/Users/phil/Projects/personal/django-ditto/.tox/py38-django30/lib/python3.8/site-packages/sortedm2m/forms.py", line 10, in <module>
    from django.utils.six import string_types
ModuleNotFoundError: No module named 'django.utils.six'

Django 3.0 drops support for python 2 compatibility APIs, so I guess sortedm2m either needs to drop support for python 2, or explicitly include a non-Django instance of six?

@cqxu
Copy link

cqxu commented Nov 3, 2020

if use whitenoise, try to upgrade whitenoise:
pip install whitenoise --upgrade

@clintonb
Copy link
Contributor

clintonb commented Nov 3, 2020

This was resolved by #152.

@clintonb clintonb closed this as completed Nov 3, 2020
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

3 participants