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

Installation fails due to conflicting pymongo version #1

Open
NeolithEra opened this issue Dec 7, 2019 · 1 comment
Open

Installation fails due to conflicting pymongo version #1

NeolithEra opened this issue Dec 7, 2019 · 1 comment

Comments

@NeolithEra
Copy link

Hi, users are unable to run flask-mongokat due to dependency conflict with pymongo package. As shown in the following full dependency graph of flask-mongokat, flask-mongokat requires pymongo *,while mongokat requires pymongo ==3.0.3.

According to pip’s “first found wins” installation strategy, pymongo 0.9.3 is the actually installed version. However, pymongo 0.9.3 does not satisfy ==3.0.3.

Dependency tree-----------

flask-mongokat - 1.0
| +- flask(install version:1.1.1 version range:*)
| | +- click(install version:7.0 version range:>=5.1)
| | +- itsdangerous(install version:1.1.0 version range:>=0.24)
| | +- jinja2(install version:2.10.3 version range:>=2.10.1)
| | | +- markupsafe(install version:1.1.1 version range:>=0.23)
| | +- werkzeug(install version:0.16.0 version range:>=0.15)
| +- mongokat(install version:0.2.0 version range:*)
| | +- pymongo (install version:3.0.3 version range:==3.0.3)
| +- pymongo(install version:3.9.0 version range:*)

Thanks for your help.
Best,
Neolith

@NeolithEra
Copy link
Author

Suggested Solution

  1. Ask your upstream project mongokat to loose the version range of pymongo.
  2. Remove your direct dependency pymongo, and use pymongo transitively introduced by mongokat.

@FranciscoCarbonell Which solution do you prefer, 1 or 2?
Please let me know your choice. I can submit a PR to solve this issue.

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