From b2b0da036d2bacfb9c87ed66f88766647bd3cd3e Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Mon, 24 Jun 2024 07:24:42 -0700 Subject: [PATCH] [REF-3149] Bring back py3.12 hot reload warning (#3537) Warning for issue #3536 Co-authored-by: Lendemor --- reflex/utils/prerequisites.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reflex/utils/prerequisites.py b/reflex/utils/prerequisites.py index 40dcf3348f..f09b7b594b 100644 --- a/reflex/utils/prerequisites.py +++ b/reflex/utils/prerequisites.py @@ -955,9 +955,10 @@ def needs_reinit(frontend: bool = True) -> bool: console.warn( """Windows Subsystem for Linux (WSL) is recommended for improving initial install times.""" ) - if sys.version_info >= (3, 12) and uvi_ver != "0.24.0.post1": + if sys.version_info >= (3, 12): console.warn( - f"""On Python 3.12, `uvicorn==0.24.0.post1` is recommended for improved hot reload times. Found {uvi_ver} instead.""" + "Python 3.12 on Windows has known issues with hot reload (reflex-dev/reflex#3536). " + "Python 3.11 is recommended with this release of Reflex." ) if sys.version_info < (3, 12) and uvi_ver != "0.20.0":