Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flet doesn't works on Ubuntu #4523

Open
1 task done
bleudev opened this issue Dec 8, 2024 · 1 comment
Open
1 task done

Flet doesn't works on Ubuntu #4523

bleudev opened this issue Dec 8, 2024 · 1 comment
Labels
status: awaiting response Further information is requested

Comments

@bleudev
Copy link
Contributor

bleudev commented Dec 8, 2024

Duplicate Check

Describe the bug

I tried to make flet application on linux (ubuntu 24), but it doesn't works and throws me error. Can you fix that&

Code sample

Code
import flet as ft

def main(page: ft.Page):
    page.title = "Flet counter example"
    page.vertical_alignment = ft.MainAxisAlignment.CENTER

    txt_number = ft.TextField(value="0", text_align=ft.TextAlign.RIGHT, width=100)

    def minus_click(e):
        txt_number.value = str(int(txt_number.value) - 1)
        page.update()

    def plus_click(e):
        txt_number.value = str(int(txt_number.value) + 1)
        page.update()

    page.add(
        ft.Row(
            [
                ft.IconButton(ft.Icons.REMOVE, on_click=minus_click),
                txt_number,
                ft.IconButton(ft.Icons.ADD, on_click=plus_click),
            ],
            alignment=ft.MainAxisAlignment.CENTER,
        )
    )

ft.app(main)

To reproduce

  1. Run Ubuntu
  2. Create venv using python3 -m venv venv command
  3. Install flet with pip
  4. Run code with flet run

Expected behavior

No response

Screenshots / Videos

Captures

image

Operating System

Linux

Operating system details

Ubuntu 24.04.1 LTS

Flet version

0.25.1

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

Logs
/home/bleudev/.flet/bin/flet-0.25.1/flet/flet: error while loading shared libraries: libmpv.so.1: cannot open shared object file: No such file or directory

Additional details

No response

@ndonkoHenri
Copy link
Contributor

ndonkoHenri commented Dec 8, 2024

Some solutions to this issue have been suggested here: #2823

Please what is the output of pip list in your venv?

@ndonkoHenri ndonkoHenri added the status: awaiting response Further information is requested label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: awaiting response Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants