MPD and Banshee 1.8 not working

Asked by Instant

Neither of mpd 0.15.8 , 0.15.13 and Banshee 1.8.0 are working with covergloobus. I've tried both the covergloobus 1.6 release from the website and the bzr branch lp:covergloobus one. Both compile and install fine and work with MOC and VLC.

I wasn't able to find any workaround, but will be glad to provide more information if needed. Distro is Gentoo.

Question information

Language:
English Edit question
Status:
Answered
For:
CoverGloobus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alexandr Grigorcea (cahr-gr) said :
#1

works fine for me, banshee 1.8.0 and mpd 0.15.12

try running covergloobus from console and if some strange errors appear post them here

have you set host/port/password/library path in configuration for MPD ?

also if you have dbus-monitor app available, run it, run banshee, switch a couple of songs and see if dbus-monitor catches some banshee signals

Revision history for this message
Alexandr Grigorcea (cahr-gr) said :
#2

dbus-monitor is a cli app

Revision history for this message
Instant (drinstant) said :
#3

First of all, thanks for the swift reply!

dbus-monitor gives nothing but the following output:

signal sender=org.freedesktop.DBus -> dest=:1.51 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.51"
method call sender=:1.51 -> dest=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_call'"
method call sender=:1.51 -> dest=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_return'"
method call sender=:1.51 -> dest=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='error'"

I have no idea if this constitutes an error message or not. Happens with both dbus 1.2.24 and 1.4.0.

I know that this is not the place to ask for issues with dbus, so I will just continue trying around.

Thanks anyway. I'll report if I make any progress.

Revision history for this message
Alexandr Grigorcea (cahr-gr) said :
#4

those messages are normal, but when you change songs or play/pause in
banshee, new messages should appear, if they don't, well, maybe you have
some issues with banshee
also new messages should appear with other apps, for example just opening
nautilus creates a great stream of new messages, if you don't have them then
its really some kind of dbus problem, but I dont think so, because you said
CG works with VLC and it also uses dbus

what about MPD, have you managed to make cg work with it?
ah, I've forgot, you need python-mpd installed, otherwise it will not work
http://jatreuman.indefero.net/p/python-mpd/

On Wed, Nov 3, 2010 at 11:24 PM, Juri
<email address hidden>wrote:

> Question #132404 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/132404
>
> Juri gave more information on the question:
> First of all, thanks for the swift reply!
>
> dbus-monitor gives nothing but the following output:
>
> signal sender=org.freedesktop.DBus -> dest=:1.51 serial=2
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
> member=NameAcquired
> string ":1.51"
> method call sender=:1.51 -> dest=org.freedesktop.DBus serial=3
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
> string "type='method_call'"
> method call sender=:1.51 -> dest=org.freedesktop.DBus serial=4
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
> string "type='method_return'"
> method call sender=:1.51 -> dest=org.freedesktop.DBus serial=5
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
> string "type='error'"
>
> I have no idea if this constitutes an error message or not. Happens with
> both dbus 1.2.24 and 1.4.0.
>
> I know that this is not the place to ask for issues with dbus, so I will
> just continue trying around.
>
> Thanks anyway. I'll report if I make any progress.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Instant (drinstant) said :
#5

Hi again! To answer your questions: Yes, Bashee does indeed show up up dbus-monitor, but only opening and closing the app. No, I have not yet managed to get mpd to work either. python-mpd is of course installed.

So, yes, I don't think that a dbus problem is plausible. But it might just as well have something to do with both banshee and mpd. I don't know... I'll get back to it later.

Oh, another observation: covergloobus doesn't complain at all, so no message (console) about not finding the mpd server.

Cheers

Revision history for this message
Alexandr Grigorcea (cahr-gr) said :
#6

try running covergloobus --debug, something like 'MPD: connection failed'
should appear at some point, but this does not gives you any usefull info

On Wed, Nov 3, 2010 at 11:47 PM, Juri
<email address hidden>wrote:

