Bug 1066033 - TypeError: not enough arguments for format string
Summary: TypeError: not enough arguments for format string
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Shea
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:49af02aa3260d7dad7fccd7a548...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-17 14:30 UTC by David Shea
Modified: 2014-03-28 14:23 UTC (History)
4 users (show)

Fixed In Version: anaconda-21.24-1
Clone Of:
Environment:
Last Closed: 2014-03-28 14:23:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (186.39 KB, text/plain)
2014-02-17 14:30 UTC, David Shea
no flags Details
File: anaconda.log (3.61 KB, text/plain)
2014-02-17 14:30 UTC, David Shea
no flags Details
File: environ (403 bytes, text/plain)
2014-02-17 14:30 UTC, David Shea
no flags Details
File: lsblk_output (1.49 KB, text/plain)
2014-02-17 14:31 UTC, David Shea
no flags Details
File: nmcli_dev_list (1.14 KB, text/plain)
2014-02-17 14:31 UTC, David Shea
no flags Details
File: os_info (381 bytes, text/plain)
2014-02-17 14:31 UTC, David Shea
no flags Details
File: program.log (26.46 KB, text/plain)
2014-02-17 14:31 UTC, David Shea
no flags Details
File: storage.log (70.40 KB, text/plain)
2014-02-17 14:31 UTC, David Shea
no flags Details
File: syslog (63.49 KB, text/plain)
2014-02-17 14:31 UTC, David Shea
no flags Details
File: ifcfg.log (1.74 KB, text/plain)
2014-02-17 14:31 UTC, David Shea
no flags Details
File: packaging.log (1.17 KB, text/plain)
2014-02-17 14:31 UTC, David Shea
no flags Details

Description David Shea 2014-02-17 14:30:49 UTC
Description of problem:
Choose Bulgarian at the Welcome screen

The problem is the translation of a format string (the source string uses %(name)s format arguments, while the translation only has %s arguments), so the fix would be to be fix the format string, but format string problems are supposed to cause the build to fail and make bcl fix the translation.

This one isn't failing at build time because the string is coming from glade, so gettext doesn't know it's python formatted.

Version-Release number of selected component:
anaconda-21.21-1

The following was filed automatically by anaconda:
anaconda 21.21-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/welcome.py", line 250, in retranslate
    xlated = _(before) % {"name" : productName.upper(), "version" : productVersion}
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/welcome.py", line 297, in on_locale_selection_changed
    self.retranslate(lang)
TypeError: not enough arguments for format string

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x20rawhide\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.14.0-0.rc2.git3.1.fc21.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        rawhide

Comment 1 David Shea 2014-02-17 14:30:52 UTC
Created attachment 864116 [details]
File: anaconda-tb

Comment 2 David Shea 2014-02-17 14:30:56 UTC
Created attachment 864117 [details]
File: anaconda.log

Comment 3 David Shea 2014-02-17 14:30:58 UTC
Created attachment 864118 [details]
File: environ

Comment 4 David Shea 2014-02-17 14:31:01 UTC
Created attachment 864119 [details]
File: lsblk_output

Comment 5 David Shea 2014-02-17 14:31:03 UTC
Created attachment 864120 [details]
File: nmcli_dev_list

Comment 6 David Shea 2014-02-17 14:31:07 UTC
Created attachment 864121 [details]
File: os_info

Comment 7 David Shea 2014-02-17 14:31:11 UTC
Created attachment 864122 [details]
File: program.log

Comment 8 David Shea 2014-02-17 14:31:13 UTC
Created attachment 864123 [details]
File: storage.log

Comment 9 David Shea 2014-02-17 14:31:15 UTC
Created attachment 864124 [details]
File: syslog

Comment 10 David Shea 2014-02-17 14:31:17 UTC
Created attachment 864125 [details]
File: ifcfg.log

Comment 11 David Shea 2014-02-17 14:31:18 UTC
Created attachment 864126 [details]
File: packaging.log


Note You need to log in before you can comment on or make changes to this bug.