You are not logged in.

#1 2009-08-10 20:56:31

2_Thumbs_Up
Member
Registered: 2009-05-09
Posts: 22

mpd notification script issue

I'm a newbie to python and having some problems getting the following script to work correctly:

http://github.com/magcius/mpdsetup/tree/master (the mpdnotify.py together with the config file)

I'v encountered numerous error messages but I've managed to work out most of them myself.
However, I'm stuck at the following one:

Traceback (most recent call last):
  File "/home/user/.bin/mpdnotify.py", line 221, in <module>
    daemon()
  File "/home/uesr/.bin/mpdnotify.py", line 173, in daemon
    reasons = client.idle()
  File "/usr/lib/python2.6/site-packages/mpd.py", line 130, in __getattr__
    (self.__class__.__name__, attr))
AttributeError: 'MPDClient' object has no attribute 'idle'

Any help appreciated.

Offline

#2 2009-08-10 21:29:07

raf_kig
Member
Registered: 2008-11-28
Posts: 143

Re: mpd notification script issue

What makes you think that there is an idle() command?

Offline

#3 2009-08-10 21:35:22

2_Thumbs_Up
Member
Registered: 2009-05-09
Posts: 22

Re: mpd notification script issue

raf_kig wrote:

What makes you think that there is an idle() command?

I was a bit unclear i guess. I'm actually not the authour of this script. I'm just
trying to get it to work on my computer (and learn a few things in the progress).

I found the script at http://mpd.wikia.com/wiki/Hacks

Offline

#4 2009-08-10 21:39:48

scj
Member
From: Sweden
Registered: 2007-09-23
Posts: 158

Re: mpd notification script issue

You need to update your mpc to 0.16.x (I think)

But using python to call mpc to communicate with a mpd server is doing it kind of ass backwards if you ask me.

Offline

#5 2009-08-10 21:49:15

2_Thumbs_Up
Member
Registered: 2009-05-09
Posts: 22

Re: mpd notification script issue

scj wrote:

You need to update your mpc to 0.16.x (I think)

But using python to call mpc to communicate with a mpd server is doing it kind of ass backwards if you ask me.

Thank you, that could definitely be it.

And yeah, I realize the hack is probably quite ugly but I've been looking quite a bit for a way to get mpd notifications
without sonata running. The other scripts I've found have been either uglier (as far as I can tell at least).

Offline

Board footer

Powered by FluxBB