|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
ERROR: Couldn't attach to DCOP server!A year ago I setup a client-server using Perl to remotely run Amarok.
Worked perfectly. Now I'm running Amarok 2.0.2 on Ubuntu and when the script tries to connect to Amarok via DCOP I get: ERROR: Couldn't attach to DCOP server! I'm using the DCOP::Amarok::Player Perl module. This sound familiar to anyone? Thanks, -- Bill Moseley moseley@... Sent from my iMutt _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!On Saturday 09 May 2009 01:03:07 Bill Moseley wrote:
> A year ago I setup a client-server using Perl to remotely run Amarok. > Worked perfectly. Now I'm running Amarok 2.0.2 on Ubuntu and when the > script tries to connect to Amarok via DCOP I get: > > ERROR: Couldn't attach to DCOP server! > > I'm using the DCOP::Amarok::Player Perl module. > > This sound familiar to anyone? Yes. Amarok 2.x no longer uses DCOP. Along with the rest of KDE, Amarok has switched to the DBus interprocess communicaton protocol. Amarok implements the MPRIS spec for media players, it can be seen here: http://wiki.xmms2.xmms.se/wiki/MPRIS cheers, leo ----- lfranchi@... Tufts University 2010 leonardo.franchi@... The KDE Project _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!On Sat, May 09, 2009 at 01:05:57AM +0100, Leonardo Franchi wrote:
> Yes. Amarok 2.x no longer uses DCOP. Along with the rest of KDE, Amarok has > switched to the DBus interprocess communicaton protocol. Amarok implements the > MPRIS spec for media players, it can be seen here: > > http://wiki.xmms2.xmms.se/wiki/MPRIS Ah, well that would explain it. I see in Perl's CPAN a number of XMMS clients, but I'm assuming those are not for the xmms2 library. -- Bill Moseley. moseley@... Sent from my iMutt _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!On Sat, May 09, 2009 at 01:05:57AM +0100, Leonardo Franchi wrote:
> Yes. Amarok 2.x no longer uses DCOP. Along with the rest of KDE, Amarok has > switched to the DBus interprocess communicaton protocol. Amarok implements the > MPRIS spec for media players, it can be seen here: > > http://wiki.xmms2.xmms.se/wiki/MPRIS Big party this weekend and my wife will be very unhappy if I can't hack up the remote to work. ;) Can anyone point me to an example client? I looked over the MRIPS wiki and then reviewed some of the clients, and specifically the Perl clients: http://wiki.xmms2.xmms.se/wiki/Writing_XMMS2_Clients http://git.xmms.se/?p=xmms2-tutorial.git;a=tree;f=perl;h=e9ddb47d9de9f7fb324b2e68d9bf1b14dcf14a7e;hb=c0162aad19da6bce3bfdb3b816bab8a7343a06b0 But, I don't really understand if all the xmms2 info applies to Amarok. I couldn't get the example clients above to work -- I was mostly stumbling around in the dark. Looks like there's a Perl client module available: http://search.cpan.org/~flora/Audio-XMMSClient-0.03/ and I'm hoping it's just a matter of configuring it correctly. Assuming that it's the correct protocol for Amarok. Again, I already have a remote control and I have a Perl script that reads the key presses. So, all I need is the interface to control Amarok. Thanks, -- Bill Moseley. moseley@... Sent from my iMutt _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!On May 11, 2009, at 5:35 PM, Bill Moseley wrote: > On Sat, May 09, 2009 at 01:05:57AM +0100, Leonardo Franchi wrote: >> Yes. Amarok 2.x no longer uses DCOP. Along with the rest of KDE, >> Amarok has >> switched to the DBus interprocess communicaton protocol. Amarok >> implements the >> MPRIS spec for media players, it can be seen here: >> >> http://wiki.xmms2.xmms.se/wiki/MPRIS > > Big party this weekend and my wife will be very unhappy if I can't > hack up the remote to work. ;) > > Can anyone point me to an example client? I looked over the MRIPS > wiki and then reviewed some of the clients, and specifically the Perl > clients: > > http://wiki.xmms2.xmms.se/wiki/Writing_XMMS2_Clients > http://git.xmms.se/?p=xmms2-tutorial.git;a=tree;f=perl;h=e9ddb47d9de9f7fb324b2e68d9bf1b14dcf14a7e;hb=c0162aad19da6bce3bfdb3b816bab8a7343a06b0 > > But, I don't really understand if all the xmms2 info applies to > Amarok. I couldn't get the example clients above to work -- I > was mostly stumbling around in the dark. > > Looks like there's a Perl client module available: > > http://search.cpan.org/~flora/Audio-XMMSClient-0.03/ > > and I'm hoping it's just a matter of configuring it correctly. > Assuming that it's the correct protocol for Amarok. > > Again, I already have a remote control and I have a Perl > script that reads the key presses. So, all I need is the interface > to control Amarok. There are probably ways to do what you want by settings amarok shortcuts to correspond to your remote keys. Nope, don't know how. > > Thanks, Sorry. > > > -- > Bill Moseley. > moseley@... > Sent from my iMutt > _______________________________________________ > Amarok mailing list > Amarok@... > https://mail.kde.org/mailman/listinfo/amarok _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!On Mon, May 11, 2009 at 06:28:19PM -0400, Orville Bennett wrote:
> > Again, I already have a remote control and I have a Perl > > script that reads the key presses. So, all I need is the interface > > to control Amarok. > Which would probably be kdelirc, which is unavailable in KDE until 4.3. > There are probably ways to do what you want by settings amarok > shortcuts to correspond to your remote keys. > Nope, don't know how. Ok, well at least I can do a few things, e.g.: amarok --play|--stop|--next|--pause And then control volume separately. Nowhere as nice as my interface last year with DCOP, but will do. My remote is getting pretty old. Maybe next year there will be an iPhone app I can make work with Amarok. I have one for my Slim Squeezecenter and it's pretty handy. -- Bill Moseley. moseley@... Sent from my iMutt _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!On Mon, May 11, 2009 at 6:46 PM, Bill Moseley <moseley@...> wrote:
> On Mon, May 11, 2009 at 06:28:19PM -0400, Orville Bennett wrote: >> > Again, I already have a remote control and I have a Perl >> > script that reads the key presses. So, all I need is the interface >> > to control Amarok. > >> Which would probably be kdelirc, which is unavailable in KDE until 4.3. >> There are probably ways to do what you want by settings amarok >> shortcuts to correspond to your remote keys. >> Nope, don't know how. > > Ok, well at least I can do a few things, e.g.: > > amarok --play|--stop|--next|--pause > You could also hack up something that uses qdbus directly, you can browse around with qdbusviewer (both come with Qt, so you should have them) > And then control volume separately. Nowhere as nice as my interface > last year with DCOP, but will do. > > > My remote is getting pretty old. Maybe next year there will be an > iPhone app I can make work with Amarok. I have one for my Slim > Squeezecenter and it's pretty handy. > > -- > Bill Moseley. > moseley@... > Sent from my iMutt > _______________________________________________ > Amarok mailing list > Amarok@... > https://mail.kde.org/mailman/listinfo/amarok > Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!Am Dienstag, 12. Mai 2009 04:29:21 schrieb Johannes Manhave:
> On Mon, May 11, 2009 at 6:46 PM, Bill Moseley <moseley@...> wrote: > > On Mon, May 11, 2009 at 06:28:19PM -0400, Orville Bennett wrote: > >> > Again, I already have a remote control and I have a Perl > >> > script that reads the key presses. So, all I need is the interface > >> > to control Amarok. > >> > >> Which would probably be kdelirc, which is unavailable in KDE until 4.3. > >> There are probably ways to do what you want by settings amarok > >> shortcuts to correspond to your remote keys. > >> Nope, don't know how. > > > > Ok, well at least I can do a few things, e.g.: > > > > amarok --play|--stop|--next|--pause > > You could also hack up something that uses qdbus directly, you can > browse around with qdbusviewer (both come with Qt, so you should have > them) > > > And then control volume separately. Nowhere as nice as my interface > > last year with DCOP, but will do. > > > > > > My remote is getting pretty old. Maybe next year there will be an > > iPhone app I can make work with Amarok. I have one for my Slim > > Squeezecenter and it's pretty handy. > > > > -- > > Bill Moseley. > > moseley@... > > Sent from my iMutt > > _______________________________________________ > > Amarok mailing list > > Amarok@... > > https://mail.kde.org/mailman/listinfo/amarok > > _______________________________________________ > Amarok mailing list > Amarok@... > https://mail.kde.org/mailman/listinfo/amarok _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!I'm remote-controlling my amarok with my bluetooth-phone. If you own one, you
could do this yourself. If you have a SonyEricsson-phone (like me): http://stefans.datenbruch.de/k750i/remote.shtml If you own a phone by another brand: http://developer.berlios.de/projects/lbrc/ Am Dienstag, 12. Mai 2009 04:29:21 schrieb Johannes Manhave: > On Mon, May 11, 2009 at 6:46 PM, Bill Moseley <moseley@...> wrote: > > On Mon, May 11, 2009 at 06:28:19PM -0400, Orville Bennett wrote: > >> > Again, I already have a remote control and I have a Perl > >> > script that reads the key presses. So, all I need is the interface > >> > to control Amarok. > >> > >> Which would probably be kdelirc, which is unavailable in KDE until 4.3. > >> There are probably ways to do what you want by settings amarok > >> shortcuts to correspond to your remote keys. > >> Nope, don't know how. > > > > Ok, well at least I can do a few things, e.g.: > > > > amarok --play|--stop|--next|--pause > > You could also hack up something that uses qdbus directly, you can > browse around with qdbusviewer (both come with Qt, so you should have > them) > > > And then control volume separately. Nowhere as nice as my interface > > last year with DCOP, but will do. > > > > > > My remote is getting pretty old. Maybe next year there will be an > > iPhone app I can make work with Amarok. I have one for my Slim > > Squeezecenter and it's pretty handy. > > > > -- > > Bill Moseley. > > moseley@... > > Sent from my iMutt > > _______________________________________________ > > Amarok mailing list > > Amarok@... > > https://mail.kde.org/mailman/listinfo/amarok > > _______________________________________________ > Amarok mailing list > Amarok@... > https://mail.kde.org/mailman/listinfo/amarok _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!Yes. Lot's of apps that relied on DCOP displayed this error in the latest KDE release (4+) so ended up seeing this all over the place after upgrading. Konsole was one of them. App developers may have caught up with KDE by now but not sure.
Anyway, I've managed to reenable DCOP following these steps http://www.microdevsys.com/WordPress/2008/12/04/fedora-9-kde-4x-error-couldnt-attach-to-dcop-server/ but your mileage may wary. This would essentially give you two messaging systems for a while. Maybe that can work for you until everyone switches to DBus completely. Regards, Ed KB
|
|
|
Re: ERROR: Couldn't attach to DCOP server!edkb wrote:
> Yes. Lot's of apps that relied on DCOP displayed this error in the latest > KDE release (4+) so ended up seeing this all over the place after upgrading. > Konsole was one of them. App developers may have caught up with KDE by now > but not sure. > > Anyway, I've managed to reenable DCOP following these steps > http://http://www.microdevsys.com/WordPress/2008/12/04/fedora-9-kde-4x-error-couldnt-attach-to-dcop-server/ > http://www.microdevsys.com/WordPress/2008/12/04/fedora-9-kde-4x-error-couldnt-attach-to-dcop-server/ > but your mileage may wary. I took a look at those posts. Seems like it'd be far easier (and faster) to just port the Perl module to use D-Bus. --Jeff _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!edkb wrote:
> Yes. Lot's of apps that relied on DCOP displayed this error in the latest > KDE release (4+) so ended up seeing this all over the place after > upgrading. > Konsole was one of them. App developers may have caught up with KDE by > now but not sure. > > Anyway, I've managed to reenable DCOP following these steps > http://www.microdevsys.com/WordPress/2008/12/04/fedora-9-kde-4x-error- couldnt-attach-to-dcop-server/ > but your mileage may wary. dcopserver will launch on-demand. That blog simply highlights failures due to botched permissions... once those are fixed, everything should "just work" again. -- Rex _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!Interesting. As I recall, dcopserver would simply die after being started through applications within the new KDE 4+ environment. Running /usr/bin/kdeinit as noted in the blog resolved the issue. I'm curious, what do you mean by botched permissions then?
Thanks, EdKB
|
|
|
Re: ERROR: Couldn't attach to DCOP server!edkb wrote:
> > Interesting. As I recall, dcopserver would simply die after being started > through applications within the new KDE 4+ environment. Running > /usr/bin/kdeinit as noted in the blog resolved the issue. I'm curious, > what do you mean by botched permissions then? The blog mentioned permissions, but re-reading, I think I misunderstood. True, dcopserver probably does stop running after some time has passed where no kde3 apps are running. I don't necessarily consider that a bug. -- Rex _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!On Sat, 2009-05-09 at 01:05 +0100, Leonardo Franchi wrote:
> Amarok 2.x no longer uses DCOP. Along with the rest of KDE, Amarok has > switched to the DBus interprocess communicaton protocol. Amarok implements the > MPRIS spec for media players, it can be seen here: > > http://wiki.xmms2.xmms.se/wiki/MPRIS Sorry for the very late reply, I am finally getting around to looking into this, almost six months later. I read this page, but it really doesn't tell me what I need to know. What I want to do is replace my DCOP remote control script with something that works for Amarok 2.2 . What I had was this: #!/bin/bash dcop --user greg amarok player $* This meant I could just do $ ssh musicmachine scriptname pause from any other machine in the house, and it would pause the music. This is the kind of thing I want to do. While the methods and XML syntax are described on the above web page, nowhere does it tell me how to actually use it to control Amarok. Anywhere I can find info on that? Thanks, --Greg > > cheers, > leo > > ----- > lfranchi@... Tufts University 2010 > leonardo.franchi@... The KDE Project > _______________________________________________ > Amarok mailing list > Amarok@... > https://mail.kde.org/mailman/listinfo/amarok _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!from a terminal, try:
"qdbus org.mpris.amarok" <- List dbus objects in amarok "qdbus org.mpris.amarok /Player" <- List methods on player object "qdbus org.mpris.amarok /Player Pause" <- CAll method "Pause" on player object hence pausing amarok - Nikolaj On Wed, Oct 28, 2009 at 10:39 PM, Greg Woods <greg@...> wrote: > On Sat, 2009-05-09 at 01:05 +0100, Leonardo Franchi wrote: >> Amarok 2.x no longer uses DCOP. Along with the rest of KDE, Amarok has >> switched to the DBus interprocess communicaton protocol. Amarok implements the >> MPRIS spec for media players, it can be seen here: >> >> http://wiki.xmms2.xmms.se/wiki/MPRIS > > Sorry for the very late reply, I am finally getting around to looking > into this, almost six months later. I read this page, but it really > doesn't tell me what I need to know. What I want to do is replace my > DCOP remote control script with something that works for Amarok 2.2 . > What I had was this: > > #!/bin/bash > dcop --user greg amarok player $* > > This meant I could just do > > $ ssh musicmachine scriptname pause > > from any other machine in the house, and it would pause the music. This > is the kind of thing I want to do. While the methods and XML syntax are > described on the above web page, nowhere does it tell me how to actually > use it to control Amarok. Anywhere I can find info on that? > > Thanks, > --Greg > > >> >> cheers, >> leo >> >> ----- >> lfranchi@... Tufts University 2010 >> leonardo.franchi@... The KDE Project >> _______________________________________________ >> Amarok mailing list >> Amarok@... >> https://mail.kde.org/mailman/listinfo/amarok > > _______________________________________________ > Amarok mailing list > Amarok@... > https://mail.kde.org/mailman/listinfo/amarok > Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!On Thu, 2009-10-29 at 10:57 +0100, Nikolaj Hald Nielsen wrote:
> from a terminal, try: > > "qdbus org.mpris.amarok" <- List dbus objects in amarok Thank you for the pointer to qdbus; that is the piece I was missing! --Greg _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!On Thu, 2009-10-29 at 10:57 +0100, Nikolaj Hald Nielsen wrote:
> qdbus org.mpris.amarok /Player I tried this: $ qdbus org.mpris.amarok /Player Service 'org.mpris.amarok' does not exist. Is there something I have to do inside Amarok to make this work? --Greg _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!> I tried this:
> > $ qdbus org.mpris.amarok /Player > Service 'org.mpris.amarok' does not exist. > > Is there something I have to do inside Amarok to make this work? Having Amarok 2 running should be enough. - Nikolaj _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
|
|
Re: ERROR: Couldn't attach to DCOP server!On Sun, 2009-11-15 at 16:31 +0100, Nikolaj Hald Nielsen wrote:
> > I tried this: > > > > $ qdbus org.mpris.amarok /Player > > Service 'org.mpris.amarok' does not exist. > > > > Is there something I have to do inside Amarok to make this work? > > Having Amarok 2 running should be enough. [greg@interface ~]$ rpm -q amarok amarok-2.2.0-2.fc11.i586 [greg@interface ~]$ qdbus org.mpris.amarok /Player Service 'org.mpris.amarok' does not exist. [greg@interface ~]$ su Password: [root@interface greg]# qdbus org.mpris.amarok /Player Service 'org.mpris.amarok' does not exist. [root@interface greg]# Tried it as root just to be sure. I know it's running because I hear the music as I type this. I tried one more thing: I opened a terminal window while on the console where Amarok is running. Now it works, but that is useless to me because what I need to be able to do is ssh in and control the player; if I'm on the console then I can just control Amarok directly. Is there something I have to do to be able to make this work other than on the X console? --Greg _______________________________________________ Amarok mailing list Amarok@... https://mail.kde.org/mailman/listinfo/amarok |
| < Prev | 1 - 2 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |