From d13527314fa631dbc3002c63eaceacb2621b8370 Mon Sep 17 00:00:00 2001 From: Rahul Srivastava <117383410+rahul-srivastava-codes@users.noreply.github.com> Date: Sat, 5 Jul 2025 16:15:13 +0530 Subject: [PATCH] Shows a user friendly message rather than simple pass Shows user-friendly message guiding them on how to install Python 3 and offers OS-specific tips --- x.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x.py b/x.py index 928a7496cb70e..cf9c74f7cf088 100755 --- a/x.py +++ b/x.py @@ -26,8 +26,8 @@ try: os.execvp("python3", ["python3"] + sys.argv) except OSError: - # Python 3 isn't available, fall back to python 2 - pass + print("Python 3 is not available. Please install Python 3.6 or later.") + sys.exit(1) # soft deprecation of old python versions skip_check = os.environ.get("RUST_IGNORE_OLD_PYTHON") == "1"