From 59c79fbd10b0c61a0329d0a7f595fc8056eac309 Mon Sep 17 00:00:00 2001 From: Ivor Berry <11559977+ivorb@users.noreply.github.com> Date: Wed, 19 Aug 2026 16:35:52 -0400 Subject: [PATCH] Fix ModuleNotFoundError for httpx in Foundry agent labs azure-ai-projects 2.0.0b4 imports httpx but does not declare it as a dependency; it relied on the openai package pulling httpx in. openai 3.x replaced httpx with httpx2, so fresh installs no longer get httpx and importing azure.ai.projects fails. Pin openai<3 (the version range azure-ai-projects 2.0.0b4 was built against) and declare httpx explicitly in the affected labs. Fixes #147 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- Labfiles/02-language-agent/Python/text-agent/requirements.txt | 4 +++- Labfiles/05-speech-tool/Python/speech-client/requirements.txt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Labfiles/02-language-agent/Python/text-agent/requirements.txt b/Labfiles/02-language-agent/Python/text-agent/requirements.txt index 69903f8d..8d79ee29 100644 --- a/Labfiles/02-language-agent/Python/text-agent/requirements.txt +++ b/Labfiles/02-language-agent/Python/text-agent/requirements.txt @@ -1,3 +1,5 @@ python-dotenv azure-identity -azure-ai-projects==2.0.0b4 \ No newline at end of file +azure-ai-projects==2.0.0b4 +openai<3 +httpx \ No newline at end of file diff --git a/Labfiles/05-speech-tool/Python/speech-client/requirements.txt b/Labfiles/05-speech-tool/Python/speech-client/requirements.txt index 69903f8d..8d79ee29 100644 --- a/Labfiles/05-speech-tool/Python/speech-client/requirements.txt +++ b/Labfiles/05-speech-tool/Python/speech-client/requirements.txt @@ -1,3 +1,5 @@ python-dotenv azure-identity -azure-ai-projects==2.0.0b4 \ No newline at end of file +azure-ai-projects==2.0.0b4 +openai<3 +httpx \ No newline at end of file