From c27bf560718d3eec3705abcaece85725da7b28ff Mon Sep 17 00:00:00 2001 From: Chad Condon Date: Sat, 20 Jul 2024 16:06:46 -0700 Subject: [PATCH] Fail install for Python 2 Closes #16 --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index d2e3a15..fb18c92 100755 --- a/install.sh +++ b/install.sh @@ -26,6 +26,9 @@ else exit -1 fi +# Check for old python +~/klippy-env/bin/python -c 'import sys; assert sys.version_info[0] == 3, "Python 3 is required."' + # Link auto speed to klipper echo "Linking auto speed to Klipper..." ln -sf "${SRCDIR}/auto_speed.py" "${KLIPPER_PATH}/klippy/extras/auto_speed.py"