Python: Fix Foundry aiohttp dependency - #6567
Merged
Eduard van Valkenburg (eavanvalkenburg) merged 1 commit intoJun 18, 2026
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot started reviewing on behalf of
Eduard van Valkenburg (eavanvalkenburg)
June 17, 2026 13:06
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a missing runtime dependency for the Python agent-framework-foundry package so that a minimal install can successfully construct Foundry clients that rely on azure.ai.projects.aio.AIProjectClient (which in turn requires aiohttp).
Changes:
- Add
aiohttp>=3.9,<4as a direct dependency ofagent-framework-foundry. - Update
python/uv.lockmetadata to reflect the new dependency for the Foundry package.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| python/packages/foundry/pyproject.toml | Declares aiohttp as a direct runtime dependency for agent-framework-foundry. |
| python/uv.lock | Updates the workspace lock metadata so Foundry’s resolved dependencies include aiohttp. |
Contributor
westey (westey-m)
approved these changes
Jun 17, 2026
Eduard van Valkenburg (eavanvalkenburg)
enabled auto-merge
June 17, 2026 13:25
Evan Mattson (moonbox3)
approved these changes
Jun 18, 2026
Eduard van Valkenburg (eavanvalkenburg)
deleted the
ev/foundry-aiohttp-dependency
branch
June 30, 2026 09:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
Installing only
agent-framework-foundryleaves outaiohttp, but the Foundry package constructs async Azure AI Projects clients throughazure.ai.projects.aio.AIProjectClient. In a minimal install, constructingFoundryChatClientfails withModuleNotFoundError: No module named 'aiohttp'.The root cause is that
azure-ai-projectsdepends on plainazure-core;aiohttpis only exposed through Azure Core's optionalaioextra. An upstream Azure SDK issue was opened at Azure/azure-sdk-for-python#47539, butagent-framework-foundryshould still declare the runtime dependency needed by its own async client surface.Description & Review Guide
aiohttp>=3.9,<4toagent-framework-foundryand updateuv.lockpackage metadata.agent-framework-foundryinstalls now include the async Azure Core transport dependency needed to construct Foundry clients.aiohttpdirectly onagent-framework-foundryis the right defensive package metadata fix while the Azure SDK upstream issue is pending.Related Issue
Fixes #6566
No other open PR was found for this issue.
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.