Kirigami for Python guide: "org.kde.desktop" is not installed

I am trying to make an application following the Kirigami “Creating a Python package” tutorial. When I reach the part of the tutorial that has me run the following command:

pipx run --system-site-packages --spec . kirigami_hello

I get the following error message:

QQmlApplicationEngine failed to load component
file:///home/user/.cache/pipx/51065e28599072d/lib64/python3.13/site-packages/kirigami_python/qml/Main.qml: module “org.kde.desktop” is not installed

I am using KDE, and I am using a Fedora distrobox ( Package fedora-toolbox · GitHub ) and have installed all of the dependencies. What do I need to do to get the app running?

Aha. There’s an issue in the Prerequisites list: it should be kf6-qqc2-desktop-style, not qqc2-desktop-style (that’s the KF5 package).

It should work once you install kf6-qqc2-desktop-style.

Thank you! I have made a pull request to fix this in the tutorial.

2 Likes