Bug 366566

Summary: kajongg can't start due to an "AttributeError: 'Tileset'"
Product: [Applications] kajongg Reporter: David Geiger <geiger.david68210>
Component: generalAssignee: Wolfgang Rohdewald <wolfgang>
Status: RESOLVED FIXED    
Severity: normal CC: kde-games-bugs, leon244, rdieter, simonandric5, wolfgang
Priority: NOR    
Version: 4.13.0   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description David Geiger 2016-08-09 20:08:44 UTC
Hi,

On Mageia 6 we can't use kajongg anymore due to an AttributeError: 'Tileset':

$ kajongg
Traceback (most recent call last):
  File "/bin/kajongg", line 188, in <module>
    MainWindow()
  File "/usr/share/apps/kajongg/mainwindow.py", line 144, in __init__
    self.setupUi()
  File "/usr/share/apps/kajongg/mainwindow.py", line 254, in setupUi
    self.windTileset = Tileset(Internal.Preferences.windTilesetName)
  File "/usr/share/apps/kajongg/tileset.py", line 108, in __init__
    self.__noTilesetsFound()
AttributeError: 'Tileset' object has no attribute '_Tileset__noTilesetsFound'
$

$ kajongg --version
Qt : 4.8.7
Plate-forme de développement de KDE : 4.14.22
Ka-jongg : 4.13.0
$

This is with the latest kajongg release: kajongg-16.04.3

Reproducible: Always
Comment 1 Rex Dieter 2016-08-09 20:26:24 UTC
is libkmahjongg installed ?

(had similar problem in fedora until I added the necessary dependency)
Comment 2 Rex Dieter 2016-08-09 20:27:36 UTC
In particular, kde4-based libkmahjongg-14.12.3 (or newer libkmahjongg-16.04.x if care is taken that it installs tilesets to the same place kmajongg expects)
Comment 3 Wolfgang Rohdewald 2016-08-09 20:29:04 UTC
You could edit /usr/share/apps/kajongg/tileset.py and replace __noTilesetsFound with __noTilesetFound.

An upcoming version of kajongg will have that typo fixed.

If you fix that, you will get another error message telling you that kajongg was not able to find any tilesets, asking you whether libkmahjongg is installed.

So the real question is - do you have libkmahjongg installed? If not, why? Did you only use the official Mageia package installer? If yes, please ask Mageia to doublecheck kajongg package dependencies
Comment 4 David Geiger 2016-08-09 20:56:27 UTC
Ok found! as it is still an kde4 apps we need to install libkmahjongg from kde4 and not the one from kf5.
Comment 5 Wolfgang Rohdewald 2017-12-03 14:03:01 UTC
*** Bug 387517 has been marked as a duplicate of this bug. ***