Bug 19931 - hamster-time-tracker fails to start
Summary: hamster-time-tracker fails to start
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Jani Välimaa
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-12 04:55 CET by Nic Baxter
Modified: 2016-12-12 15:53 CET (History)
0 users

See Also:
Source RPM: hamster-time-tracker-2.0-0.rc1.3.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Nic Baxter 2016-12-12 04:55:21 CET
[nic@albert ~]$ hamster
/usr/lib/python2.7/site-packages/hamster/lib/configuration.py:33: PyGIWarning: GConf was imported without specifying a version first. Use gi.require_version('GConf', '2.0') before import to ensure that the right version gets loaded.
  from gi.repository import GConf as gconf
Traceback (most recent call last):
  File "/bin/hamster", line 387, in <module>
    hamster_client.overview()
  File "/bin/hamster", line 152, in overview
    self._launch_window("overview")
  File "/bin/hamster", line 143, in _launch_window
    getattr(server, window_name)()
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.KeyError: Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/bin/hamster-windows-service", line 38, in overview
    def overview(self): dialogs.overview.show(self.app)
  File "/usr/lib/python2.7/site-packages/hamster/lib/configuration.py", line 149, in show
    dialog = self.get_dialog_class()(parent, **kwargs)
  File "/usr/lib/python2.7/site-packages/hamster/overview.py", line 394, in __init__
    self.fact_tree = FactTree()
  File "/usr/lib/python2.7/site-packages/hamster/widgets/facttree.py", line 219, in __init__
    self.date_label = Label(10, 3)
  File "/usr/lib/python2.7/site-packages/hamster/widgets/facttree.py", line 59, in __init__
    self.layout = pangocairo.create_layout(self._label_context)
KeyError: 'could not find foreign type Context'

The I installed:

[nic@albert ~]$ sudo urpmi python-gi-cairo
[sudo] password for nic: 


    http://mirror.internode.on.net/pub/mageia/distrib/cauldron/x86_64/media/core/release/python-gi-cairo-3.22.0-1.mga6.x86_64.rpm
installing python-gi-cairo-3.22.0-1.mga6.x86_64.rpm from /var/cache/urpmi/rpms                                        
Preparing...                     ####################################################################################
      1/1: python-gi-cairo       ####################################################################################
[nic@albert ~]$ hamster
/usr/lib/python2.7/site-packages/hamster/lib/configuration.py:33: PyGIWarning: GConf was imported without specifying a version first. Use gi.require_version('GConf', '2.0') before import to ensure that the right version gets loaded.
  from gi.repository import GConf as gconf

Now working.

Try to reproduce:

[nic@albert ~]$ sudo urpme hamster
The following packages contain hamster: 
hamster-time-tracker-2.0-0.rc1.3.mga6.noarch
xfce4-hamster-plugin-1.6.1-2.mga6.x86_64
[nic@albert ~]$ sudo urpme hamster-time-tracker
To satisfy dependencies, the following 2 packages will be removed (2.3MB):
  hamster-time-tracker-2.0-0.rc1.3.mga6.noarch
  xfce4-hamster-plugin-1.6.1-2.mga6.x86_64
   (due to missing hamster-time-tracker)
Remove 2 packages? (y/N) y
removing hamster-time-tracker-2.0-0.rc1.3.mga6.noarch xfce4-hamster-plugin-1.6.1-2.mga6.x86_64
removing package xfce4-hamster-plugin-1.6.1-2.mga6.x86_64
      1/2: removing xfce4-hamster-plugin-1.6.1-2.mga6.x86_64
                                 ####################################################################################
removing package hamster-time-tracker-2.0-0.rc1.3.mga6.noarch
      2/2: removing hamster-time-tracker-2.0-0.rc1.3.mga6.noarch
                                 ####################################################################################
writing /var/lib/rpm/installed-through-deps.list


[nic@albert ~]$ sudo urpme python-gi-cairo
removing python-gi-cairo-3.22.0-1.mga6.x86_64
removing package python-gi-cairo-3.22.0-1.mga6.x86_64
      1/1: removing python-gi-cairo-3.22.0-1.mga6.x86_64
                                 ####################################################################################
[nic@albert ~]$ sudo urpmi hamster-time-tracker


    http://mirror.internode.on.net/pub/mageia/distrib/cauldron/x86_64/media/core/release/hamster-time-tracker-2.0-0.rc1.3.mga6.noarch.rpm
installing hamster-time-tracker-2.0-0.rc1.3.mga6.noarch.rpm from /var/cache/urpmi/rpms                                
Preparing...                     ####################################################################################
      1/1: hamster-time-tracker  ####################################################################################
[nic@albert ~]$ sudo urpmi xfce4-hamster-plugin


    http://mirror.internode.on.net/pub/mageia/distrib/cauldron/x86_64/media/core/release/xfce4-hamster-plugin-1.6.1-2.mga6.x86_64.rpm
installing xfce4-hamster-plugin-1.6.1-2.mga6.x86_64.rpm from /var/cache/urpmi/rpms                                    
Preparing...                     ####################################################################################
      1/1: xfce4-hamster-plugin  ####################################################################################
python-gi-cairo does not get installed using dependancies.

[nic@albert ~]$ hamster
/usr/lib/python2.7/site-packages/hamster/lib/configuration.py:33: PyGIWarning: GConf was imported without specifying a version first. Use gi.require_version('GConf', '2.0') before import to ensure that the right version gets loaded.
  from gi.repository import GConf as gconf
[nic@albert ~]$ sudo urpmi python-gi-cairo


    http://mirror.internode.on.net/pub/mageia/distrib/cauldron/x86_64/media/core/release/python-gi-cairo-3.22.0-1.mga6.x86_64.rpm
installing python-gi-cairo-3.22.0-1.mga6.x86_64.rpm from /var/cache/urpmi/rpms                                        
Preparing...                     ####################################################################################
      1/1: python-gi-cairo       ####################################################################################
[nic@albert ~]$ hamster
/usr/lib/python2.7/site-packages/hamster/lib/configuration.py:33: PyGIWarning: GConf was imported without specifying a version first. Use gi.require_version('GConf', '2.0') before import to ensure that the right version gets loaded.
  from gi.repository import GConf as gconf

Works!
Nic Baxter 2016-12-12 04:56:57 CET

Source RPM: (none) => hamster-time-tracker-2.0-0.rc1.3.mga6.src.rpm

Comment 1 Jani Välimaa 2016-12-12 15:53:13 CET
Fixed in hamster-time-tracker-2.0-0.rc1.4.mga6.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.