Trouble installing anki on Fedora

Hello,
I’m having trouble installing Anki on Fedora (Xfce, installed using the net install ISO).
When I run anki I get this output:

Anki starting…
Initial setup…
Preparing to run…
File “”, line 1, in
File “aqt”, line 556, in run
File “aqt”, line 629, in _run
File “aqt.profiles”, line 139, in setupMeta
File “aqt.profiles”, line 424, in _loadMeta
resetting corrupt _global
Qt warning: QGuiApplication::setDesktopFileName: the specified desktop file name ends with .desktop. For compatibility reasons, the .desktop suffix will be removed. Please specify a desktop file name without .desktop suffix
Qt warning: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
Qt info: Could not load the Qt platform plugin “xcb” in “” even though it was found.
Qt fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, wayland, vnc, xcb, eglfs, offscreen, minimalegl, minimal, vkkhrdisplay, wayland-egl.

Aborted (core dumped)

I’ve installed a bunch of packages trying to find all the missing dependencies.
These are the packages I’ve installed for anki: zstd mpv xcb-util-cursor xcb-util libxcb libxcb-doc egl-wayland libxkbcommon-x11. Previously on new installs of Fedora xcb-util-cursor was what was needed. I guess
Now, starting anki with QT_DEBUG_PLUGINS=1 anki the output looks good apart from:

Qt debug: Got keys from plugin meta data QList(“wayland-egl”)
Qt debug: checking directory path “/usr/local/share/anki/platforms” …
Qt debug: “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so” cannot load: Cannot load library /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)
Qt debug: QLibraryPrivate::loadPlugin failed on “/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so” : “Cannot load library /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)”
Qt warning: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
Qt info: Could not load the Qt platform plugin “xcb” in “” even though it was found.
Qt fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, wayland, vnc, xcb, eglfs, offscreen, minimalegl, minimal, vkkhrdisplay, wayland-egl.

Aborted (core dumped)

I’ve searched for a package in the Fedora repos named something like ‘libxcb-icccm’, but I haven’t found anything.
I’d really appreciate some help.

You could install the pypi package instead with pipx. I’m pretty sure you can just,

sudo dnf install pipx
pipx install aqt

Hi @Maltesaa
I didn’t want to use pipx, but in the end I did. However, there were problems with the pypi package too. I’ve decided to continue trying to get anki running using the official method. I’ll update if I have any success.

Success!
After uninstalling pipx and reinstalling anki via the official method, anki launches fine.
I guess it was a dependency in one of the packages I installed trying to get the pypi package to work… I installed python-pyqt6 and python3-pyqt5-sip. I did try reinstalling before.
Regardless, I’m happy it’s working now.

2 Likes