From 5094bd4c23b4e75db9892e53afaa42bdb65020a6 Mon Sep 17 00:00:00 2001 From: Aarya2004 Date: Mon, 25 Nov 2024 21:06:45 -0500 Subject: [PATCH] fix(deps): Fixing pypdf dependency errors --- libs/community/poetry.lock | 2 +- libs/langchain/poetry.lock | 2 +- libs/langchain/pyproject.toml | 1 + libs/langchain/tests/unit_tests/test_dependencies.py | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/community/poetry.lock b/libs/community/poetry.lock index f4c365be18947..d66935d750c5e 100644 --- a/libs/community/poetry.lock +++ b/libs/community/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand. [[package]] name = "aiohappyeyeballs" diff --git a/libs/langchain/poetry.lock b/libs/langchain/poetry.lock index 75f748eb64fc3..ef171b6162193 100644 --- a/libs/langchain/poetry.lock +++ b/libs/langchain/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand. [[package]] name = "aiohappyeyeballs" diff --git a/libs/langchain/pyproject.toml b/libs/langchain/pyproject.toml index c1c872b37a095..15e4737a18921 100644 --- a/libs/langchain/pyproject.toml +++ b/libs/langchain/pyproject.toml @@ -42,6 +42,7 @@ requests = "^2" PyYAML = ">=5.3" aiohttp = "^3.8.3" tenacity = ">=8.1.0,!=8.4.0,<10" +pypdf = "^5.1.0" [[tool.poetry.dependencies.numpy]] version = ">=1.22.4,<2" python = "<3.12" diff --git a/libs/langchain/tests/unit_tests/test_dependencies.py b/libs/langchain/tests/unit_tests/test_dependencies.py index 3dad53e963405..dd7b643a82b5d 100644 --- a/libs/langchain/tests/unit_tests/test_dependencies.py +++ b/libs/langchain/tests/unit_tests/test_dependencies.py @@ -48,6 +48,7 @@ def test_required_dependencies(poetry_conf: Mapping[str, Any]) -> None: "langsmith", "pypdf", "numpy", + "pypdf", "pydantic", "python", "requests",