Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old July 10th, 2008   #1
anemptygun
Quad Shot of Ubuntu
 
anemptygun's Avatar
 
Join Date: Sep 2007
Location: time of legends
Beans: 419
Send a message via AIM to anemptygun Send a message via MSN to anemptygun Send a message via Yahoo to anemptygun Send a message via Skype™ to anemptygun
Red face pidgin plugin

I download a pidgin plugin for banshee 1.0 from here and followed what it said put I cant seem to get it to work? anyone else used this, or any suggestions?
__________________
ANEMPTYGUN.COM
anemptygun is offline   Reply With Quote
Old July 10th, 2008   #2
roquefilipe
A Carafe of Ubuntu
 
Join Date: Jan 2006
Beans: 108
Re: pidgin plugin

assuming that pidgin and banshee are installed and running, you just have to run the script.

Code:
python pidgin_banshee_status.py
or give it run permissions:

Code:
chmod +x pidgin_banshee_status.py
and run it:

Code:
./pidgin_banshee_status.py
and try it. Changing songs should change the status on pidgin.


To not have the script hanging on the console append a "&".

If it works, then procede to make it start with ubuntu, just as the author said.
roquefilipe is offline   Reply With Quote
Old August 14th, 2008   #3
maddog39
Quad Shot of Ubuntu
 
Join Date: Mar 2006
Location: Pennsylvania, US
Beans: 441
Re: pidgin plugin

Hey anemptygun,

