Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModuleNotFoundError: No module named 'django.utils.six' [duplicate]

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?

like image 690
mukluk Avatar asked Dec 30 '19 02:12

mukluk


1 Answers

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.

like image 132
Iain Shelvington Avatar answered Nov 12 '22 10:11

Iain Shelvington