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

Attachment: signature.asc
Description: Digital signature

Reply via email to