How to install the plugin ?

Asked by Pratyush

Hi,
I especially loved the idea of plugin (with mirage support) and want to use the same (don't like the Banshee with mirage interface - also it has some duplicate library issues).

I tried to use the AutoQueue plugin on Rhythmbox, and unable to get it to work on it, I even tried to install it on QuodLibet.

Installation Steps:

First I installed Banshee player with mirage plugin (using Synaptic) - [alternate:sudo apt-get install banshee-extension-mirage].
After that took following steps-

Installation steps on Rhythmbox:
1) Downloaded the package using: bzr branch lp:autoqueue
2) Copied autoqueue.py,
 mirage.py,
 mirage_miximize.py,
 mirage_songs.py,
 rhythmbox_autoqueue.py,
 rhythmbox_autoqueue.rb-plugin
 and res directory
to ~/.gnome2/rhythmbox/plugins
3) Started Rhythmbox >> Activated Autoqueue Plugin

Results: Nothing seems to happen. No songs are added to the queue.

Installation steps on QuodLibet:
1) Downloaded the package using: bzr branch lp:autoqueue
2) Copied autoqueue.py,
 mirage.py,
 mirage_miximize.py,
 mirage_songs.py,
 quodlibet_autoqueue.py
 and res directory
to /usr/lib/python2.6/dist-packages/quodlibet/plugins/songsmenu
3) Started QuodLibet >> Autoqueue Plugin is still SHOWN in the plugins list

Results: Can't activate the plugin.

Please provide the help with installations as I am a newbie to Ubuntu and love Rhythmbox (also started liking QuodLibet a bit).

Cheers,
Pratyush

Question information

Language:
English Edit question
Status:
Answered
For:
autoqueue Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #516282.

Revision history for this message
Eric Casteleijn (thisfred) said :
#1

Hi, I think the rhythmbox support may be currently broken, but quodlibet should work. The plugin should be installed to the 'events' plugin directory, rather than the 'songsmenu' one.

Also, rather that putting all the files in /usr/lib/..., I'd suggest putting them in ~/.quodlibet/plugins/events, which is the recommended place to put plugins, and you won't need root access to put them there.

Revision history for this message
Eric Casteleijn (thisfred) said :
#2

If things still don't work, there is a 'Show Errors' button in the quodlibet plugins dialog, and pasting any tracebacks related to autoque from there will help me determine what the problem could be.

Revision history for this message
awegawef (tim-spam-email) said :
#3

Hey Eric, your plugin sounds great and I'd love to get it running. My traceback:

quodlibet_autoqueue

Traceback (most recent call last):
  File "/home/mellort/.quodlibet/plugins/events/quodlibet_autoqueue.py", line 17, in <module>
    from autoqueue import AutoQueueBase, SongBase, SQL
  File "/usr/lib/python2.6/dist-packages/quodlibet/__init__.py", line 126, in import_ql
    old_import("quodlibet." + module, *args, **kwargs)
ImportError: No module named autoqueue

Revision history for this message
Eric Casteleijn (thisfred) said :
#4

hi awegawef,

It looks like you only dropped the quodlibet_autoqueue.py file in the ~/.quodlibet/plugin/events directory. It also needs autoqueue.py, mirage.py and the res/ directory to be there.

I am working on making autoqueue easier to install, so that it will be just a single file, but I don't know when this will happen exactly.

Also: next time, could you please open a new bug or question, so that different issues stay small and isolated? That makes it easier to mark bugs as fixed.

Revision history for this message
Eric Casteleijn (thisfred) said :
#5

Hi Pratyush,

I now have commited a fix so that rhythmbox support should once again work.

The installation steps you mention above are correct, so:

1) Downloaded the package using: bzr branch lp:autoqueue
2) Copied autoqueue.py,
 mirage.py,
 mirage_miximize.py,
 mirage_songs.py,
 rhythmbox_autoqueue.py,
 rhythmbox_autoqueue.rb-plugin
 and res directory
to ~/.gnome2/rhythmbox/plugins
3) Started Rhythmbox >> Activated Autoqueue Plugin

If you're curious to see what the plugin does, or check that it's working at all, start rhythmbox from the command line like so
;

rhythmbox -D autoqueue

Note that the rhythmbox version is not configurable (yet) and it doesn't have all the nifty options the quodlibet version has, simply because rhythmbox doesn't have all the features quodlibet does.

Revision history for this message
Eric Casteleijn (thisfred) said :
#6

Please let me know if it now works for you, so that I can close this bug.

Revision history for this message
Pratyush (m-launchpad-fully-faltoo-com) said :
#7

