Replies: 1 comment
-
Yes update your Flet version to the latest. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I recently learn FLET, and I use the latest version. I tried to run the demo here: https://github.com/flet-dev/examples/blob/main/python/apps/todo/todo.py without any change, I didn't name the file as 'flet.py', and got this exception regarding circular import:
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\syx10\Documents\kumquats.venv\Scripts\flet.exe_main.py", line 4, in
File "C:\Users\syx10\Documents\kumquats.venv\Lib\site-packages\flet_init.py", line 1, in
from flet_runtime import *
File "C:\Users\syx10\Documents\kumquats.venv\Lib\site-packages\flet_runtime_init_.py", line 1, in
from flet_core import *
File "C:\Users\syx10\Documents\kumquats.venv\Lib\site-packages\flet_core_init_.py", line 412, in
from flet_core.user_control import UserControl
File "C:\Users\syx10\Documents\kumquats.venv\Lib\site-packages\flet_core\user_control.py", line 4, in
class Task(ft.Column):
^^^^^^^^^
AttributeError: partially initialized module 'flet' has no attribute 'Column' (most likely due to a circular import)
And I update the Flet version to 0.22.1, this issue solved.
Maybe need to update the code for 0.24?
Code sample
No response
Error message
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions