Imbesat Anwar
Imbesat Anwar

Reputation: 1

from django.utils import importlib, six ImportError: cannot import name 'importlib' from 'django.utils'

I am using below version

python 3.7.4 Django 2.0.5 MySQL 5.5 restframework 3.0

while running getting error as below, please help me

File "C:\Users\Imbesat Anwar\AppData\Local\Programs\Python\Python37\lib\site-packages\rest_framework\settings.py", line 22, in from django.utils import importlib, six ImportError: cannot import name 'importlib' from 'django.utils' (C:\Users\Imbesat Anwar\AppData\Local\Programs\Python\Python37\lib\site-packages\django\utils__init__.py)

Upvotes: 0

Views: 631

Answers (1)

Rahul Raut
Rahul Raut

Reputation: 1518

You need to upgrade your djangorestframework to 3.1 or higher.

Upvotes: 0

Related Questions