Skip to content

Better error for unsupported Python version#3398

Merged
konstin merged 2 commits intoastral-sh:mainfrom
hauntsaninja:version-warning
May 6, 2024
Merged

Better error for unsupported Python version#3398
konstin merged 2 commits intoastral-sh:mainfrom
hauntsaninja:version-warning

Conversation

@hauntsaninja
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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