Please, i’m very new to Python and Django, a friend (non developer) reached out to me on deploying django on digitalocean. I’ve tried troubleshooting some of my issues but dont understand how to solve the latest one:
JavaScript
x
18
18
1
The conflict is caused by:
2
The user requested Django==2.2.16
3
django-cors-headers 3.2.1 depends on Django>=1.11
4
django-filter 2.0.0 depends on Django>=1.11
5
django-phonenumber-field 4.0.0 depends on Django>=1.11.3
6
django-rest-knox 3.0.3 depends on django
7
django-rq 2.3.2 depends on django>=2.0
8
djangorestframework 3.11.1 depends on django>=1.11
9
drf-yasg 1.20.0 depends on Django>=2.2.16
10
django-rest-logger 1.0.4 depends on Django<=2.2 and >=1.11
11
12
To fix this you could try to:
13
1. loosen the range of package versions you've specified
14
2. remove package versions to allow pip attempt to solve the dependency conflict
15
16
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
17
ERROR: failed to build: exit status 1
18
I’ve tried visiting the address but dont know what to do with the information given. Please, help me out
Advertisement
Answer
It’s very obvious from the error message if you read it carefully.
The user requested Django==2.2.16
, but django-rest-logger 1.0.4 depends on Django<=2.2 and >=1.11
. As the error message suggested, you should either loosen the Django
version from 2.2.16 to 2.2 or uninstall django-rest-logger