-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Description
Problem is present with python 3.8 , Django 3.0.9 and DRF 3.11.0...
File "/usr/src/app/authentication/urls.py", line 15, in
from . import views
File "/usr/src/app/authentication/views.py", line 3, in
from rest_framework.views import APIView
File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 17, in
from rest_framework.schemas import DefaultSchema
File "/usr/local/lib/python3.8/site-packages/rest_framework/schemas/init.py", line 34, in
permission_classes=api_settings.DEFAULT_PERMISSION_CLASSES,
File "/usr/local/lib/python3.8/site-packages/rest_framework/settings.py", line 220, in getattr
val = perform_import(val, attr)
File "/usr/local/lib/python3.8/site-packages/rest_framework/settings.py", line 168, in perform_import
return [import_from_string(item, setting_name) for item in val]
File "/usr/local/lib/python3.8/site-packages/rest_framework/settings.py", line 168, in
return [import_from_string(item, setting_name) for item in val]
File "/usr/local/lib/python3.8/site-packages/rest_framework/settings.py", line 180, in import_from_string
raise ImportError(msg)
ImportError: Could not import 'rest_framework.permissions.IsAuthenticated' for API setting 'DEFAULT_PERMISSION_CLASSES'. ImportError: cannot import name 'six' from 'django.utils' (/usr/local/lib/python3.8/site-packages/django/utils/init.py).
See
https://stackoverflow.com/questions/59193514/importerror-cannot-import-name-six-from-django-utils