-
-
Notifications
You must be signed in to change notification settings - Fork 359
Description
####There is a conflict between the djongo version 1.3.6 and Django 4.2.16 when using pip install -r requirements.txt
Python script
python3 -m pip install -r requirements.txtContent of the file requirements.txt
django==4.2.16
djongo==1.3.6
pyMongo==3.12.3Traceback
<
pip is looking at multiple versions of djongo to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.pip (line 117) and -r requirements.pip (line 2) because these package versions have conflicting dependencies.
The conflict is caused by:
django 4.2.16 depends on sqlparse>=0.3.1
djongo 1.3.6 depends on sqlparse==0.2.4
To fix this you could try to:
- loosen the range of package versions you've specified
- remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Temporal solution
install first djongo==1.3.6 which will install a previous version of Django.
then install manually django==4.2.16
python3 -m pip install djongo==1.3.6
python3 -m pip install django==4.2.16Although the application work and the connectivity with mongo db works as expected, it will be important to have a new release that supports sqlparse>=0.3.1 so it doesn't have conflicts with Django version 4.2.16 or newer.
Thanks for your attention.