ModuleNotFoundError: No module named 'django.utils.six'

mukluk picture mukluk · Dec 30, 2019 · Viewed 18.2k times · Source

HTTP GET /admin/ 500 [0.00, 127.0.0.1:51425] Traceback (most recent call last): File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\daphne\http_protocol.py", line 180, in process "server": self.server_addr, ModuleNotFoundError: No module named 'django.utils.six'

Installed Django 3. Django.utils.six is no longer supported. Thoughts?

Answer

Iain Shelvington picture Iain Shelvington · Dec 30, 2019

Django 3 has removed support for six, from the release notes:

While Python 2 support was removed in Django 2.0, some private APIs weren’t removed from Django so that third party apps could continue using them until the Python 2 end-of-life.

Since we expect apps to drop Python 2 compatibility when adding support for Django 3.0, we’re removing these APIs at this time.

...

django.utils.six - Remove usage of this vendored library or switch to six.