Problem running app in fedora kde

, ,

I’m going to run the app ‘anki’, I’ve installed all deps but it doesn’t run:

 File "runanki.py", line 4, in <module>
  File "aqt/__init__.py", line 435, in run
  File "aqt/__init__.py", line 490, in _run
  File "aqt/profiles.py", line 134, in setupMeta
  File "aqt/profiles.py", line 501, in _loadMeta
resetting corrupt _global
Qt warning: Failed to load client buffer integration: "wayland-egl" 
Qt warning: Available client buffer integrations: () 
Qt warning: No shell integration named "xdg-shell" found 
Qt warning: No shell integration named "xdg-shell-v6" found 
Qt warning: No shell integration named "wl-shell" found 
Qt warning: No shell integration named "ivi-shell" found 
Qt warning: Loading shell integration failed. 
Qt warning: Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")

How did you install the app?

I see this:

# dnf list anki
Last metadata expiration check: 2:29:36 ago on Fri 13 Aug 2021 12:54:58 PM CDT.
Available Packages
anki.noarch                                                       2.1.15-4.fc34                                             fedora  

so if you installed it with dnf it should have pulled in all the required dependencies for you and you should not have these problems.
If you installed it by a different method then try removing what you installed (to avoid conflicts) and use the dnf method.

1 Like

it is an older version. I need latest
but it works with sudo that is stange
I don’t know what permission rules caused this?

If you are using a version that is not tested, verified, and distributed by fedora then you will need to work through the issues yourself.

It seems the errors you posted begin with problems in python scripts so you need to track down exactly what is erroring in that reported chain of functions and find out what is needed that is not already there.

Which version of Qt does it require? The first warning calls for wayland-egl. Are you running wayland or xorg for video?

Research the warnings about xdg-shell, xdg-shell-v6, wl-shell, and ivi-shell. It may be one of the qt packages or one of the python packages that is missing or the wrong version to support that “latest” version of the app that you claim to “need”. Possibly you may need to go outside the fedora repos to find what supports that “latest” version of your app.

To me it seems simpler and easier to accept that you could live with an older version of the app instead of the latest, and that with the older version all the dependencies are already available.

Fedora currently has Qt4, Qt5, and now Qt6 available. Python 3 in fedora 34 is now at 3.9.2. Which of these does your app actually need?

With everything I already have installed, installing anki will still pull in more as seen here.

# dnf install anki
Last metadata expiration check: 3:57:31 ago on Fri 13 Aug 2021 12:54:58 PM CDT.
Dependencies resolved.
====================================================================================================================================
 Package                              Architecture             Version                               Repository                Size
====================================================================================================================================
Installing:
 anki                                 noarch                   2.1.15-4.fc34                         fedora                   2.4 M
Installing dependencies:
 SDL2_image                           x86_64                   2.0.5-6.fc34                          fedora                    83 k
 SDL2_mixer                           x86_64                   2.0.4-8.fc34                          fedora                    81 k
 SDL2_ttf                             x86_64                   2.0.15-7.fc34                         fedora                    25 k
 opusfile                             x86_64                   0.12-3.fc34                           fedora                    54 k
 python3-httplib2                     noarch                   0.19.0-2.fc34                         fedora                   122 k
 python3-pyaudio                      x86_64                   0.2.11-10.fc34                        fedora                    38 k
 python3-pygame                       x86_64                   2.0.1-2.fc34                          fedora                   4.2 M
 python3-send2trash                   noarch                   1.4.2-15.fc34                         fedora                    23 k
 sox                                  x86_64                   14.4.2.0-30.fc34                      fedora                   421 k

Transaction Summary
====================================================================================================================================
Install  10 Packages

so I really doubt you have all the needed dependencies.

I also, just to see what happened, tried this: and maybe you can do the same to find out what is missing.

# dnf provides '*xdg-shell*'
Last metadata expiration check: 4:01:43 ago on Fri 13 Aug 2021 12:54:58 PM CDT.
golang-github-fyne-io-glfw-devel-0-0.1.20210402gitf227906.fc34.noarch : Go bindings for GLFW 3
Repo        : fedora
Matched from:
Other       : *xdg-shell*

mutter-tests-40.0-5.fc34.x86_64 : Tests for the mutter package
Repo        : fedora
Matched from:
Other       : *xdg-shell*

mutter-tests-40.3-1.fc34.x86_64 : Tests for the mutter package
Repo        : updates
Matched from:
Other       : *xdg-shell*

qt5-qtwayland-5.15.2-4.fc34.i686 : Qt5 - Wayland platform support and QtCompositor module
Repo        : fedora
Matched from:
Provide    : libxdg-shell.so
Provide    : libxdg-shell-v5.so
Provide    : libxdg-shell-v6.so

qt5-qtwayland-5.15.2-4.fc34.x86_64 : Qt5 - Wayland platform support and QtCompositor module
Repo        : fedora
Matched from:
Provide    : libxdg-shell.so()(64bit)
Provide    : libxdg-shell-v5.so()(64bit)
Provide    : libxdg-shell-v6.so()(64bit)

qt5-qtwayland-5.15.2-7.fc34.i686 : Qt5 - Wayland platform support and QtCompositor module
Repo        : updates
Matched from:
Provide    : libxdg-shell.so
Provide    : libxdg-shell-v5.so
Provide    : libxdg-shell-v6.so

qt5-qtwayland-5.15.2-7.fc34.x86_64 : Qt5 - Wayland platform support and QtCompositor module
Repo        : @System
Matched from:
Provide    : libxdg-shell-v5.so()(64bit)
Provide    : libxdg-shell-v6.so()(64bit)
Provide    : libxdg-shell.so()(64bit)

qt5-qtwayland-5.15.2-7.fc34.x86_64 : Qt5 - Wayland platform support and QtCompositor module
Repo        : updates
Matched from:
Provide    : libxdg-shell.so()(64bit)
Provide    : libxdg-shell-v5.so()(64bit)
Provide    : libxdg-shell-v6.so()(64bit)

qt5-qtwayland-devel-5.15.2-4.fc34.i686 : Development files for qt5-qtwayland
Repo        : fedora
Matched from:
Other       : *xdg-shell*

qt5-qtwayland-devel-5.15.2-4.fc34.x86_64 : Development files for qt5-qtwayland
Repo        : fedora
Matched from:
Other       : *xdg-shell*

qt5-qtwayland-devel-5.15.2-7.fc34.i686 : Development files for qt5-qtwayland
Repo        : updates
Matched from:
Other       : *xdg-shell*

qt5-qtwayland-devel-5.15.2-7.fc34.x86_64 : Development files for qt5-qtwayland
Repo        : @System
Matched from:
Other       : *xdg-shell*

qt5-qtwayland-devel-5.15.2-7.fc34.x86_64 : Development files for qt5-qtwayland
Repo        : updates
Matched from:
Other       : *xdg-shell*

qt5-qtwayland-doc-5.15.1-2.fc34.noarch : Documentation for qtwayland
Repo        : @System
Matched from:
Other       : *xdg-shell*

qt5-qtwayland-doc-5.15.1-2.fc34.noarch : Documentation for qtwayland
Repo        : fedora
Matched from:
Other       : *xdg-shell*

qt6-qtwayland-6.0.1-1.fc34.i686 : Qt6 - Wayland platform support and QtCompositor module
Repo        : fedora
Matched from:
Provide    : libxdg-shell.so

qt6-qtwayland-6.0.1-1.fc34.x86_64 : Qt6 - Wayland platform support and QtCompositor module
Repo        : fedora
Matched from:
Provide    : libxdg-shell.so()(64bit)

qt6-qtwayland-6.1.1-1.fc34.i686 : Qt6 - Wayland platform support and QtCompositor module
Repo        : updates
Matched from:
Provide    : libxdg-shell.so

qt6-qtwayland-6.1.1-1.fc34.x86_64 : Qt6 - Wayland platform support and QtCompositor module
Repo        : updates
Matched from:
Provide    : libxdg-shell.so()(64bit)

qt6-qtwayland-devel-6.0.1-1.fc34.i686 : Development files for qt6-qtwayland
Repo        : fedora
Matched from:
Other       : *xdg-shell*

qt6-qtwayland-devel-6.0.1-1.fc34.x86_64 : Development files for qt6-qtwayland
Repo        : fedora
Matched from:
Other       : *xdg-shell*

qt6-qtwayland-devel-6.1.1-1.fc34.i686 : Development files for qt6-qtwayland
Repo        : updates
Matched from:
Other       : *xdg-shell*

qt6-qtwayland-devel-6.1.1-1.fc34.x86_64 : Development files for qt6-qtwayland
Repo        : updates
Matched from:
Other       : *xdg-shell*

rust-wayland-protocols-devel-0.28.4-1.fc34.noarch : Generated API for the officials wayland protocol extensions
Repo        : fedora
Matched from:
Other       : *xdg-shell*

rust-wayland-protocols-devel-0.28.6-1.fc34.noarch : Generated API for the officials wayland protocol extensions
Repo        : updates
Matched from:
Other       : *xdg-shell*

wayland-protocols-devel-1.20-3.fc34.noarch : Wayland protocols that adds functionality not available in the core protocol
Repo        : fedora
Matched from:
Other       : *xdg-shell*

wayland-protocols-devel-1.21-1.fc34.noarch : Wayland protocols that adds functionality not available in the core protocol
Repo        : @System
Matched from:
Other       : *xdg-shell*

wayland-protocols-devel-1.21-1.fc34.noarch : Wayland protocols that adds functionality not available in the core protocol
Repo        : updates
Matched from:
Other       : *xdg-shell*

waylandpp-devel-0.2.8-5.fc34.i686 : Development files for waylandpp
Repo        : fedora
Matched from:
Other       : *xdg-shell*

waylandpp-devel-0.2.8-5.fc34.x86_64 : Development files for waylandpp
Repo        : fedora
Matched from:
Other       : *xdg-shell*

zoom-5.4.56259.1207-1.x86_64 : Zoom, #1 Video Conferencing and Web Conferencing Service
Repo        : @System
Matched from:
Other       : *xdg-shell*

they all exist, It works with sudo correctly but without it, it complains about wayland-egl but I’ve installed any qt or wayland related package