emesene / emesene-supported-plugins

set of plugins supported by the emesene team
http://www.emesene.org
15 stars 11 forks source link

Idle status plugin broken? #27

Closed Sbte closed 13 years ago

Sbte commented 13 years ago

Traceback (most recent call last): File "/home/sven/.config/emesene2/plugins/idle_status/plugin.py", line 65, in idle_state idleTime = self.timer.get_idle_duration() AttributeError: 'NoneType' object has no attribute 'get_idle_duration' Traceback (most recent call last): File "/home/sven/.config/emesene2/plugins/idle_status/plugin.py", line 65, in idle_state idleTime = self.timer.get_idle_duration() AttributeError: 'NoneType' object has no attribute 'get_idle_duration'

arielj commented 13 years ago

You are using linux, right? I only tested this on windows, the xlib method is just ported from emesene1, wrapped like the windows method but not tested. I'll try to fix it when I get some time.

hit commented 13 years ago

Fixed? I'm still getting this very same error on linux.

Sbte commented 13 years ago

sudo apt-get install python-xlib

hit commented 13 years ago

[hit@sahver ~]$ pacman -Qs python-xlib local/python-xlib 0.15rc1-4 A fully functional X client library for Python programs

Sbte commented 13 years ago

Then, if you just downloaded the new plugin, and removed the old stuff, it should be fixed.

hit commented 13 years ago

Alright, needed to "rm *.pyc" as well..

Sbte commented 13 years ago

Yeah, it was importing Xlib from the Xlib module, so it tried to import itself. And pyc files are compiled python files, and if they are found when there is no py file, python will just use those.

So it's working now?

hit commented 13 years ago

Just tried and seems to work. Thanks for fixing it!

Sbte commented 13 years ago

I was actually waiting for someone else to fix it, but wanted to use it myself too. So I'm happy too :P