> Question #132404 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/132404
>
> Status: Answered => Open
>
> Juri is still having a problem:
> Hi again! To answer your questions: Yes, Bashee does indeed show up up
> dbus-monitor, but only opening and closing the app. No, I have not yet
> managed to get mpd to work either. python-mpd is of course installed.
>
> So, yes, I don't think that a dbus problem is plausible. But it might
> just as well have something to do with both banshee and mpd. I don't
> know... I'll get back to it later.
>
> Oh, another observation: covergloobus doesn't complain at all, so no
> message (console) about not finding the mpd server.
>
> Cheers
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Instant (drinstant) said :
#7

Okay, so debug mod gives me the following with the recent branch:

Traceback (most recent call last):
  File "/usr//share/covergloobus/covergloobus.py", line 42, in <module>
    import docky
  File "/usr/share/covergloobus/docky.py", line 25, in <module>
    import common
  File "/usr/share/covergloobus/common.py", line 309, in <module>
    print get_lyric_engines()
NameError: name 'get_lyric_engines' is not defined

Strange, since cg fails to start with --debug, even though it starts fine without it. But it seems to be a different matter. The only time I get "FATAL_ERROR: The server is not running" is with MOC not started.

So back to 1.6. Indeed, I now get the following (amongst other messages):

[DEBUG] STATE: stopped
[DEBUG] MPD: maybe not active, trying to reconnect
[DEBUG] MPD: connecting
[DEBUG] MPD: connection failed
[DEBUG] Player not active

When doing the same thing with banshee, everything remains quiet.

Just to be sure about dbus-monitor, it doesn't show anything with MOC either, even though everything works just fine. VLC on the other hand gives a lot of output.

Revision history for this message
Alexandr Grigorcea (cahr-gr) said :
#8

ah, I've forgot about that problem in trunk, get_lyric_engines is called
only with --debug flag, thats why it runs well without it

moc is not using dbus, song info is retrieved using mocp --info,
"FATAL_ERROR: The server is not running" is moc error message, not cg

mpd is also not using dbus, so it's weir that it is not working, you can try
to access it directly from python console (there are some examples how to do
it on python-mpd site), if it works from python console then I am pretty
sure there is something wrong with you host/port/password configuration

On Thu, Nov 4, 2010 at 10:51 AM, Juri
<email address hidden>wrote:

> Question #132404 on CoverGloobus changed:
> https://answers.launchpad.net/covergloobus/+question/132404
>
> Status: Answered => Open
>
> Juri is still having a problem:
> Okay, so debug mod gives me the following with the recent branch:
>
> Traceback (most recent call last):
> File "/usr//share/covergloobus/covergloobus.py", line 42, in <module>
> import docky
> File "/usr/share/covergloobus/docky.py", line 25, in <module>
> import common
> File "/usr/share/covergloobus/common.py", line 309, in <module>
> print get_lyric_engines()
> NameError: name 'get_lyric_engines' is not defined
>
> Strange, since cg fails to start with --debug, even though it starts
> fine without it. But it seems to be a different matter. The only time I
> get "FATAL_ERROR: The server is not running" is with MOC not started.
>
> So back to 1.6. Indeed, I now get the following (amongst other
> messages):
>
> [DEBUG] STATE: stopped
> [DEBUG] MPD: maybe not active, trying to reconnect
> [DEBUG] MPD: connecting
> [DEBUG] MPD: connection failed
> [DEBUG] Player not active
>
> When doing the same thing with banshee, everything remains quiet.
>
> Just to be sure about dbus-monitor, it doesn't show anything with MOC
> either, even though everything works just fine. VLC on the other hand
> gives a lot of output.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Instant (drinstant) said :
#9

Seems to be a problem with python-mpd. Does this help?

>>> import mpd
>>> client = mpd.MPDClient()
>>> client.connect("localhost", 6600)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mpd.py", line 391, in connect
    self._sock = self._connect_tcp(host, port)
  File "mpd.py", line 382, in _connect_tcp
    raise socket.error(msg)
socket.error: getsockaddrarg: bad family

Happens with both python-mpd 2.1 and version 3 from the git repo. Thanks for your continued help, even though it probably hasn't anything to do with cg.

Can you help with this problem?

Provide an answer of your own, or ask Instant for more information if necessary.

To post a message you must log in.