Hi Eric,

thanks for the efforts. I tried the above instructions but I doubt it worked. Here is the log:

** (rhythmbox:6186): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed

** (rhythmbox:6186): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed

** (rhythmbox:6186): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed
/home/pratyush/.gnome2/rhythmbox/plugins/artdisplay_browser/__init__.py:24: DeprecationWarning: the sets module is deprecated
  from sets import Set

(rhythmbox:6186): Rhythmbox-WARNING **: Could not open device /dev/radio0
(rhythmbox:6186): Rhythmbox-DEBUG: Received SaveYourself(SmSaveLocal, !Shutdown, SmInteractStyleNone, !Fast) in state idle
(rhythmbox:6186): Rhythmbox-DEBUG: Setting initial properties
(rhythmbox:6186): Rhythmbox-DEBUG: Sending SaveYourselfDone(True) for initial SaveYourself
(rhythmbox:6186): Rhythmbox-DEBUG: Received SaveComplete message in state save-yourself-done

(<unknown>:6203): GLib-WARNING **: g_set_prgname() called multiple times
Traceback (most recent call last):
  File "/home/pratyush/.gnome2/rhythmbox/plugins/rhythmbox_autoqueue.py", line 92, in playing_entry_changed
    self.on_song_started(Song(entry, self.rdb))
  File "/home/pratyush/.gnome2/rhythmbox/plugins/autoqueue.py", line 291, in on_song_started
    for artist_name in artist_names:
TypeError: 'NotImplementedType' object is not iterable

Am I doing it wrong ?

Revision history for this message
Eric Casteleijn (thisfred) said :
#8

I think you haven't updated to the latest version yet, the easiest way to make sure is, in a terminal:

bzr branch lp:autoqueue

and then copy the files in the autoqueue directory that creates and place them in the proper place.

If you have already done so, perhaps there are .pyc files that are out of date (which sometimes happens when using symbolic links) so perhaps deleting those and starting rhythmbox again may help.

Revision history for this message
Eric Casteleijn (thisfred) said :
#9

or alternatively, in your current checkout, do a bzr pull. That should result in some changes.

Revision history for this message
Kirk Bridger (kbridger) said :
#10

I'm trying to find out if the RB update works.

I've pulled the latest bzr. However the instructions are not entirely clear to me, as there appear to be multiple plugins in the single pull, and there is an autoqueue under a dir called autoqueue, So when you suggest I move a file to the autoqueue dir, I'm not sure what you mean. I'm new to RB plugins so please bear with me.

It would be great if you could confirm that this is the entire list of file moves needed to get this working:

From: bzr/autoqueue
drwxr-xr-x 3 kirk kirk 4096 2010-03-08 22:05 autoqueue --> do nothing
-rw-r--r-- 1 kirk kirk 17987 2010-03-08 22:05 COPYING.txt --> do nothing
-rw-r--r-- 1 kirk kirk 1007 2010-03-08 22:05 COPYRIGHT.txt --> do nothing
-rw-r--r-- 1 kirk kirk 15285 2010-03-08 22:05 distribute_setup.py --> do nothing
drwxr-xr-x 4 kirk kirk 4096 2010-03-08 22:05 mirage --> ??? copy the entire folder to ~/.gnome2/rhythmbox/plugins/autoqueue???
-rw-r--r-- 1 kirk kirk 6371 2010-03-08 22:05 mirage_miximize.py --> copy to ~/.gnome2/rhythmbox/plugins/autoqueue
-rw-r--r-- 1 kirk kirk 1558 2010-03-08 22:05 mirage_songs.py --> copy to ~/.gnome2/rhythmbox/plugins/autoqueue
-rw-r--r-- 1 kirk kirk 19417 2010-03-08 22:05 mpd_autoqueue.py --> do nothing
-rw-r--r-- 1 kirk kirk 12144 2010-03-08 22:05 quodlibet_autoqueue.py --> do nothing
-rw-r--r-- 1 kirk kirk 4464 2010-03-08 22:05 README.txt --> do nothing
drwxr-xr-x 2 kirk kirk 4096 2010-03-08 22:19 rhythmbox_autoqueue --> ??? copy both files inside to ~/.gnome2/rhythmbox/plugins/autoqueue ???
-rw-r--r-- 1 kirk kirk 1279 2010-03-08 22:05 setup.py --> do nothing

Revision history for this message
Eric Casteleijn (thisfred) said :
#11

Hi Kirk,

actually running:

sudo python setup.py install

should install the plugin for rhythmbox (if rhythmbox is installed already)

Can you help with this problem?

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

To post a message you must log in.