Comment 4 for bug 816503

Revision history for this message
Graham White (graham-alton) wrote :

Sadly, this doesn't seem to have fixed the problem for me. I get the same error message:

(08:29:16) [0x98de0d0] [rb_python_module_init] rb-python-module.c:406: Init of python module
Traceback (most recent call last):
  File "/usr/lib/rhythmbox/plugins/rhythmbox_autoqueue/__init__.py", line 79, in <module>
    class AutoQueuePlugin(rb.Plugin, AutoQueueBase):
TypeError: Error when calling the metaclass bases
    metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

(rhythmbox:21184): Rhythmbox-WARNING **: Could not load plugin rhythmbox_autoqueue

(08:29:16) [0x98de0d0] [rb_python_module_finalize] rb-python-module.c:413: Finalizing python module (null)

(rhythmbox:21184): Rhythmbox-WARNING **: Error, impossible to activate plugin 'Autoqueue plugin'

This time I tried checking out the trunk, made it into an RPM to upgrade my previous alpha7 version, then did then upgrade so I should have the very latest version of all parts of the code now. Just to be clear, the diff between the plugin files appears to simple be the following:

--- /usr/lib/rhythmbox/plugins/rhythmbox_autoqueue/__init__.py 2011-07-27 08:16:46.000000000 +0100
+++ __init__.py 2011-05-06 16:32:26.000000000 +0100
@@ -68,8 +68,7 @@

     def get_rating(self):
         """Return the rating of the song."""
- rating = self.db.entry_get(self.song, rhythmdb.PROP_RATING)
- return rating / 5.0
+ return 5.0 / self.db.entry_get(self.song, rhythmdb.PROP_RATING)

     def get_playcount(self):
         """Return the playcount of the song."""

Thanks for the speedy response. I'm happy to continue testing and can submit a modified version of the spec file once we get this going as I noticed the trunk version now makes up the quodlibet plugin too which I've added in there now.