From cf52e6338bd43062a3c38c17a1088e0834c4f8fa Mon Sep 17 00:00:00 2001 From: Anubhav Dhawan Date: Mon, 17 Nov 2025 18:37:11 +0530 Subject: [PATCH] fix(deps): pin llama-index-cli to resolve dependency conflict This PR resolves a dependency installation failure that occurs when upgrading `llama-index` to version `0.14.8` (https://github.com/googleapis/mcp-toolbox-sdk-python/pull/390). #### Problem The upgrade to `llama-index==0.14.8` introduced a conflict with one of its transitive dependencies, `llama-index-cli`. The error arises because: * `llama-index==0.14.8` requires `llama-index-core>=0.14.8`. * The older version of `llama-index-cli` that was being selected by the installer requires `llama-index-core<0.14.0`. These two requirements are mutually exclusive, causing the installation to fail. #### Solution This PR addresses the conflict by explicitly pinning the transitive dependency to a newer, compatible version. By adding `llama-index-cli==0.5.3` to the `requirements.txt` file, we instruct the package manager to use a version of the CLI tool that has updated its own dependencies to be compatible with the newer `llama-index` ecosystem. --- packages/toolbox-llamaindex/requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/toolbox-llamaindex/requirements.txt b/packages/toolbox-llamaindex/requirements.txt index db999449..efe37289 100644 --- a/packages/toolbox-llamaindex/requirements.txt +++ b/packages/toolbox-llamaindex/requirements.txt @@ -1,6 +1,7 @@ -e ../toolbox-core llama-index==0.14.4 +llama-index-cli==0.5.3 PyYAML==6.0.3 pydantic==2.11.10 aiohttp==3.13.0 -deprecated==1.2.18 \ No newline at end of file +deprecated==1.2.18