Bug 366566 - kajongg can't start due to an "AttributeError: 'Tileset'"
Summary: kajongg can't start due to an "AttributeError: 'Tileset'"
Status: RESOLVED FIXED
Alias: None
Product: kajongg
Classification: Applications
Component: general (show other bugs)
Version: 4.13.0
Platform: Mageia RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Wolfgang Rohdewald
URL:
Keywords:
: 387517 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-08-09 20:08 UTC by David Geiger
Modified: 2018-04-18 16:08 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***