From 0431f0f714e23e0ebce11d923a4737437fc04f4f Mon Sep 17 00:00:00 2001 From: Cameron Scarpati Date: Thu, 12 Mar 2026 20:41:25 +0000 Subject: [PATCH] Add Python version guard for clear error on < 3.10 The app requires Python 3.10+ (for zip(strict=True) and other features). Users running Python 3.9 previously got a cryptic TypeError; now they get a clear RuntimeError directing them to recreate their virtualenv. https://claude.ai/code/session_014AdTzfk9zu8NY2RZaU8oJQ --- dashboard/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dashboard/app.py b/dashboard/app.py index 0be4b7f..594322c 100644 --- a/dashboard/app.py +++ b/dashboard/app.py @@ -17,6 +17,12 @@ import sys from pathlib import Path +if sys.version_info < (3, 10): # noqa: UP036 — intentional guard for clear error message + raise RuntimeError( + f"Python ≥ 3.10 is required (running {sys.version}). " + "Please recreate your virtualenv with Python 3.10+." + ) + import numpy as np import pandas as pd import streamlit as st