Bug 503856

Summary: Kajongg can't start from snap
Product: [Applications] kajongg Reporter: showfom
Component: generalAssignee: Scarlett Moore <sgmoore>
Status: ASSIGNED ---    
Severity: normal CC: kde-games-bugs-null, sgmoore, wolfgang
Priority: NOR    
Version First Reported In: 25.04.0   
Target Milestone: ---   
Platform: Snap   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description showfom 2025-05-06 16:56:53 UTC
SUMMARY

Kajongg can't start, installed from snap

STEPS TO REPRODUCE
1.  `sudo snap install kajongg`
2.  `snap run kajongg`

OBSERVED RESULT

```
Traceback (most recent call last):
  File "/snap/kajongg/52/usr/bin/kajongg", line 18, in <module>
    from qt import QObject, QCommandLineParser, QCommandLineOption, Qt, QGuiApplication
  File "/snap/kajongg/52/usr/share/kajongg/qt.py", line 18, in <module>
    from qtpy import QT6, PYQT6, PYSIDE6
ModuleNotFoundError: No module named 'qtpy'
```

I also tried to run it directly but failed:

```
$ /snap/kajongg/52/usr/bin/kajongg
Traceback (most recent call last):
  File "/snap/kajongg/52/usr/bin/kajongg", line 18, in <module>
    from qt import QObject, QCommandLineParser, QCommandLineOption, Qt, QGuiApplication
ModuleNotFoundError: No module named 'qt'
```
Comment 1 Wolfgang Rohdewald 2025-05-06 17:02:28 UTC
seems like snapcraft.yaml is missing a dependency: https://pypi.org/project/QtPy/
Comment 2 Scarlett Moore 2025-05-15 13:17:46 UTC
Having issues getting pip to build qtpy, tried with both pyside6 and pyqt6. I am guessing because they are qt6.9 and snaps are still at 6.8.3 so this is stuck for now.