gnome-about crashed with KeyError in make_info_label()

Bug #186118 reported by Anton Kudris
272
This bug affects 16 people
Affects Status Importance Assigned to Milestone
gnome-desktop
Fix Released
Critical
gnome-desktop (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs
language-pack-gnome-pt (Ubuntu)
Fix Released
Undecided
Ubuntu Brazilian Portuguese Translators

Bug Description

just tried to run gnome-about and it crushed

ProblemType: Crash
Architecture: i386
Date: Sat Jan 26 11:40:43 2008
Dependencies: gnome-desktop-data 1:2.21.5-0ubuntu1
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/gnome-about
InterpreterPath: /usr/bin/python2.5
Package: gnome-about 1:2.21.5-0ubuntu1
PackageArchitecture: i386
ProcCmdline: /usr/bin/python /usr/bin/gnome-about
ProcCwd: /home/antonk
ProcEnviron:
 PATH=/home/antonk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/gnome-about']
SourcePackage: gnome-desktop
Title: gnome-about crashed with KeyError in make_info_label()
Uname: Linux antonk-laptop 2.6.24-4-generic #1 SMP Mon Jan 14 17:30:39 UTC 2008 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev scanner video

Tags: apport-crash
Revision history for this message
Anton Kudris (kudris) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: http://bugzilla.gnome.org/show_bug.cgi?id=515884

Changed in gnome-desktop:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: New → Triaged
Changed in gnome-desktop:
status: Unknown → Fix Released
Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

This was due to a problem with translation and has been fixed upstream. It should be in ubuntu soon.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug should be fixed in hardy too now

Changed in gnome-desktop:
status: Triaged → Fix Released
Revision history for this message
Silent.Varacorp (silent-varacorp) wrote : RE: [Bug 186118] Re: gnome-about crashed with KeyError in make_info_label()

Thank you :)

Alexandre Araújo

> From: <email address hidden>> To: <email address hidden>> Date: Sat, 8 Mar 2008 13:43:58 +0000> Subject: [Bug 186118] Re: gnome-about crashed with KeyError in make_info_label()> > the bug should be fixed in hardy too now> > ** Changed in: gnome-desktop (Ubuntu)> Status: Triaged => Fix Released> > -- > gnome-about crashed with KeyError in make_info_label()> https://bugs.launchpad.net/bugs/186118> You received this bug notification because you are a direct subscriber> of a duplicate bug.> > Status in gnome-desktop: Fix Released> Status in Source Package "gnome-desktop" in Ubuntu: Fix Released> > Bug description:> just tried to run gnome-about and it crushed> > ProblemType: Crash> Architecture: i386> Date: Sat Jan 26 11:40:43 2008> Dependencies: gnome-desktop-data 1:2.21.5-0ubuntu1> DistroRelease: Ubuntu 8.04> ExecutablePath: /usr/bin/gnome-about> InterpreterPath: /usr/bin/python2.5> Package: gnome-about 1:2.21.5-0ubuntu1> PackageArchitecture: i386> ProcCmdline: /usr/bin/python /usr/bin/gnome-about> ProcCwd: /home/antonk> ProcEnviron:> PATH=/home/antonk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games> LANG=ru_RU.UTF-8> SHELL=/bin/bash> PythonArgs: ['/usr/bin/gnome-about']> SourcePackage: gnome-desktop> Title: gnome-about crashed with KeyError in make_info_label()> Uname: Linux antonk-laptop 2.6.24-4-generic #1 SMP Mon Jan 14 17:30:39 UTC 2008 i686 GNU/Linux> UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev scanner video
_________________________________________________________________
Receba já a próxima geração de serviços Windows Live!
http://get.live.com

Revision history for this message
mabovo (mabovo) wrote :

Just upgrade to 2.22 and bug is present. Reported in #203249.

Revision history for this message
Dalton (daltux) wrote :

I'm using Hardy fully dist-updated and the bug still persists: gnome-about simply crashes before showing anything.

$ apt-cache policy gnome-about
gnome-about:
  Instalado: 1:2.22.0-0ubuntu2
  Candidato: 1:2.22.0-0ubuntu2
  Tabela de versão:
 *** 1:2.22.0-0ubuntu2 0
        500 http://br.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

$ gnome-about
Traceback (most recent call last):
  File "/usr/bin/gnome-about", line 1035, in <module>
    about = GnomeAbout ()
  File "/usr/bin/gnome-about", line 850, in __init__
    self.create_ui ()
  File "/usr/bin/gnome-about", line 929, in create_ui
    info_labels = map (make_info_label, self.system_infos)
  File "/usr/bin/gnome-about", line 920, in make_info_label
    label.set_markup (_("<b>%(name)s:</b> %(value)s") % infos_dict)
KeyError: u'nome'

Revision history for this message
Marcelo Atie (marceloatie) wrote :

Re Confirmed

~$ gnome-about
Traceback (most recent call last):
  File "/usr/bin/gnome-about", line 1035, in <module>
    about = GnomeAbout ()
  File "/usr/bin/gnome-about", line 850, in __init__
    self.create_ui ()
  File "/usr/bin/gnome-about", line 929, in create_ui
    info_labels = map (make_info_label, self.system_infos)
  File "/usr/bin/gnome-about", line 920, in make_info_label
    label.set_markup (_("<b>%(name)s:</b> %(value)s") % infos_dict)
KeyError: u'nome'

Let's reopen this bug

Changed in gnome-desktop:
status: Fix Released → Confirmed
Revision history for this message
Marcelo Atie (marceloatie) wrote :

take a look in http://bugzilla.gnome.org/show_bug.cgi?id=515884 and see that the last line in report is
KeyError: u'\u0438\u043c\u044f'"
and in we report is:
KeyError: u'nome'

Revision history for this message
Sebastien Bacher (seb128) wrote :

those issues are due to broken translations, you should rather open tasks on the corresponding language-pack-gnome-locale

Changed in gnome-desktop:
status: Confirmed → Fix Released
Revision history for this message
wildnersites@yahoo.com.br (wildnersites) wrote :

My PackageArchitecture: AMD 64

Revision history for this message
André Gondim (andregondim) wrote :

I'm using Ubuntu 8.04 Beta and this happens

Revision history for this message
André Gondim (andregondim) wrote :

Just to confirm

$ gnome-about
Traceback (most recent call last):
  File "/usr/bin/gnome-about", line 1035, in <module>
    about = GnomeAbout ()
  File "/usr/bin/gnome-about", line 850, in __init__
    self.create_ui ()
  File "/usr/bin/gnome-about", line 929, in create_ui
    info_labels = map (make_info_label, self.system_infos)
  File "/usr/bin/gnome-about", line 920, in make_info_label
    label.set_markup (_("<b>%(name)s:</b> %(value)s") % infos_dict)
KeyError: u'nome'

Revision history for this message
Jonh Wendell (wendell) wrote :

@André: This is somehow a bug in Ubuntu pt_BR translation. The upstream GNOME pt_BR translation is OK, once when I run it on a jhbuild env everything is fine.

Revision history for this message
André Gondim (andregondim) wrote :

sudo vim /usr/bin/gnome-about

replace label.set_markup (_("<b>%(name)s:</b> %(value)s") % infos_dict) to label.set_markup ("<b>%(name)s:</b> %(value)s" % infos_dict)

Save and there is no problem again.

Revision history for this message
Laudeci Oliveira (laudeci) wrote :

if you change the line 920 from label.set_markup (_("<b>%(name)s:</b> %(value)s") % infos_dict) to label.set_markup ("<b>%(name)s:</b> %(value)s" % infos_dict)
it will work like a charm..

i dont know why _("<b>%(name)s:</b> %(value)s") is putted for translation since infos_dict has strings already translated.

The translation in launchpad is ok too.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the string is translated because some locales use space before and after such punctuations and that can't be automatically coded, you can read the bug description for details

Revision history for this message
Jonh Wendell (wendell) wrote :

Em Seg, 2008-03-24 às 03:03 +0000, Laudeci Oliveira escreveu:
> if you change the line 920 from label.set_markup (_("<b>%(name)s:</b> %(value)s") % infos_dict) to label.set_markup ("<b>%(name)s:</b> %(value)s" % infos_dict)
> it will work like a charm..
>
> i dont know why _("<b>%(name)s:</b> %(value)s") is putted for
> translation since infos_dict has strings already translated.
>
> The translation in launchpad is ok too.

I don't agree here. I'm sure there is something wrong in Ubuntu
translation.

I have the gnome-desktop package in my jhbuild environment and there it
runs perfectly, with no need to change nothing.

Also, I copied my gnome-desktop-2.0.mo from my jhbuild
to /usr/share/locale-langpack/pt_BR/LC_MESSAGES and gnome-about worked
as expected.

Do yourself the test: Download the .po from GNOME svn
(http://svn.gnome.org/viewvc/gnome-desktop/trunk/po/pt_BR.po?view=markup), compile it and replace the .mo just as I did. It will work.
--
Jonh Wendell
www.bani.com.br

Revision history for this message
Sebastien Bacher (seb128) wrote :

are you using the current rosetta translation or the hardy version? languages packs are not updated daily so it's possible the fix is just waiting on the next update

Revision history for this message
Jonh Wendell (wendell) wrote :

Em Seg, 2008-03-24 às 12:59 +0000, Sebastien Bacher escreveu:
> are you using the current rosetta translation or the hardy version?
> languages packs are not updated daily so it's possible the fix is just
> waiting on the next update

I'm using hardy version. But I don't think the issue is that, because we
already had lang packs updates since this issue appeared, and even after
Ubuntu translators claim that the translation is OK.

--
Jonh Wendell
www.bani.com.br

Revision history for this message
Sebastien Bacher (seb128) wrote :

There is 3 strings which have been changed in rosetta, this one is in the list and has the bug, somebody from the translation team should just click on the button to use the upstream translation there

Changed in language-pack-gnome-pt:
assignee: nobody → ubuntu-l10n-pt
Revision history for this message
Jonh Wendell (wendell) wrote :

@AndreGodim or OgMaciel, could you take care of this, please? See the latest comment from Sebastien.

FYI, here's the output:

wendell@wendell-laptop:~$ gnome-about
Traceback (most recent call last):
  File "/usr/bin/gnome-about", line 1035, in <module>
    about = GnomeAbout ()
  File "/usr/bin/gnome-about", line 850, in __init__
    self.create_ui ()
  File "/usr/bin/gnome-about", line 929, in create_ui
    info_labels = map (make_info_label, self.system_infos)
  File "/usr/bin/gnome-about", line 920, in make_info_label
    label.set_markup (_("<b>%(name)s:</b> %(value)s") % infos_dict)
KeyError: u'nome'

^^^^^^ Notice the word 'nome' here.

Changed in language-pack-gnome-pt:
assignee: ubuntu-l10n-pt → ubuntu-l10n-pt-br
Revision history for this message
Og Maciel (ogmaciel) wrote :

Hey Jonh,

You see, this has been already handled from the translation team point of view. It is necessary to now test it with the newer translation. :) In other words, someone needs to either download the .po file from Rosetta, compile it into a .mo and replace the existing one in their Ubuntu system OR wait until a newer language pack is release with it.

Revision history for this message
Sebastien Bacher (seb128) wrote :

no it has not, is there any rosetta translator reading this bug who could change the translation to use the upstream version?

Revision history for this message
Jonh Wendell (wendell) wrote :

Em Seg, 2008-03-24 às 21:21 +0000, Sebastien Bacher escreveu:
> no it has not, is there any rosetta translator reading this bug who
> could change the translation to use the upstream version?

Sebastien, both OgMaciel and AndreGodim are translators and are able to
do what you suggested.

--
Jonh Wendell
www.bani.com.br

Revision history for this message
André Gondim (andregondim) wrote :

I will do, just a moment.

Revision history for this message
Susana Pereira (susana) wrote :

Hello,

the 3 strings changed in Launchpad that seb was taking about were in portuguese from Portugal. They have been fixed. I still fail to understand how this is causing trouble in Portuguese from Brazil. Anyway, sorry for the confusion.

Revision history for this message
Og Maciel (ogmaciel) wrote :

Sebastian,

One more time to see if it sinks in: The Brazilian Portuguese translation for the gnome-desktop package IS correct. The following links will take you directly to the messages associated with this bug. Furthermore, the bug was filed against the Portuguese translation and not Brazilian.

https://translations.edge.launchpad.net/ubuntu/hardy/+source/gnome-desktop/+pots/gnome-desktop-2.0/pt_BR/13/+translate
https://translations.edge.launchpad.net/ubuntu/hardy/+source/gnome-desktop/+pots/gnome-desktop-2.0/pt_BR/16/+translate

Revision history for this message
Laudeci Oliveira (laudeci) wrote :

Weird, the translation to pt_BR just left the original string as it is, no change made.

Revision history for this message
Og Maciel (ogmaciel) wrote :
Revision history for this message
Laudeci Oliveira (laudeci) wrote : Re: [Bug 186118] Re: gnome-about crashed with KeyError in make_info_label()

OgMaciel,

Take a look at this:

ProcEnviron:
 PATH=/home/antonk/bin:/usr
/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=ru_RU.UTF-8

This info is in bug report, does it seems to be an error in another locale
than pt and pt_BR????

2008/3/24, Og Maciel <email address hidden>:
>
> Sebastian,
>
> One more time to see if it sinks in: The Brazilian Portuguese
> translation for the gnome-desktop package IS correct. The following
> links will take you directly to the messages associated with this bug.
> Furthermore, the bug was filed against the Portuguese translation and
> not Brazilian.
>
>
> https://translations.edge.launchpad.net/ubuntu/hardy/+source/gnome-desktop/+pots/gnome-desktop-2.0/pt_BR/13/+translate
>
> https://translations.edge.launchpad.net/ubuntu/hardy/+source/gnome-desktop/+pots/gnome-desktop-2.0/pt_BR/16/+translate
>
>
> --
> gnome-about crashed with KeyError in make_info_label()
> https://bugs.launchpad.net/bugs/186118
> You received this bug notification because you are a member of Ubuntu
> Brazilian Portuguese Translators, which is a bug assignee.
>

--
-------------------------------------------------------------------------------------------------------------------------------
Laudeci Oliveira
Red Hat Certified Technician
Microsoft Certified Professional
Microsoft Certified Trainer
Tecnólogo em Sistema de Informação

Revision history for this message
André Gondim (andregondim) wrote :

Well, I download the pt_BR_LC_MESSAGES_gnome-desktop-2.0.mo

and I did:

sudo cp ~/pt_BR_LC_MESSAGES_gnome-desktop-2.0.mo :/usr/share/locale-langpack/pt_BR/LC_MESSAGES/gnome-desktop-2.0.mo

This solve my problem.

Revision history for this message
Sebastien Bacher (seb128) wrote :

not sure how those locales are used, let's see if the next language pack update make it work for everybody

Revision history for this message
pinduvoz (pinduvoz) wrote :

I got today an updated version of gnome-about and it still doesn't work in Portuguese/Brazil.

Revision history for this message
Jonh Wendell (wendell) wrote :

Hi, this is fixed now. Thanks.

Changed in language-pack-gnome-pt:
status: New → Fix Released
Revision history for this message
RoDoLFo TX (rodolfo-inec) wrote :
  • unnamed Edit (909 bytes, text/html; charset=ISO-8859-1)

no problem. =]
BTW I was wondering...U8.04BETA sets my video to "configured video device".
It should detect intel915 from my laptop.
Should I file a bug about this as well?

2008/4/1, Jonh Wendell <email address hidden>:
>
> Hi, this is fixed now. Thanks.
>
> ** Changed in: language-pack-gnome-pt (Ubuntu)
> Status: New => Fix Released
>
>
> --
>
> gnome-about crashed with KeyError in make_info_label()
> https://bugs.launchpad.net/bugs/186118
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Olívio Farias (oliviofarias) wrote :
  • unnamed Edit (2.1 KiB, text/html; charset=ISO-8859-1)

Yes yes could make this bug: c)

2008/4/1, RoDoLFo TX <email address hidden>:
>
> no problem. =]
> BTW I was wondering...U8.04BETA sets my video to "configured video
> device".
> It should detect intel915 from my laptop.
> Should I file a bug about this as well?
>
> 2008/4/1, Jonh Wendell <email address hidden>:
>
> >
> > Hi, this is fixed now. Thanks.
> >
> > ** Changed in: language-pack-gnome-pt (Ubuntu)
> > Status: New => Fix Released
> >
> >
> > --
> >
> > gnome-about crashed with KeyError in make_info_label()
> > https://bugs.launchpad.net/bugs/186118
> > You received this bug notification because you are a direct subscriber
> > of the bug.
> >
>
>
>
> ** Attachment added: "unnamed"
> http://launchpadlibrarian.net/13020587/unnamed
>
>
> --
> gnome-about crashed with KeyError in make_info_label()
> https://bugs.launchpad.net/bugs/186118
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
----------------------------------------------
Fusion Designer e Soluções
www.Fusionds.com.br

Revision history for this message
Pavol Klačanský (pavolzetor-deactivatedaccount) wrote :

yes i have hardy and i have same problem

Revision history for this message
pinduvoz (pinduvoz) wrote :

Gnome-about works for me now. I forgot to comment it here. Sorry for the delay.

Revision history for this message
yanick (yanick76) wrote :

i have hardy in slovak localization and i have same problem too, but in gnome svn repository is fixed translation (attached)

Revision history for this message
Frantisek Vacek (w4tch0) wrote :

I can confirm that with current Hardy RC1 this bug still persist for Slovak translation. The translation file posted by Yanick solved the problem for me. Could someone push this fix into 8.04 please?

Revision history for this message
RoDoLFo TX (rodolfo-inec) wrote :
  • unnamed Edit (929 bytes, text/html; charset=ISO-8859-1)

Hi there,

2008/4/22, Frantisek Vacek <email address hidden>:
>
> I can confirm that with current Hardy RC1 this bug still persist for
> Slovak translation. The translation file posted by Yanick solved the
> problem for me. Could someone push this fix into 8.04 please?

You should go to https://bugs.launchpad.net/ and make sure that there is a
workaround on your language.
Use the search to find bug reports.
If there isn't anything about 'gnome-about' on your language, make a new bug
report. And don't forget to mention that Yanick's translation file got it
solved.

Brazilian Regards,
Rodolfo.

Revision history for this message
RoDoLFo TX (rodolfo-inec) wrote :
  • unnamed Edit (717 bytes, text/html; charset=ISO-8859-2)

Hi there,

2008/4/5, Pavol Klačanský <email address hidden>:
>
> yes i have hardy and i have same problem

This bug still persist for you? What's your language?
You should go to https://bugs.launchpad.net/ and make sure that there is a
workaround on your language.
Use the search to find bug reports.

Braziian Regards,
Rodolfo.

Revision history for this message
larini (paulo-larini) wrote : Re: [Bug 186118] Re: gnome-about crashed with KeyError in make_info_label()

Hi, gnome about problem is ok now.
thanks.

Em Qua, 2008-04-23 às 02:15 +0000, RoDoLFo TX escreveu:
> Hi there,
>
> 2008/4/5, Pavol Klačanský <email address hidden>:
> >
> > yes i have hardy and i have same problem
>
>
> This bug still persist for you? What's your language?
> You should go to https://bugs.launchpad.net/ and make sure that there is a
> workaround on your language.
> Use the search to find bug reports.
>
> Braziian Regards,
> Rodolfo.
>
> ** Attachment added: "unnamed"
> http://launchpadlibrarian.net/13832571/unnamed
>

Changed in gnome-desktop:
importance: Unknown → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.