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

Fails to start: Couldn't load VAAPI library #87

Open
dsidlo opened this issue Jan 16, 2025 · 4 comments
Open

Fails to start: Couldn't load VAAPI library #87

dsidlo opened this issue Jan 16, 2025 · 4 comments

Comments

@dsidlo
Copy link

dsidlo commented Jan 16, 2025

PyGPT fails to start.
I'm using Ubuntu 22.04.5 LTS.

 PyGPT    2.4.48 build 2025-01-16 (Linux, x86_64)
 Author:  Marcin Szczyglinski
 GitHub:  https://github.com/szczyglis-dev/py-gpt
 Website: https://pygpt.net
 Email:   info@pygpt.net
===================================================

Initializing...
Loaded config: /home/dsidlo/snap/pygpt/342/.config/pygpt-net/config.json
Loaded models: /home/dsidlo/snap/pygpt/342/.config/pygpt-net/models.json
qt.multimedia.ffmpeg.libsymbolsresolver: Couldn't load VAAPI library
[719037:719037:0115/195342.067047:FATAL:credentials.cc(126)] Check failed: . : Permission denied (13)
/snap/pygpt/342/snaprun.sh: line 28: 719037 Trace/breakpoint trap   (core dumped) python3 $SNAP/src/pygpt_net/app.py "$@"

I tried to install VAAPI using...

apt-get install libva-dev libva-drm2 libva-x11-2 vainfo

... but that did not help.

@dsidlo
Copy link
Author

dsidlo commented Jan 16, 2025

@szczyglis-dev Can I bypass the feature with an option? I don't mind if video features are not available.

@szczyglis-dev
Copy link
Owner

No, there is a problem with permissions; VAAPI is not the issue here.

It is related to this topic:

#85

There are some problems in 22.04, like here:

https://forum.snapcraft.io/t/permissions-problem-with-some-of-snap-packages-after-updating-ubuntu-from-20-04-to-22-04/30119

I'll try to take a closer look at this in the coming days.

In the meantime, what does the following command show?

snap connections pygpt

@dsidlo
Copy link
Author

dsidlo commented Jan 16, 2025

Strange... I tried to roll back and get the failure in the prior version as well. I do remember an attempt to upgrade the OS before my last reboot, that failed to perform the upgrade, so it seems that video drivers may have gotten messed up then.
The issues is likely not due to the new package.

@radumwork
Copy link

radumwork commented Jan 22, 2025

Getting same error, as well as same history as mentioned, meaning I remember having this or similar issue like maybe a month or 2 back.
Details:

  • Kubuntu 24.04 LTS -> it was the beta that I have upgraded of course
  • Same issue on VM's even a 24.10 Kubuntu
  • Using easy effects for audio input/output (I did try after disabling it)
  • Tried installing the other methods and had issues
  • for example, some issue with pip3 "audio wheel error...."

EDIT: Btw. I remember reading yesterday something around problems with the qt version, but could be unrelated

My snap connections pygpt output:

Interface                                 Plug                               Slot                                                          Notes
alsa                                      pygpt:alsa                         :alsa                                                         manual
audio-playback                            pygpt:audio-playback               :audio-playback                                               -
audio-record                              pygpt:audio-record                 :audio-record                                                 manual
browser-support                           pygpt:browser-support              :browser-support                                              -
camera                                    pygpt:camera                       :camera                                                       manual
content                                   pygpt:docker-executables           -                                                             -
content[icon-themes]                      pygpt:icon-themes                  gtk-common-themes:icon-themes                                 -
content[kf5-5-113-qt-5-15-11-core22-all]  pygpt:kf5-5-113-qt-5-15-11-core22  kf5-5-113-qt-5-15-11-core22:kf5-5-113-qt-5-15-11-core22-slot  -
content[sound-themes]                     pygpt:sound-themes                 gtk-common-themes:sound-themes                                -
desktop                                   pygpt:desktop                      :desktop                                                      -
desktop-legacy                            pygpt:desktop-legacy               :desktop-legacy                                               -
docker                                    pygpt:docker                       -                                                             -
gsettings                                 pygpt:gsettings                    :gsettings                                                    -
home                                      pygpt:home                         :home                                                         -
network                                   pygpt:network                      :network                                                      -
network-bind                              pygpt:network-bind                 :network-bind                                                 -
opengl                                    pygpt:opengl                       :opengl                                                       -
pulseaudio                                pygpt:pulseaudio                   -                                                             -
serial-port                               pygpt:serial-port                  -                                                             -
unity7                                    pygpt:unity7                       :unity7                                                       -
wayland                                   pygpt:wayland                      :wayland                                                      -
x11                                       pygpt:x11                          :x11          

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants