Pārlūkot izejas kodu

[REF-2216] Warn if windows is used with py312 (#2856)

Display a warning message, recommending python 3.11 with the current release of
reflex.

We need this until running with a uvicorn version that has better support for
py3.12 on windows.
Masen Furer 1 gadu atpakaļ
vecāks
revīzija
479b5182aa
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      reflex/utils/prerequisites.py

+ 5 - 0
reflex/utils/prerequisites.py

@@ -824,6 +824,11 @@ def check_initialized(frontend: bool = True):
         console.warn(
         console.warn(
             """Windows Subsystem for Linux (WSL) is recommended for improving initial install times."""
             """Windows Subsystem for Linux (WSL) is recommended for improving initial install times."""
         )
         )
+        if sys.version_info >= (3, 12):
+            console.warn(
+                "Python 3.12 on Windows has known issues with hot reload (reflex-dev/reflex#2335). "
+                "Python 3.11 is recommended with this release of Reflex."
+            )
 
 
 
 
 def is_latest_template() -> bool:
 def is_latest_template() -> bool: