Python: fix(python): remove deprecated nest_asyncio dependency#13628
Open
Jaredw2289-svg wants to merge 1 commit intomicrosoft:mainfrom
Open
Python: fix(python): remove deprecated nest_asyncio dependency#13628Jaredw2289-svg wants to merge 1 commit intomicrosoft:mainfrom
Jaredw2289-svg wants to merge 1 commit intomicrosoft:mainfrom
Conversation
…ft#13090) nest_asyncio is archived and does not support Python 3.12+ loop_factory parameter. This change: - Removes nest-asyncio from pyproject.toml dependencies - Refactors template_function_helpers.py to use ThreadPoolExecutor for nested event loop scenarios instead of nest_asyncio.apply() - Removes nest_asyncio imports and apply() calls from MCP server samples Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@Jaredw2289-svg please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
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.
Fixes #13090
Problem
The Python SDK depends on the archived
nest_asynciopackage, which does not support Python 3.12+loop_factoryparameter, causingTypeError: run() got an unexpected keyword argument 'loop_factory'.Fix
nest_asynciofrompython/pyproject.tomlnest_asyncio.apply()call sites