-
QuestionWhen using FilePicker with pick_files() on Ubuntu 24.04 (Flet 0.28.3), the following error occurs after selecting a file:
Code sampleimport flet as ft
def main(page: ft.Page):
def pick_files_result(e: ft.FilePickerResultEvent):
if e.files:
page.add(ft.Text(", ".join(f.name for f in e.files)))
else:
page.add(ft.Text("Cancelled"))
picker = ft.FilePicker(on_result=pick_files_result)
page.overlay.append(picker)
page.add(
ft.ElevatedButton("Pick files", on_click=lambda _: picker.pick_files(allow_multiple=True))
)
ft.app(target=main) Error messageTypeError: FilePickerFile.__init__() missing 1 required positional argument: 'id' ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
LimaVsC
Jun 20, 2025
Replies: 1 comment 3 replies
-
I will suggest you start a new venv. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How I solved it: I deleted the build folder. I think some files in there were causing a conflict.