Upgrade minimum Python requirement to 3.10#261
Open
MakeHorizont wants to merge 1 commit intomicrosoft:mainfrom
Open
Upgrade minimum Python requirement to 3.10#261MakeHorizont wants to merge 1 commit intomicrosoft:mainfrom
MakeHorizont wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Fixed a dependency resolution error where gradio==5.35.0 requires Python >=3.10, but the project was configured for >=3.9. This mismatch caused the following error during the uv environment setup: "Because the requested Python version (>=3.9) does not satisfy Python>=3.10 and gradio==5.35.0 depends on Python>=3.10, we can conclude that gradio==5.35.0 cannot be used." Updated requires-python in pyproject.toml to ensure compatibility with modern Gradio versions.
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.
Summary
This PR updates the requires-python specification in pyproject.toml from >=3.9 to >=3.10.
The Problem
The project was failing to build using the uv package manager due to a dependency version mismatch. Specifically, gradio==5.35.0 requires Python 3.10 or higher, which conflicted with the project's metadata claiming support for Python 3.9.
Console error log:
x No solution found when resolving dependencies for split
| (python_full_version == '3.9.*'):
`-> Because the requested Python version (>=3.9) does not satisfy
Python>=3.10 and gradio==5.35.0 depends on Python>=3.10, we can
conclude that gradio==5.35.0 cannot be used.
Changes
Testing
Verified that the environment now resolves correctly with the active Python 3.10 interpreter, allowing the Gradio demo to start without resolution errors.