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

mtools[mlaunch] does not install with pymongo 4 #856

Closed
p-mongo opened this issue Apr 11, 2022 · 1 comment
Closed

mtools[mlaunch] does not install with pymongo 4 #856

p-mongo opened this issue Apr 11, 2022 · 1 comment
Assignees
Milestone

Comments

@p-mongo
Copy link
Contributor

p-mongo commented Apr 11, 2022

Expected behavior

I think mtools and mtools[mlaunch] should have the same acceptable dependency versions?

Actual/current behavior

I can install mtools+pymongo 4.1:

serene2% pip install mtools==1.7 pymongo==4.1
Defaulting to user installation because normal site-packages is not writeable
Collecting mtools==1.7
  Downloading mtools-1.7.0-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 20.4 MB/s eta 0:00:00
Collecting pymongo==4.1
  Downloading pymongo-4.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (469 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 469.9/469.9 KB 27.9 MB/s eta 0:00:00
Installing collected packages: mtools, pymongo
  Attempting uninstall: pymongo
    Found existing installation: pymongo 3.12.0
    Uninstalling pymongo-3.12.0:
      Successfully uninstalled pymongo-3.12.0
Successfully installed mtools-1.7.0 pymongo-4.1.0

However if I request mtools[mlaunch] + pymongo 4.1 I get an error:

serene2% pip install mtools'[mlaunch]'==1.7 pymongo==4.1
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: mtools[mlaunch]==1.7 in /home/w/.local/lib/python3.9/site-packages (1.7.0)
Requirement already satisfied: pymongo==4.1 in /home/w/.local/lib/python3.9/site-packages (4.1.0)
ERROR: Cannot install mtools[mlaunch]==1.7.0 and pymongo==4.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested pymongo==4.1
    mtools[mlaunch] 1.7.0 depends on pymongo<4.0.0 and >=3.12.2; extra == "mlaunch"

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Steps to reproduce the actual/current behavior

pip install as per the above command

Environment

Debian Linux

Software Version
mtools 1.7.0
Python 3.9.12
MongoDB server n/a
Operating system Debian Linux testing
@stennie stennie self-assigned this Apr 12, 2022
@stennie stennie added this to the 1.7.1 milestone Apr 12, 2022
@stennie
Copy link
Collaborator

stennie commented Apr 12, 2022

Thanks @p-mongo - dependency versions should be the same but setup.py is out of sync with requirements.txt in 1.7.0.

It should allow pymongo>=3.12.2,<5.0.0.

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

No branches or pull requests

2 participants