-
Notifications
You must be signed in to change notification settings - Fork 583
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the bug
Al ejecutar una aplicación para que lo muestre como web (flet run --web) muestra la siguiente advertencia:
\env\Lib\site-packages\websockets\legacy_init_.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
warnings.warn( # deprecated in 14.0 - 2024-11-09
\Lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py:17: DeprecationWarning: websockets.server.WebSocketServerProtocol is deprecated
from websockets.server import WebSocketServerProtocol
\Lib\site-packages\websockets\legacy\server.py:1178: DeprecationWarning: remove second argument of ws_handler
warnings.warn("remove second argument of ws_handler", DeprecationWarning)
Code sample
import flet as ft
def main(page: ft.Page):
text_ruta=ft.Text(value=f"Ruta inicial {page.route}")
page.add(text_ruta)
ft.app(main)
comando de ejecución:
flet run --web main.py
To reproduce
- Crear una aplicación básica
- Ejecutarlo con vista web: flet run --web
Expected behavior
No debería mostrar esa advertencia, no sé si a corto plazo puede causar inconvenientes con las aplicaciones realizadas con flet.
Screenshots / Videos
Captures
[Upload media here]
Operating System
Windows
Operating system details
Windows 11
Flet version
0.27.6
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response