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

Dependencies issues blocking the installation of librairies #193

Open
Maxlo24 opened this issue Jan 22, 2025 · 3 comments
Open

Dependencies issues blocking the installation of librairies #193

Maxlo24 opened this issue Jan 22, 2025 · 3 comments

Comments

@Maxlo24
Copy link

Maxlo24 commented Jan 22, 2025

Hello DeepSearch team,
I have an issue
deepsearch-toolkit dependencies are blocking some of our librairies install. Is there a way to go around it ?
ibm-secrets-manager-sdk only has releases starting from the 2.x series. Unfortunately, all these versions depend on urllib3 >=2.1.0, which conflicts with deepsearch-toolkit's dependency on urllib3 <2.0.0.

Because ibm-secrets-manager-sdk (2.1.7) depends on urllib3 (>=2.1.0,<3.0.0)
 and deepsearch-toolkit (1.1.1) depends on urllib3 (>=1.26.8,<2.0.0), ibm-secrets-manager-sdk (2.1.7) is incompatible with deepsearch-toolkit (1.1.1).
And because no versions of deepsearch-toolkit match >1.1.1,<2.0.0, ibm-secrets-manager-sdk (2.1.7) is incompatible with deepsearch-toolkit (>=1.1.1,<2.0.0).
So, because deepsearch-project depends on both deepsearch-toolkit (^1.1.1) and ibm-secrets-manager-sdk (2.1.7), version solving failed.

Same with smolagent librairy :

Because no versions of gradio match >5.8.0,<5.9.0 || >5.9.0,<5.9.1 || >5.9.1,<5.10.0 || >5.10.0,<5.11.0 || >5.11.0,<5.12.0 || >5.12.0
 and gradio (5.8.0) depends on urllib3 (>=2.0,<3.0), gradio (>=5.8.0,<5.9.0 || >5.9.0,<5.9.1 || >5.9.1,<5.10.0 || >5.10.0,<5.11.0 || >5.11.0,<5.12.0 || >5.12.0) requires urllib3 (>=2.0,<3.0).
And because gradio (5.9.0) depends on urllib3 (>=2.0,<3.0), gradio (>=5.8.0,<5.9.1 || >5.9.1,<5.10.0 || >5.10.0,<5.11.0 || >5.11.0,<5.12.0 || >5.12.0) requires urllib3 (>=2.0,<3.0).
And because gradio (5.9.1) depends on urllib3 (>=2.0,<3.0)
 and gradio (5.10.0) depends on urllib3 (>=2.0,<3.0), gradio (>=5.8.0,<5.11.0 || >5.11.0,<5.12.0 || >5.12.0) requires urllib3 (>=2.0,<3.0).
And because gradio (5.11.0) depends on urllib3 (>=2.0,<3.0)
 and gradio (5.12.0) depends on urllib3 (>=2.0,<3.0), gradio (>=5.8.0) requires urllib3 (>=2.0,<3.0).
Because no versions of smolagents match >1.4.1,<2.0.0
 and smolagents (1.4.1) depends on gradio (>=5.8.0), smolagents (>=1.4.1,<2.0.0) requires gradio (>=5.8.0).
Thus, smolagents (>=1.4.1,<2.0.0) requires urllib3 (>=2.0,<3.0).
And because deepsearch-toolkit (1.1.1) depends on urllib3 (>=1.26.8,<2.0.0)
 and no versions of deepsearch-toolkit match >1.1.1,<2.0.0, smolagents (>=1.4.1,<2.0.0) is incompatible with deepsearch-toolkit (>=1.1.1,<2.0.0).
So, because deepsearch-project depends on both deepsearch-toolkit (^1.1.1) and smolagents (^1.4.1), version solving failed.

and also this

Because no versions of ibm-watson-machine-learning match >1.0.366,<1.0.367 || >1.0.367,<2.0.0
 and ibm-watson-machine-learning (1.0.366) depends on pandas (>=0.24.2,<2.2.0), ibm-watson-machine-learning (>=1.0.366,<1.0.367 || >1.0.367,<2.0.0) requires pandas (>=0.24.2,<2.2.0).
And because ibm-watson-machine-learning (1.0.367) depends on pandas (>=0.24.2,<2.2.0), ibm-watson-machine-learning (>=1.0.366,<2.0.0) requires pandas (>=0.24.2,<2.2.0).
Because no versions of smolagents match >1.4.1,<2.0.0
 and smolagents (1.4.1) depends on pandas (>=2.2.3), smolagents (>=1.4.1,<2.0.0) requires pandas (>=2.2.3).
Thus, smolagents (>=1.4.1,<2.0.0) is incompatible with ibm-watson-machine-learning (>=1.0.366,<2.0.0).
So, because deepsearch-project depends on both ibm-watson-machine-learning (^1.0.366) and smolagents (^1.4.1), version solving failed.
@SantanaTiago
Copy link
Collaborator

Hello Maxlo24,

Thank you for your feedback.
We created a PR to address urllib3 version which makes it compatible with more versions.
About pandas dependency, from your logs we can see that the issue is incompatibility between ibm-watson-machine-learning (^1.0.366) and smolagents (^1.4.1) because

ibm-watson-machine-learning (1.0.366) depends on pandas (>=0.24.2,<2.2.0), ibm-watson-machine-learning (>=1.0.366,<1.0.367 || >1.0.367,<2.0.0)
smolagents (1.4.1) depends on pandas (>=2.2.3), smolagents (>=1.4.1,<2.0.0) requires pandas (>=2.2.3)

the version of pandas we need in toolkit is pandas >=2.1.4,<3.0.0 which is compatible with both dependencies.
A suggest solution is to bump pandas version in ibm-watson-machine-learning to match smolagents (>=2.2.3) one.

Hope this helps.
Best regards

@dolfim-ibm
Copy link
Contributor

@Maxlo24 did the new version solve your issue?

@Maxlo24
Copy link
Author

Maxlo24 commented Jan 28, 2025

Thank you !
It solved one part but now I get a dependency issue with docling-core:

Because docling-core (2.15.1) depends on pillow (>=10.3.0,<11.0.0)
 and no versions of docling-core match >2.15.1,<3.0, docling-core (>=2.15.1,<3.0) requires pillow (>=10.3.0,<11.0.0).
And because deepsearch-toolkit (2.0.1) depends on docling-core (>=2.0.0,<3.0.0), if smolagents (>=1.5.1,<2.0.0) and deepsearch-toolkit (2.0.1) then docling-core (>=2.0.0,<2.15.1).

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

3 participants