Open braboat opened 3 months ago
Try this
sudo apt install libmpv-dev mpv
Sorry about that!
Flet 0.20.0 includes a new Video
control.
To test Flet apps on Linux, the libmpv package must be installed. On Ubuntu/Debian you can install it with sudo apt install libmpv-dev mpv
.
We are going to do optional Flet installation in the next releases.
Any time I try to run my app with the latest version Flet (0.20.0) on Ubuntu (23.10), I get this error message:
"error while loading shared libraries: libmpv.so.1: cannot open shared object file: No such file or directory"
But if I run the same file with version (0.19.0) everything works.
use this file https://drive.google.com/file/d/1mxYxhcCfigZ55xI9xT0ntd9f5QNSyfCD/view?usp=sharing place this file in the /usr/local/ib/ directory and then use the sudo ln -s /usr/local/lib/libmpv.so.1 /usr/lib/libmpv.so.1 command
Did that (ln -s /usr/lib/libmpv.so.1 /usr/local/lib/libmpv.so.1) but now I get: flet: error while loading shared libraries: libmujs.so.2: cannot open shared object file: No such file or directory
Have you installed the libmpv-dev, libmpv2, mpv and mpv-build-deps libraries found in the package manager?
mvwilpe @.***>, 16 Şub 2024 Cum, 12:30 tarihinde şunu yazdı:
Did that (ln -s /usr/lib/libmpv.so.1 /usr/local/lib/libmpv.so.1) but now I get: flet: error while loading shared libraries: libmujs.so.2: cannot open shared object file: No such file or directory
— Reply to this email directly, view it on GitHub https://github.com/flet-dev/flet/issues/2637#issuecomment-1948035191, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDXQYGSJZQAWPXJCIGDVLGDYT4RLDAVCNFSM6AAAAABDJLKLMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBYGAZTKMJZGE . You are receiving this because you commented.Message ID: @.***>
I'm sorry, you need to install the libmujs-dev and libmujs2 packages to fix this error.
mvwilpe @.***>, 16 Şub 2024 Cum, 12:30 tarihinde şunu yazdı:
Did that (ln -s /usr/lib/libmpv.so.1 /usr/local/lib/libmpv.so.1) but now I get: flet: error while loading shared libraries: libmujs.so.2: cannot open shared object file: No such file or directory
— Reply to this email directly, view it on GitHub https://github.com/flet-dev/flet/issues/2637#issuecomment-1948035191, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDXQYGSJZQAWPXJCIGDVLGDYT4RLDAVCNFSM6AAAAABDJLKLMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBYGAZTKMJZGE . You are receiving this because you commented.Message ID: @.***>
Cannot find libmujs2 (Unable to locate) . The rest was already installed.
https://answers.launchpad.net/ubuntu/lunar/amd64/libmujs2
mvwilpe @.***>, 16 Şub 2024 Cum, 13:23 tarihinde şunu yazdı:
Cannot find ibmujs2 (Unable to locate) . The rest was already installed.
— Reply to this email directly, view it on GitHub https://github.com/flet-dev/flet/issues/2637#issuecomment-1948115758, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDXQYGTHEQC5D6UWD3HIJQDYT4XTDAVCNFSM6AAAAABDJLKLMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBYGEYTKNZVHA . You are receiving this because you commented.Message ID: @.***>
https://answers.launchpad.net/ubuntu/lunar/amd64/libmujs2/1.3.2-1
mvwilpe @.***>, 16 Şub 2024 Cum, 13:23 tarihinde şunu yazdı:
Cannot find ibmujs2 (Unable to locate) . The rest was already installed.
— Reply to this email directly, view it on GitHub https://github.com/flet-dev/flet/issues/2637#issuecomment-1948115758, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDXQYGTHEQC5D6UWD3HIJQDYT4XTDAVCNFSM6AAAAABDJLKLMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBYGEYTKNZVHA . You are receiving this because you commented.Message ID: @.***>
It finally works! However, after installing libmujs2, iIalso had to install libjpeg62 .
👍
17 Şub 2024 Cmt 12:13 tarihinde mvwilpe @.***> şunu yazdı:
It finally works! However, after installing libmujs2, iIalso had to install libjpeg62 .
— Reply to this email directly, view it on GitHub https://github.com/flet-dev/flet/issues/2637#issuecomment-1949910916, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDXQYGUWAIT4O4VJJCN7SFDYUBYDLAVCNFSM6AAAAABDJLKLMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBZHEYTAOJRGY . You are receiving this because you commented.Message ID: @.***>
👋
17 Şub 2024 Cmt 13:09 tarihinde Burhan Süleyman Vural < @.***> şunu yazdı:
👍
17 Şub 2024 Cmt 12:13 tarihinde mvwilpe @.***> şunu yazdı:
It finally works! However, after installing libmujs2, iIalso had to install libjpeg62 .
— Reply to this email directly, view it on GitHub https://github.com/flet-dev/flet/issues/2637#issuecomment-1949910916, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDXQYGUWAIT4O4VJJCN7SFDYUBYDLAVCNFSM6AAAAABDJLKLMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBZHEYTAOJRGY . You are receiving this because you commented.Message ID: @.***>
Finally working after installing:
There is no package for 23.10 (mantic) for libmujs2
Hello, I pass on my knowledge and how I was able to advance with the different libraries that Flet requests. 1 - in the case of libmujs https://www.reddit.com/r/archlinux/comments/1b0ywwn/flet_error_in_arch_linux/https://archlinux.org/packages/extra/x86_64/mujs/files/ sudo ln -s /usr/local/lib/libmujs.so /usr/lib/libmujs.so.2 2 - then I had the error with the liblua5.2.so.0 lib, I did exactly the same thing as point 1 but with the lua libraries that I already had. 3- then I had problems with lib libuchardet.so.x, install uchardet 4- then lib libjpeg.so.62, I did what was in step 1 but modifying from another lib, example sudo ln -s /usr/lib/libjpeg.so.8 /usr/lib/libjpeg.so.62 5- then lib libsixel.so.1, install libsixel-1.10.3-5 6- then lib libxpresent, install libxpresent-1.0.1-1 7- stuck with this error:
.flet/bin/flet-0.21.1/flet/flet: /usr/lib/libjpeg.so.8: version `LIBJPEG_6.2' not found (required by /usr/lib/libmpv.so.1)
.flet/bin/flet-0.21.1/flet/flet: /usr/lib/liblua5.2.so.0: no version information available (required by /usr/lib/libmpv.so.1)
All in vain....
Hello, same issu as above, I have Flet (0.20.0), I when I try to run the code on ubuntu 23.10 I got the error below. I followed the thed tutorial on the oficial docs and in this page , nothing had worked though. Any other suggestion? PS: I'm ableto run wiht Flet 0.19.0
same here, thanks @rangergeronimo for the suggestion to use 0.19.0
How do I get this working on Fedora Linux? I tried installing mpv
and mpv-devel
.
sudo apt install libmpv-dev mpv libmujs2 libjpeg62
it's work for me on Ubuntu 23.10 thank's all
sudo apt install libmpv-dev mpv libmujs2 libjpeg62
it's work for me on Ubuntu 23.10 thank's all
I have ubuntu 23.10, and I don't know how this could work for you since package libmujs2
is not available at all in ubuntu 23.10, maybe you are running another version.
By the way I installed libmujs2
using deb linked in this bug report, then I gave same exact comand you suggested:
sudo apt install libmpv-dev mpv libmujs2 libjpeg62
I updated flet to 0.22.0 and I got this other missing library error:
.flet/bin/flet-0.22.0/flet/flet: error while loading shared libraries: libmpv.so.1: cannot open shared object file: No such file or directory
Are you sure you are using ubuntu 23.10? Which version of libmujs2 are you using ? I installed libmujs2_1.3.2-1_amd64.deb
, what about flet version?
I did a search for finding which package should provide me libmpv.so.1
, using apt-file which searches across all filenames available across all available packages (not only installed):
apt-file search libmpv.so.1
-> nothing found
things changes a little bit when I remove the .1
:
apt-file search libmpv.so
libmpv-dev: /usr/lib/x86_64-linux-gnu/libmpv.so
libmpv2: /usr/lib/x86_64-linux-gnu/libmpv.so.2
libmpv2: /usr/lib/x86_64-linux-gnu/libmpv.so.2.1.0
As you can see it is possible to install libmpv.so.2 , but I don't think that installing libmpv2
will solve the error about missing libmpv.so.1
UPDATE: it seems that creating a symlink like suggested here: https://github.com/flet-dev/flet/discussions/2907:
going into /usr/lib/x86_64-linux-gnu
then ln -s libmpv.so libmpv.so.1
made it work, I don't know if it is working good since I only created a basic example, but at least, with 0.22.0, mine app start.
Hey !
I've got the same problem: error while loading shared libraries: libmpv.so.1: cannot open shared object file: No such file or directory
.
So, I followed the instructions. (the following screenshots are in French but they also say that the programs are already installed)
I have libmpv-dev and mpv installed :
I took the file libmpv.so.1 and put it into my /usr/local/lib/
folder (on the right here). Then, I created a link between /usr/local/lib/libmpv.so.1
and /usr/lib/libmpv.so.1
and all the files libmpv.so.2
are linked to the initial file /usr/local/lib/libmpv.so.1
.
I also installed libmujs2 and libjpeg62 :
I use python 3.11 and flet 0.22.1, but the problem persists :
Have I done something wrong ?
Are you sure you are using ubuntu 23.10? Which version of libmujs2 are you using ? I installed
libmujs2_1.3.2-1_amd64.deb
, what about flet version?
Yes, I`m sure. On my computer instaaled Ubuntu 23.10 I spent a lot of time looking for a solution to this problem. I performed some actions that I found in Google search. Maybe I installed some other package. Sorry, I can't give you the full details.
Flet is last version on current time
Any time I try to run my app with the latest version Flet (0.20.0) on Ubuntu (23.10), I get this error message:
"error while loading shared libraries: libmpv.so.1: cannot open shared object file: No such file or directory"
But if I run the same file with version (0.19.0) everything works.