Skip to content

Compatibility issue betwen Django 4.2.16 and djongo 1.3.6 #700

@wedalo

Description

@wedalo

####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.txt

Content of the file requirements.txt

django==4.2.16
djongo==1.3.6
pyMongo==3.12.3

Traceback

<
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:

  1. loosen the range of package versions you've specified
  2. 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.16

Although 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions