thewh1teagle / vibe

Transcribe on your own!
https://thewh1teagle.github.io/vibe/
MIT License
917 stars 55 forks source link

[Bug]: vibe: error while loading shared libraries: libavutil.so.56: cannot open shared object file: No such file or directory #76

Closed benjaminbellamy closed 4 months ago

benjaminbellamy commented 4 months ago

What happened?

Vibe 1.0.7 crashes when starting it on Ubuntu 23.10.

Steps to reproduce

  1. Run Ubuntu 23.10
  2. Install Vibe deb package: vibe_1.0.7_amd64.deb
  3. Run it
  4. Bam: vibe: error while loading shared libraries: libavutil.so.56: cannot open shared object file: No such file or directory

What OS are you seeing the problem on?

Linux

Relevant log output

vibe: error while loading shared libraries: libavutil.so.56: cannot open shared object file: No such file or directory

Problem seems to be caused by wrong library versions expected by vibe:

Lib Expected version Installed version
libavcodec.so 58 60
libswresample.so 3 4
libswscale.so 5 7
libavdevice.so 58 60
libavfilter.so 7 9
libavformat.so 58 60
libavutil.so 56 58
wawax commented 4 months ago

I have the same issue, also running on ubuntu 23.10 :

thewh1teagle commented 4 months ago

Thanks for reporting! I'm not sure what we can do about it. I compiled it on Ubuntu 22.04, which likely uses different versions of ffmpeg, though it's not an old Ubuntu version. Ubuntu 23.10 probably has newer versions available in APT. Any ideas?

benjaminbellamy commented 4 months ago

I have ffmpeg version 6.0-6ubuntu1

ElBarbossa commented 4 months ago

After trying the installation under Debian and it failed, I went directly through Docker with an Ubuntu 22.04 with X11. Everything works perfectly

benjaminbellamy commented 4 months ago

I tried with vibe 2.0.0, same problem. Vibe is looking for very specific library versions, so unless you have the exact same environment there is very little chance that you get it to work. :-/

thewh1teagle commented 4 months ago

I believe that the only solution is to compile it on ubuntu 23.10 so it will match the newest libraries because ffmpeg doesn't have backwards compatibility

benjaminbellamy commented 4 months ago

I'm on 24.04 now… ;-) I tried to compile, with no luck:

Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 28, in <module>
    from CommandNotFound import CommandNotFound
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 19, in <module>
    from CommandNotFound.db.db import SqliteDatabase
  File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 3, in <module>
    import sqlite3
  File "/usr/lib/python3.12/sqlite3/__init__.py", line 57, in <module>
    from sqlite3.dbapi2 import *
  File "/usr/lib/python3.12/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: /usr/lib/python3.12/lib-dynload/_sqlite3.cpython-312-x86_64-linux-gnu.so: undefined symbol: sqlite3_enable_load_extension
thewh1teagle commented 4 months ago

The tool command-not-found failed to execute, meaning that just before it was running, some command was not found Maybe try to remove the package command-not-found to get better error. Have you followed the instructions in BUILDING.md?

thewh1teagle commented 4 months ago

I've uploaded new release for ubuntu 23.0 or ubuntu 24.0 vibe_2.0.0_amd64_ubuntu_24.04.deb

You can install simply by

cd /tmp
wget -q --show-progress https://github.com/thewh1teagle/vibe/releases/download/v2.0.0/vibe_2.0.0_amd64_ubuntu_24.04.deb
sudo apt install ./vibe_2.0.0_amd64_ubuntu_24.04.deb --reinstall

Tested on Ubuntu 24.04 Let me know if it works for you :)

Btw, you can use vibe directly from the shell. see vibe --help

wawax commented 4 months ago

thanks you @thewh1teagle , it works fine on ubuntu 23.10 in my case !

thewh1teagle commented 4 months ago

Amazing! If anyone else experience this issue again, feel free to comment / open a new issue

benjaminbellamy commented 4 months ago

👌 Working perfectly on Ubuntu 24.04.