GNOME Bugzilla – Bug 358939
Unable to activate some python plugins.
Last modified: 2007-06-19 09:48:10 UTC
Please describe the problem: It's reported error and call-traces by python interpreter when artdisplay plugin is enabled like: Traceback (most recent call last):
+ Trace 74024
self.set_entry(sp.get_playing_entry ())
self.art_db.get_pixbuf(db, entry, self.on_get_pixbuf_completed)
rb.Coroutine (self.image_search, db, st_album, st_artist, entry, callback).begin ()
self._resume ()
self._continuation.next ()
engine.search (db, entry, plexer.send ())
if st_album == _("Unknown"):
Steps to reproduce: 1. Launch rhythmbox in command line from GNOME console. 2. Select a "Plugins..." in "Edit" menu to show the "Configure Plugin" dialog. 3. Enable "Art Display" in the list. 4. Insert Music CD to your machine, then Select "Scan Removable Media" in "Musing" menu. 5. The title of CD will be appeared at side-pane of main window, then push "Play" button to play a truck. 6. Python claimed above error. Actual results: Can not activate 'artdisplay' plugin from rhythmbox, and 'lyrics' and 'python-console' have also same error. Expected results: The image of CD cover would be appered in side-pain of main window (, and other plugins would be activated). Does this happen every time? True. Other information: My work around is filed here.
Created attachment 73831 [details] [review] a working around this problem to apply as patch. I add gettext module into the plugin script.
You shouldn't need to do that, our python module loader should inject that into the namespace. In fact, importing it manually can break i18n (bug 343081). I can't reproduce the error, so something odd must be going on.
Are you still seeing this?
OK, I understood and will try the next release.
Ubuntu bug about that: https://launchpad.net/distros/ubuntu/+source/rhythmbox/+bug/73284 Do you have any idea on informations that could be useful from the submitter about that bug?
About the only useful thing I can think of is if they run it from a terminal and see whether a "could not import gettext" warning is emitted (no -d needed). If so, I'll need to add some code to write out more a extensive error report; if not, I'm basically out of ideas.
The ubuntu bug submiter didn't reply, other people subscribed to the bug didn't the problem recently, I've closed the launchpad bug for now
(In reply to comment #5) > Ubuntu bug about that: > https://launchpad.net/distros/ubuntu/+source/rhythmbox/+bug/73284 > > Do you have any idea on informations that could be useful from the submitter > about that bug? > It seems this was a bug with python in Ubuntu Edgy, not rhythmbox. Sorry for the noise.
This is actually a bug in python's gettext module. It's also causing bug 409540. http://sourceforge.net/tracker/index.php?func=detail&aid=1448060&group_id=5470&atid=105470 We can fix this by removing a couple of lines from ja.po: "Plural-Forms: nplurals=1; plural=0;\n" "#-#-#-#-# ja.po (monkey-media HEAD) #-#-#-#-#\n" "#-#-#-#-# ja.po (rhythmbox 0.4.1.99) #-#-#-#-#\n" the #-#-#-# lines are causing the problem.
I've removed those lines in trunk and stable; hopefully the next translation update won't revert this..