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

conflicting dependencies #932

Closed
Tracked by #967 ...
kiko0217 opened this issue May 27, 2022 · 2 comments · Fixed by #963
Closed
Tracked by #967 ...

conflicting dependencies #932

kiko0217 opened this issue May 27, 2022 · 2 comments · Fixed by #963
Assignees
Labels
framework: tensorflow Related to TensorFlow backend topic: build Related to dependencies and build type: bug Something isn't working

Comments

@kiko0217
Copy link

kiko0217 commented May 27, 2022

Bug description

I get error conflicting dependencies when installing doctr version tf-cpu with editable flag.

Code snippet to reproduce the bug

git clone -b v0.5.1 --depth 1 https://github.com/mindee/doctr.git
pip install -e doctr/.[tf-cpu]

Error traceback

ERROR: Cannot install python-doctr, python-doctr[tf-cpu]==0.5.1a0 and tensorflow-cpu==2.8.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    python-doctr[tf-cpu] 0.5.1a0 depends on keras<2.7.0
    tensorflow-cpu 2.8.0 depends on keras<2.9 and >=2.8.0rc0
    python-doctr[tf-cpu] 0.5.1a0 depends on keras<2.7.0
    tensorflow-cpu 2.9.1 depends on keras<2.10.0 and >=2.9.0rc0
    python-doctr[tf-cpu] 0.5.1a0 depends on keras<2.7.0
    tensorflow-cpu 2.9.0 depends on keras<2.10.0 and >=2.9.0rc0
    python-doctr[tf-cpu] 0.5.1a0 depends on keras<2.7.0
    tensorflow-cpu 2.8.2 depends on keras<2.9 and >=2.8.0rc0
    python-doctr[tf-cpu] 0.5.1a0 depends on keras<2.7.0
    tensorflow-cpu 2.8.1 depends on keras<2.9 and >=2.8.0rc0

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

Environment

Deep Learning backend

@kiko0217 kiko0217 added the type: bug Something isn't working label May 27, 2022
@frgfm frgfm added topic: build Related to dependencies and build framework: tensorflow Related to TensorFlow backend labels May 27, 2022
@frgfm
Copy link
Collaborator

frgfm commented May 27, 2022

Hello @kiko0217 👋

Thanks for the heads up! So this constraint was introduced in #579 because of a problem on the TF/Keras side at the time! Let us check if we can loosen this 👍

@frgfm
Copy link
Collaborator

frgfm commented Jun 28, 2022

Closed by #963

@frgfm frgfm closed this as completed Jun 28, 2022
@frgfm frgfm added this to the 0.5.2 milestone Jun 28, 2022
@frgfm frgfm mentioned this issue Jun 28, 2022
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework: tensorflow Related to TensorFlow backend topic: build Related to dependencies and build type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants