After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 358939 - Unable to activate some python plugins.
Unable to activate some python plugins.
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Plugins (other)
0.9.6
Other All
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-10-02 08:40 UTC by Takeshi AIHANA
Modified: 2007-06-19 09:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a working around this problem to apply as patch. (1.89 KB, patch)
2006-10-02 08:42 UTC, Takeshi AIHANA
rejected Details | Review

Description Takeshi AIHANA 2006-10-02 08:40:47 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):
  • File "/usr/lib/rhythmbox/plugins/artdisplay/__init__.py", line 71 in playing_changed
    self.set_entry(sp.get_playing_entry ())
  • File "/usr/lib/rhythmbox/plugins/artdisplay/__init__.py", line 101 in set_entry
    self.art_db.get_pixbuf(db, entry, self.on_get_pixbuf_completed)
  • File "/usr/lib/rhythmbox/plugins/artdisplay/CoverArtDatabase.py", line 66 in get_pixbuf
    rb.Coroutine (self.image_search, db, st_album, st_artist, entry, callback).begin ()
  • File "/usr/lib/rhythmbox/plugins/rb/Coroutine.py", line 49 in begin
    self._resume ()
  • File "/usr/lib/rhythmbox/plugins/rb/Coroutine.py", line 40 in _resume
    self._continuation.next ()
  • File "/usr/lib/rhythmbox/plugins/artdisplay/CoverArtDatabase.py", line 81 in image_search
    engine.search (db, entry, plexer.send ())
  • File "/usr/lib/rhythmbox/plugins/artdisplay/AmazonCoverArtSearch.py", line 101 in search
    if st_album == _("Unknown"):
NameError: global name '_' is not defined


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.
Comment 1 Takeshi AIHANA 2006-10-02 08:42:24 UTC
Created attachment 73831 [details] [review]
a working around this problem to apply as patch.

I add gettext module into the plugin script.
Comment 2 James "Doc" Livingston 2006-10-08 02:52:20 UTC
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.
Comment 3 James "Doc" Livingston 2006-11-21 08:49:08 UTC
Are you still seeing this?
Comment 4 Takeshi AIHANA 2006-11-21 13:46:10 UTC
OK, I understood and will try the next release.
Comment 5 Sebastien Bacher 2006-11-27 08:59:31 UTC
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?
Comment 6 James "Doc" Livingston 2006-12-12 05:42:09 UTC
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.
Comment 7 Sebastien Bacher 2007-02-23 00:00:37 UTC
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
Comment 8 Victor Osadci (Vic) 2007-06-01 10:31:53 UTC
(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.
Comment 9 Jonathan Matthew 2007-06-16 00:16:42 UTC
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.
Comment 10 Jonathan Matthew 2007-06-19 09:48:10 UTC
I've removed those lines in trunk and stable; hopefully the next translation update won't revert this..