eonpatapon/mpDris2 — Issue #16: OSError: No such file or directory
Author: madchine
Created: 2012-02-03 22:35:09+00:00
State: open

Version: Installed from git via Arch Linux AUR February 3rd 2012

Problem: "OSError: Nu such file or directory". Results (?) in no metadata being exposed by service.

Error:

[~] mpDris2 -p /var/lib/mpd/music 192.168.1.66
2012-02-03 23:00:27,072 mpDris2 INFO: Using /var/lib/mpd/music as music library path
Traceback (most recent call last):
File "/usr/bin/mpDris2", line 307, in monitor
metadata = self._dbus_service.update_property('org.mpris.MediaPlayer2.Player', 'Metadata')
File "/usr/bin/mpDris2", line 536, in update_property
value = getter()
File "/usr/bin/mpDris2", line 446, in __get_metadata
return format_metadata(mpd_wrapper.currentsong())
File "/usr/bin/mpDris2", line 677, in format_metadata
for f in os.listdir(basedirpath):
OSError: [Errno 2] No such file or directory: '/var/lib/mpd/music/discotheque/bob dylan/bringing it all back home'

Background:
I'm trying to get mpDris2 to connect to my MPD server on a remote machine in order to expose MPD to the Gnome 3 music integration extension. Command:

mpDris2 -p /var/lib/mpd/music 192.168.1.66

The result is however less than perfect. All metadata are lost and represented as 'Unknown Artist', 'Unknown Title', etc. See screen shot:

http://dl.dropbox.com/u/50373568/mpdris2fail.png

I have checked on the remote machine that the directory given is indeed the mpd.conf directory and that the file is indeed there. I have also tried using some form of 'remote path indication', like 192.168.1.66://var/lib/mpd/music etc. Same error. In any case, the exception should probably be caught.

The mpd server address is correct (and fixed) and mpDris2 does provide the applet with access to the server, just not the metadata. I know this because the controls in the applet work (play, pause, stop, etc.)