Skip to content

Commit

Permalink
[REF-3149] Bring back py3.12 hot reload warning (#3537)
Browse files Browse the repository at this point in the history
Warning for issue #3536

Co-authored-by: Lendemor <thomas.brandeho@gmail.com>
  • Loading branch information
masenf and Lendemor authored Jun 24, 2024
1 parent 046dbde commit b2b0da0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions reflex/utils/prerequisites.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit b2b0da0

Please sign in to comment.