langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
95.34k stars 15.47k forks source link

langchain-airbyte broken dependencies #26997

Open cbornet opened 1 month ago

cbornet commented 1 month ago

Checked other resources

Example Code

cd libs/partners/airbyte
poetry lock --no-update

you get

Because langchain (0.3.1) @ file:///Users/christophebornet/workspace/langchain/libs/langchain depends on pydantic (^2.7.4)
 and langchain-airbyte depends on pydantic (>=1.10.8,<2), langchain is forbidden.
So, because langchain-airbyte depends on langchain (0.3.1) @ file:///Users/christophebornet/workspace/langchain/libs/langchain, version solving failed.

Description

System Info


System Information
------------------
> OS:  Darwin
> OS Version:  Darwin Kernel Version 22.6.0: Mon Feb 19 19:48:53 PST 2024; root:xnu-8796.141.3.704.6~1/RELEASE_X86_64
> Python Version:  3.11.9 (main, Jul 25 2024, 22:35:19) [Clang 15.0.0 (clang-1500.0.40.1)]

Package Information
-------------------
> langchain_core: Installed. No version info available.

Optional packages not installed
-------------------------------
> langsmith
> langgraph
> langserve
keenborder786 commented 1 month ago

This is fixable but first we need to create a PR here, which updates the airbyte-cdk to support newer version of langchain_core. And then we can use the following dependencies. This should solve the issue.

[tool.poetry.dependencies]
python = ">=3.9,<3.12.4"
langchain-core = "^0.3"
airbyte = "^0.11.0"
airbyte-cdk = "^3.0.0"