You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python flet_test.py
INFO:flet:Starting local Flet Server on port 8550...
INFO:flet:Flet Server found in: /home/vscode/.local/lib/python3.8/site-packages/flet/bin/fletd
INFO:flet:Web renderer configured: canvaskit
INFO:flet:Use color emoji: False
INFO:flet:Route URL strategy configured: path
INFO:flet:Connecting Flet Server at ws://127.0.0.1:8550/ws...
DEBUG:flet:Exited run_forever()
INFO:flet:Reconnecting Flet Server in 0.1 seconds
panic: error reading config file: While parsing config: yaml: unmarshal errors:
line 1: cannot unmarshal !!str `version...` into map[string]interface {}
goroutine 1 [running]:
github.com/flet-dev/flet/server/config.init.0()
/home/appveyor/projects/flet/server/config/config.go:96 +0x66e
INFO:flet:Connecting Flet Server at ws://127.0.0.1:8550/ws...
DEBUG:flet:Exited run_forever()
INFO:flet:Reconnecting Flet Server in 0.1 seconds
INFO:flet:Connecting Flet Server at ws://127.0.0.1:8550/ws...
DEBUG:flet:Exited run_forever()
...(always reconnecting here)
INFO:flet:Reconnecting Flet Server in 0.1 seconds
INFO:flet:Connecting Flet Server at ws://127.0.0.1:8550/ws...
DEBUG:flet:Exited run_forever()
INFO:flet:Reconnecting Flet Server in 0.1 seconds
Traceback (most recent call last):
File "flet_test.py", line 34, in <module>
ft.app(port=8550, target=main, view=ft.WEB_BROWSER)
File "/home/vscode/.local/lib/python3.8/site-packages/flet/flet.py", line 88, in app
__app_sync(
File "/home/vscode/.local/lib/python3.8/site-packages/flet/flet.py", line 119, in __app_sync
conn = __connect_internal_sync(
File "/home/vscode/.local/lib/python3.8/site-packages/flet/flet.py", line 340, in __connect_internal_sync
conn.connect()
File "/home/vscode/.local/lib/python3.8/site-packages/flet/sync_websocket_connection.py", line 61, in connect
raise Exception(
Exception: Could not connected to Flet server in 30 seconds.
Describe the results you expected:
Expect it run normally.
Additional information you deem important (e.g. issue happens only occasionally):
Flet version (pip show flet):
Name: flet
Version: 0.7.4
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page:
Author: Appveyor Systems Inc.
Author-email: hello@flet.dev
License: Apache-2.0
Location: /home/vscode/.local/lib/python3.8/site-packages
Requires: flet-core, httpx, oauthlib, packaging, watchdog, websocket-client, websockets
Required-by:
Operating system:
OS: Linux dae1c1db0250 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Env: A configured devcontainer in wsl2
Additional environment details:
The text was updated successfully, but these errors were encountered:
@FeodorFitsner I have tried it again and run it successfully.Maybe, there are some lock of failed installing deps with command apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio.Sorry to bother you.🤣🤣
Description
I have the same bug as #1359 in wsl2 with a devcontainer env. It looks like a configuration error in server/config/config.go:96 and feels puzzling.
Code example to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Expect it run normally.
Additional information you deem important (e.g. issue happens only occasionally):
Flet version (
pip show flet
):Operating system:
OS: Linux dae1c1db0250 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Env: A configured devcontainer in wsl2
Additional environment details:
The text was updated successfully, but these errors were encountered: