Sign in or 

|
Seine |
DBusException
Jul 1 2007, 9:37 AM EDT
I'm not too good with python, but I managed to detect that the script was throwing a DBusException each loop iteration. Here's the traceback...Traceback (most recent call last): File "./awn_plugin_listen.py", line 41, in main vars = {'title' : listen.get_title(), 'artist' : listen.get_artist(), 'album' : listen.get_album()} File "/var/lib/python-support/python2.5/dbus/proxies.py", line 85, in __call__ return self._proxy_method(*args, **keywords) File "/var/lib/python-support/python2.5/dbus/proxies.py", line 169, in __call__ reply_message = self._connection.send_message_with_reply_and_block(message, timeout) DBusException: org.freedesktop.DBus.Python.dbus.exceptions.UnknownMethodException: Traceback (most recent call last): File "/var/lib/python-support/python2.5/dbus/service.py", line 429, in _message_cb (candidate_method, parent_method) = _method_lookup(self, method_name, interface_name) File "/var/lib/python-support/python2.5/dbus/service.py", line 222, in _method_lookup raise UnknownMethodException('%s is not a valid method of interface %s' % (method_name, dbus_interface)) UnknownMethodException: Unknown method: get_title is not a valid method of interface org.gnome.Listen Have I done something wrong setting this up? PS, without additional handling this just looks like its working but doing nothing. Do you find this valuable?
Keyword tags:
None
|
|
Seine |
1. RE: DBusException
Jul 1 2007, 9:55 AM EDT
With further mucking around, it looks like I can get the method current_playing ( http://www.listen-project.org/browser/trunk/src/dbus_manager.py#L137 ) but not get_title or artist. Why might that be I wonder...
Do you find this valuable?
|
|
Seine |
2. RE: DBusException
Jul 2 2007, 8:58 AM EDT
Using DBUS Inspector I find that the methods available on Listen 0.5 are: quit,play,current_playing,play_pause,next,enqueue,hello. previous. Without get_cover_path, current_position and current_song_length there's not much point in an AWN hook.So, have I done something wrong to miss out on these extra DBus methods? Do you find this valuable? |