Bug#693508: hamster-applet: hamster-time-tracker fails to start

Andrey Rahmatullin wrar at wrar.name
Sat Nov 17 13:37:12 UTC 2012


Control: severity -1 important
Control: tags -1 + patch

> When I start hamster-time-tracker, it fails with the error message:
> 
> Traceback (most recent call last):
>   File "/usr/bin/hamster-time-tracker", line 602, in <module>
>     app = ProjectHamster()
>   File "/usr/bin/hamster-time-tracker", line 110, in __init__
>     self.init_workspace_tracking()
>   File "/usr/bin/hamster-time-tracker", line 209, in init_workspace_tracking
>     if not wnck: # can't track if we don't have the trackable
> NameError: global name 'wnck' is not defined
Note that this happens only if the workspace tracking is enabled, it is
off by default. Hence I'm lowering the severity.


> This started to happen after an upgrade on Tuesday 13 November: 
No, apparently it started when you enabled the option. I'm sure this
cannot work and it doesn't work in the current upstream version, see also
https://github.com/projecthamster/hamster/issues/38

Looks like the problem can be fixed by adding 

try:
    import wnck
except:
    logging.warning("Could not import wnck - workspace tracking will be disabled")
    wnck = None

or anything equivalent to src/hamster-applet. That doesn't mean the
feature works though, as it seems nobody tested it...

-- 
WBR, wRAR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20121117/e49cdaaf/attachment.pgp>


More information about the pkg-gnome-maintainers mailing list