You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched the LangChain documentation with the integrated search.
I used the GitHub search to find a similar question and didn't find it.
I am sure that this is a bug in LangChain rather than my code.
The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
Example Code
poetry add docling==0.2.7 langchain=0.3.1
Error Message and Stack Trace (if applicable)
Because no versions of langchain match >0.3.7,<0.4.0
and langchain (0.3.7) depends on numpy (>=1.26.0,<2.0.0), langchain (>=0.3.7,<0.4.0) requires numpy (>=1.26.0,<2.0.0).
Because deepsearch-glm (0.26.1) depends on numpy (>=2.0.2,<3.0.0)
and no versions of deepsearch-glm match >0.26.1,<0.27.0, deepsearch-glm (>=0.26.1,<0.27.0) requires numpy (>=2.0.2,<3.0.0).
Thus, langchain (>=0.3.7,<0.4.0) is incompatible with deepsearch-glm (>=0.26.1,<0.27.0).
And because docling (2.7.0) depends on deepsearch-glm (>=0.26.1,<0.27.0)
and no versions of docling match >2.7.0,<3.0.0, langchain (>=0.3.7,<0.4.0) is incompatible with docling (>=2.7.0,<3.0.0).
So, because nick-ai-batch depends on both docling (^2.7.0) and langchain (^0.3.7), version solving failed.
Description
I would like to install docling and langchain simultaneously:
$ poetry add docling langchain
However, the following error occurs:
Because no versions of langchain match >0.3.7,<0.4.0
and langchain (0.3.7) depends on numpy (>=1.26.0,<2.0.0), langchain (>=0.3.7,<0.4.0) requires numpy (>=1.26.0,<2.0.0).
Because deepsearch-glm (0.26.1) depends on numpy (>=2.0.2,<3.0.0)
and no versions of deepsearch-glm match >0.26.1,<0.27.0, deepsearch-glm (>=0.26.1,<0.27.0) requires numpy (>=2.0.2,<3.0.0).
Thus, langchain (>=0.3.7,<0.4.0) is incompatible with deepsearch-glm (>=0.26.1,<0.27.0).
And because docling (2.7.0) depends on deepsearch-glm (>=0.26.1,<0.27.0)
and no versions of docling match >2.7.0,<3.0.0, langchain (>=0.3.7,<0.4.0) is incompatible with docling (>=2.7.0,<3.0.0).
So, because nick-ai-batch depends on both docling (^2.7.0) and langchain (^0.3.7), version solving failed.
When I check the numpy version requirements for deepsearch-glm (a dependency of docling), it is defined as follows:
Would it be possible to address the circular dependency in langchain similarly?
System Info
System Information
OS: Darwin
OS Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:49 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6020
Python Version: 3.12.7 (main, Nov 18 2024, 16:51:48) [Clang 15.0.0 (clang-1500.3.9.4)]
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Because no versions of langchain match >0.3.7,<0.4.0
and langchain (0.3.7) depends on numpy (>=1.26.0,<2.0.0), langchain (>=0.3.7,<0.4.0) requires numpy (>=1.26.0,<2.0.0).
Because deepsearch-glm (0.26.1) depends on numpy (>=2.0.2,<3.0.0)
and no versions of deepsearch-glm match >0.26.1,<0.27.0, deepsearch-glm (>=0.26.1,<0.27.0) requires numpy (>=2.0.2,<3.0.0).
Thus, langchain (>=0.3.7,<0.4.0) is incompatible with deepsearch-glm (>=0.26.1,<0.27.0).
And because docling (2.7.0) depends on deepsearch-glm (>=0.26.1,<0.27.0)
and no versions of docling match >2.7.0,<3.0.0, langchain (>=0.3.7,<0.4.0) is incompatible with docling (>=2.7.0,<3.0.0).
So, because nick-ai-batch depends on both docling (^2.7.0) and langchain (^0.3.7), version solving failed.
Description
I would like to install docling and langchain simultaneously:
However, the following error occurs:
When I check the numpy version requirements for deepsearch-glm (a dependency of docling), it is defined as follows:
However, for langchain, its dependency on numpy does not seem to handle circular dependency:
On the other hand, if I install llama-index, it succeeds. Checking its dependency definitions for numpy, it seems to handle circular dependencies:
Would it be possible to address the circular dependency in langchain similarly?
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: