Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error for unsupported Python version #3398

Merged
merged 2 commits into from
May 6, 2024

Conversation

hauntsaninja
Copy link
Contributor

@hauntsaninja hauntsaninja commented May 6, 2024

Fixes #3371

It seems like uv doesn't proactively enforce 3.8+ and in most cases just issues a warning. This PR keeps that property, only adding the new check when it is known to fail. I checked the imports in this file and the other ones seem fine.

Fixes astral-sh#3371

It seems like uv doesn't proactively enforce 3.8+ and in most cases just
issues a warning. This PR keeps that property, only adding the new check
when it is known to fail.
@hauntsaninja
Copy link
Contributor Author

hauntsaninja commented May 6, 2024

Oh you know what? I think the Python 2 check is broken anyway, since uv now uses -I to run the interpreter. Yeah, looks like it'll just fail before we even get here for Python 3.3 and older :D

@konstin
Copy link
Member

konstin commented May 6, 2024

I've confirmed that this fixes centos 7 (by failing with the correct error), thanks!

@konstin konstin added the error messages Messaging when something goes wrong label May 6, 2024
@konstin konstin merged commit 95f31f2 into astral-sh:main May 6, 2024
43 checks passed
@hauntsaninja hauntsaninja deleted the version-warning branch May 8, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error messages Messaging when something goes wrong
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv run fails on centos 7
2 participants