Open yashasolutions opened 4 months ago
well, for me I had to link the libraries again and again and still no improved, had to link libmpv, libmujs, lua5.2 and then jepg turbo still no improvement
apt install libmpv1 this works for me at least under ubuntu 22.04
I do however get following: (flet:29655): CRITICAL : 03:35:11.411: void update_pressing_state(FlKeyEmbedderResponder *, uint64_t, uint64_t): assertion 'lookup_hash_table(self->pressing_records, physical_key) != 0' failed /usr/local/lib/python3.12/dist-packages/flet_core/page.py:292: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.__expires_at = datetime.utcnow() + timedelta(
The counter app however does work as intended
There is a bigger problem though
Picture on left is running as root, picture on right is running as normal user....
Hmm this only happening with WSL Ubuntu-22.04, I don't see it happening as normal VM Ubuntu-22.04.
Can you try it on a arch vm ?
You mean under WSL? Only reason I install Ubuntu 22.04LTS is 90% of developers develop there and all code examples use latest Ubuntu LTS distro, any reason you use arch? I could try it, I think I'd have to be persuaded though, my main go to OS is FreeBSD for anything that needs to run rock solid for a decade, with godly ports collection bigger than any other OS :) For flutter/flet I run flutter/flet under apache in FreeBSD as well.
My main development environment though is Windows 11, Ubuntu WSL. From there I can test windows, Linux, android and android TV with adb, as well as web with FreeBSD and apache.
I mean if you were gonna release an APP, you would want to install it mainly on google play store, apple store. Package it for windows/mac and offer it as a service under apache/nginx right? I may see a point if you are trying to run a GUI for a raspberry pi, other than that I can't see why anyone would run arch over FreeBSD.
Here are some instructions for running latest Ubuntu WSL under windows 11: https://blog.sunsaturn.com/wsl/using-wsl-as-regular-linux-host-on-same-network-with-10-gigabit-and-nfs/
In Debian 12 - Debian GNU/Linux 12 (bookworm)
Being root:
apt install libmpv-dev mpv
dpkg -L libmpv-dev
the output is:
/usr /usr/include /usr/include/mpv /usr/include/mpv/client.h /usr/include/mpv/render.h /usr/include/mpv/render_gl.h /usr/include/mpv/stream_cb.h /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/pkgconfig /usr/lib/x86_64-linux-gnu/pkgconfig/mpv.pc /usr/share /usr/share/doc /usr/share/doc/libmpv-dev /usr/share/doc/libmpv-dev/changelog.Debian.gz /usr/share/doc/libmpv-dev/changelog.gz /usr/share/doc/libmpv-dev/copyright /usr/lib/x86_64-linux-gnu/libmpv.so
Then I've applied the symbol:
ln -s /usr/lib/x86_64-linux-gnu/libmpv.so /usr/lib/libmpv.so.1
and it worked for me.
In the documentation it currently says "libmpv libraries must be installed if your Flet app uses Video control." This deserves more investigation, or the docs should be corrected if libmpv is a requirement for all projects.
to add to @loleg, it would also be good to know which version is required, because I had libmpv, just libmpv.so.2 didn't cut it and it required libmpv.so.1
Just to report this same error on OpenSUSE Tumbleweed.
$ error while loading shared libraries: libmpv.so.1: cannot open shared object file: No such file or directory
I confirm this workaround works fine with Manjaro too! Thank you, @yashasolutions.
Tive esse mesmo problema ao tentar rodar um programa em Python em uma distribuição Linux brasileira, Biglinux(que é baseada em Arch).
A solução:
sudo ln -s /usr/lib/libmpv.so /usr/lib/libmpv.so.1
Funcionou perfeitamente, muito obrigado @yashasolutions !!!!
English:
I had this same problem when trying to run a Python program on a Brazilian Linux distribution, Biglinux (which is based on Arch).
The solution:
sudo ln -s /usr/lib/libmpv.so /usr/lib/libmpv.so.1
It worked perfectly, thank you very much @yashasolutions!!!!
Tive esse mesmo problema ao tentar rodar um programa em Python em uma distribuição Linux brasileira, Biglinux(que é baseada em Arch). A solução:
sudo ln -s /usr/lib/libmpv.so /usr/lib/libmpv.so.1
Funcionou perfeitamente, muito obrigado @yashasolutions !!!!English:
I had this same problem when trying to run a Python program on a Brazilian Linux distribution, Biglinux (which is based on Arch). The solution:
sudo ln -s /usr/lib/libmpv.so /usr/lib/libmpv.so.1
It worked perfectly, thank you very much @yashasolutions!!!!
nice, but for me it is still not working, i am being asked to link multiple dependencies, I think flet team must jump into this pit and help us
Hold on guys, I'm working on "light" version of desktop client for Linux with Audio/Video disabled: https://github.com/flet-dev/flet/issues/3163
In Ubuntu 24.04 LTS, I got the same error and solved it with this:
sudo apt update
sudo apt install libmpv-dev libmpv2
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpv.so /usr/lib/libmpv.so.1
Credits for this YouTube tutorial: https://youtu.be/dA53LgkDFEw?si=Z7n8YpGLOfJ2q_tw
The problem
error while loading shared libraries: libmpv.so.1
However, mpv is installed on the system (linux Arch):
The hacky fix
so a quick symlink can fix the problem:
and then it works but I am sure the dependency resolution could figure this out on its own without this kind solution.
(side note: just found about Flet today, it looks amazing, can't wait to give a go with a real project)