Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility issue betwen Django 4.2.16 and djongo 1.3.6 #700

Open
wedalo opened this issue Oct 29, 2024 · 0 comments
Open

Compatibility issue betwen Django 4.2.16 and djongo 1.3.6 #700

wedalo opened this issue Oct 29, 2024 · 0 comments

Comments

@wedalo
Copy link

wedalo commented Oct 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant