flet: libgstapp shared libraries not available on WSL2

Description

When trying to run the Basic app structure Flet docs example on WSL2(Ubuntu 20.04) I get an error that libgstapp is not a file or directory. Perhaps this is because of the way WSL works that some shared files aren’t available that are normally available in a full Ubuntu install? I can’t seem to find this lib on apt.

Flet was installed in a venv with Python 3.8.10. Code example to reproduce the issue:

import flet as ft

def main(page: ft.Page):
    # add/update controls on Page
    pass

ft.app(target=main)

Describe the results you received:

/home/myuser/.flet/bin/flet-0.3.0.dev892/flet/flet: error while loading shared libraries: libgstapp-1.0.so.0: cannot open shared object file: No such file or directory

Describe the results you expected:

image

Additional information you deem important (e.g. issue happens only occasionally):

Flet version (pip show flet):

Name: flet
Version: 0.3.0.dev892

This is a pre-release but I’ve had the same results with Version: 0.2.2

Operating system:

Ubuntu 20.04 on Windows 10 (WSL2).

Additional environment details:

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (9 by maintainers)

Most upvoted comments