Bug 373210 - Can't open settings dialog
Summary: Can't open settings dialog
Status: RESOLVED FIXED
Alias: None
Product: kajongg
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Wolfgang Rohdewald
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-03 09:51 UTC by Antonio Rojas
Modified: 2016-12-03 11:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 16.12
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Rojas 2016-12-03 09:51:16 UTC
The settings dialog doesn't open:

~ > kajongg
Traceback (most recent call last):
  File "/usr/share/apps/kajongg/animation.py", line 274, in doAfterQueuedAnimations
    return __afterCurrentAnimationDo(method, *args, **kwargs)
  File "/usr/share/apps/kajongg/animation.py", line 258, in __afterCurrentAnimationDo
    callback(None, *args, **kwargs)
  File "/usr/share/apps/kajongg/mainwindow.py", line 617, in showSettings
    self.confDialog = ConfigDialog(self, "settings")
  File "/usr/share/apps/kajongg/configdialog.py", line 112, in __init__
    TilesetSelector(self),
  File "/usr/share/apps/kajongg/tilesetselector.py", line 41, in __init__
    loadUi(self)
  File "/usr/share/apps/kajongg/guiutil.py", line 41, in loadUi
    uic.loadUi(os.path.join(directory, name), base)
  File "/usr/lib/python3.5/site-packages/PyQt4/uic/__init__.py", line 236, in loadUi
    return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
  File "/usr/lib/python3.5/site-packages/PyQt4/uic/Loader/loader.py", line 71, in loadUi
    return self.parse(filename, resource_suffix, basedir)
  File "/usr/lib/python3.5/site-packages/PyQt4/uic/uiparser.py", line 974, in parse
    document = parse(filename)
  File "/usr/lib/python3.5/xml/etree/ElementTree.py", line 1184, in parse
    tree.parse(source, parser)
  File "/usr/lib/python3.5/xml/etree/ElementTree.py", line 585, in parse
    source = open(source, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'tilesetselector.ui'

This is version 16.11.90, installed with cmake. tilesetselector.ui is installed in /usr/share/apps/kajongg/tilesetselector.ui
Comment 1 Wolfgang Rohdewald 2016-12-03 10:01:08 UTC
Never seen this.

Can you add some print debugs into uiparser.py / ElementTree.py to see where it tries to find tilesetselector.ui ?

Otherwise if you want me to be able to reproduce this - what OS are you using? Mine is kubuntu 16.10
Comment 2 Antonio Rojas 2016-12-03 10:37:13 UTC
uifile is simply "tilesetselector.ui", without any path
Comment 3 Wolfgang Rohdewald 2016-12-03 11:05:09 UTC
Git commit d801f84d285f44c84fd87d300e61ebfb7aa4de60 by Wolfgang Rohdewald.
Committed on 03/12/2016 at 11:02.
Pushed by wrohdewald into branch 'Applications/16.12'.

when not using KDE python bindings, add /usr/share/apps/kajongg to appdata search path
FIXED-IN: 16.12

M  +3    -1    src/kdestub.py

https://commits.kde.org/kajongg/d801f84d285f44c84fd87d300e61ebfb7aa4de60