I am the author of the plugin. If it still does not work, could you post your terminal output (if any) and make sure both pidgin and banshee are running or it will fail to connect to them (although for me they automatically start up but I've seen both scenarios before). By the way, your nick sounds REALLY familiar to me, I think I know you from somewhere (not to get off topic though).

- Alec Hussey
__________________
Ubuntu User #: 0x2695 | Banshee 1.0 Pidgin Plugin
Code:
>>> from __future__ import braces
  File "<stdin>", line 1
SyntaxError: not a chance
maddog39 is offline   Reply With Quote
Old August 19th, 2008   #4
jakethecake
Spilled the Beans
 
Join Date: Jun 2007
Beans: 13
Wink Re: pidgin plugin

I get this error dump with pidgin 2.4.3 and Banshee 1.2.1.

Code:
jake@quad:~$ ./pidgin_banshee_status.py 
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "./pidgin_banshee_status.py", line 33, in bansheeStateChanged
    for account in self.pidgin.PurpleAccountsGetAllActive():
  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 607, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.28 was not provided by any .service files
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "./pidgin_banshee_status.py", line 33, in bansheeStateChanged
    for account in self.pidgin.PurpleAccountsGetAllActive():
  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 607, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.28 was not provided by any .service files
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "./pidgin_banshee_status.py", line 33, in bansheeStateChanged
    for account in self.pidgin.PurpleAccountsGetAllActive():
  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 607, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.28 was not provided by any .service files
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "./pidgin_banshee_status.py", line 33, in bansheeStateChanged
    for account in self.pidgin.PurpleAccountsGetAllActive():
  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 607, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.28 was not provided by any .service files
Traceback (most recent call last):
  File "./pidgin_banshee_status.py", line 51, in <module>
    gobject.MainLoop().run()
KeyboardInterrupt
jake@quad:~$
Code:
  1 #!/usr/bin/env python
  2 #+---------------------------------------------+
  3 #| Pidgin Banshee Status
  4 #+---------------------------------------------+
  5 #| Written by Alec Hussey
  6 #| Copyright (C) 2008 MadSoft
  7 #| Website: www.madsoft.org
  8 #| License: GNU General Public License v3
  9 #+---------------------------------------------+
 10 
 11 import dbus, gobject
 12 from dbus.mainloop.glib import DBusGMainLoop
 13 
 14 class BansheeStatusPlugin:
 15         def __init__(self):
 16                 bus = dbus.SessionBus()
 17                 bus.add_signal_receiver(self.bansheeStateChanged,
 18                                         dbus_interface="org.bansheeproject.Banshee.PlayerEngine",
 19                                         signal_name="StateChanged")
 20 
 21                 self.pidgin = bus.get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")
 22                 self.pidgin = dbus.Interface(self.pidgin, "im.pidgin.purple.PurpleInterface")
 23                 self.banshee = bus.get_object("org.bansheeproject.Banshee", "/org/bansheeproject/Banshee/PlayerEngin    e")
 24 
 25         def __resetPidginStatusMessage(self, message):
 26                 # Set new status message for the currently playing song
 27                 status = self.pidgin.PurpleSavedstatusGetCurrent()
 28                 self.pidgin.PurpleSavedstatusSetMessage(status, "Banshee: " + message)
 29                 self.pidgin.PurpleSavedstatusActivate(status)
 30 
 31         def bansheeStateChanged(self, state):
 32                 # Loop through all active accounts
 33                 for account in self.pidgin.PurpleAccountsGetAllActive():
 34                         # Get currently playing song from banshee
 35                         currentTrack = self.banshee.GetCurrentTrack()
 36 
 37                         # Reset pidgin status message with current track information
 38                         if state == "playing":
 39                                 self.__resetPidginStatusMessage(currentTrack['artist'] + " - " + currentTrack['name'    ])
 40                         elif state == "paused":
 41                                 self.__resetPidginStatusMessage("Paused")
 42 
 43 if __name__ == "__main__":
 44         # Setup dbus glib mainloop
 45         dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
 46 
 47         # Create new instance of our plugin class
 48         BansheeStatusPlugin()
 49 
 50         # Get main loop and run it
 51         gobject.MainLoop().run()
Code:
jake@quad:~$ dbus-monitor 
signal sender=org.freedesktop.DBus -> dest=:1.32 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.32"
method call sender=:1.32 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_call'"
method call sender=:1.32 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_return'"
method call sender=:1.32 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='error'"
method call sender=:1.30 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner
   string "org.gnome.Banshee"
method call sender=:1.30 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner
   string "org.gnome.Banshee"
signal sender=:1.30 -> dest=(null destination) path=/im/pidgin/purple/PurpleObject; interface=im.pidgin.purple.PurpleInterface; member=BuddyStatusChanged
   int32 6970
   int32 6962
   int32 6961
signal sender=:1.30 -> dest=(null destination) path=/im/pidgin/purple/PurpleObject; interface=im.pidgin.purple.PurpleInterface; member=BuddyStatusChanged
   int32 6503
   int32 6496
   int32 6494
method call sender=:1.30 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner
   string "org.gnome.Banshee"
signal sender=:1.30 -> dest=(null destination) path=/im/pidgin/purple/PurpleObject; interface=im.pidgin.purple.PurpleInterface; member=JabberSendingXmlnode
   int32 7694
   int32 31138
signal sender=:1.30 -> dest=(null destination) path=/im/pidgin/purple/PurpleObject; interface=im.pidgin.purple.PurpleInterface; member=JabberSendingText
   int32 7694
   string "<iq type='get' id='purple346d205d'><ping xmlns='urn:xmpp:ping'/></iq>"
signal sender=:1.30 -> dest=(null destination) path=/im/pidgin/purple/PurpleObject; interface=im.pidgin.purple.PurpleInterface; member=JabberReceivingXmlnode
   int32 7694
   int32 31142
method call sender=:1.30 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner
   string "org.gnome.Banshee"
method call sender=:1.30 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameHasOwner
   string "org.gnome.Banshee"
jakethecake is offline   Reply With Quote
Old October 5th, 2008   #5
ninboy
5 Cups of Ubuntu
 
ninboy's Avatar
 
Join Date: Sep 2007
Location: Caracas, Venezuela
Beans: 29
Ubuntu 9.04 Jaunty Jackalope
Re: pidgin plugin

Sorry to open this thread again, but have anyone find a solution for this? I'm willing to use Pidgin/Banshee
ninboy is offline   Reply With Quote
Old March 1st, 2009   #6
anemptygun
Quad Shot of Ubuntu
 
anemptygun's Avatar
 
Join Date: Sep 2007
Location: time of legends
Beans: 419
Send a message via AIM to anemptygun Send a message via MSN to anemptygun Send a message via Yahoo to anemptygun Send a message via Skype™ to anemptygun
Re: pidgin plugin

So if I am understanding this correctly banshee MUSTbe open before running this script?
__________________
ANEMPTYGUN.COM
anemptygun is offline   Reply With Quote
Old March 1st, 2009   #7
danielrmt
Grande Half-n-Half Cinnamon Ubuntu
 
Join Date: Nov 2008
Location: Atlantis
Beans: 997
Re: pidgin plugin

Have you tried pidgin-musictracker package? It works with XMMS, Audacious, Amarok, Rhythmbox, Banshee, QuodLibet, MPD and Exaile.
danielrmt is offline   Reply With Quote
Old March 1st, 2009   #8
anemptygun
Quad Shot of Ubuntu
 
anemptygun's Avatar
 
Join Date: Sep 2007
Location: time of legends
Beans: 419
Send a message via AIM to anemptygun Send a message via MSN to anemptygun Send a message via Yahoo to anemptygun Send a message via Skype™ to anemptygun
Re: pidgin plugin

I have, but I cannot seem to get it to work. I put the parameters in the status message (%p | %a | %t) and make sure i have all of the setting enabled correctly in the plugin but nothing happens.

I am using banshee btw.

p.s. I have myself added as a contact on AIM so I can see my status change to make sure it's working.
__________________
ANEMPTYGUN.COM
anemptygun is offline   Reply With Quote
Old March 14th, 2009   #9
theelk801
5 Cups of Ubuntu
 
Join Date: Oct 2007
Beans: 40
Re: pidgin plugin

I've installed the Music Tracker as well and I'm having the same problem. Could anyone shed some light on it?
theelk801 is offline   Reply With Quote

Bookmarks

Tags
banshee, pidgin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:27 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry