From 1dffa769a2f4d551ab65267b4796757431b8fb60 Mon Sep 17 00:00:00 2001 From: mountain Date: Thu, 9 Jul 2026 20:14:59 +0800 Subject: [PATCH] fix: sync requirements.txt with the SDK's runtime dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The source-install path documented in the README (pip install -r requirements.txt) was missing runtime deps the new SDK imports on `import pageindex` — pydantic (config), typing-extensions (client), requests (cloud/legacy API) — plus openai and httpx[socks]. A user following that path hit ModuleNotFoundError before they could use even the legacy APIs. Add them (openai-agents stays an optional install, matching the README's agentic-demo section). Verified in a clean venv: `import pageindex` and the legacy/core APIs now work with only requirements.txt installed. --- requirements.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ae92bc4..6115d1f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,11 @@ litellm==1.84.0 -# openai-agents # optional: required for examples/agentic_vectorless_rag_demo.py +pydantic==2.12.5 pymupdf==1.26.4 PyPDF2==3.0.1 python-dotenv==1.2.2 pyyaml==6.0.2 +requests==2.33.1 +httpx[socks]==0.28.1 +typing-extensions==4.15.0 +openai==2.30.0 +# openai-agents # optional: required for local agentic query + examples/agentic_vectorless_rag_demo.py