Bug 692902 - cs.po issue causes gettext traceback: IndexError: list index out of range
Summary: cs.po issue causes gettext traceback: IndexError: list index out of range
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 694434 (view as bug list)
Depends On: 692632
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-01 15:03 UTC by Cole Robinson
Modified: 2018-04-11 19:18 UTC (History)
10 users (show)

Fixed In Version: virt-manager-0.8.7-2.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of: 692632
Environment:
Last Closed: 2011-04-16 03:46:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Cole Robinson 2011-04-01 15:03:52 UTC
+++ This bug was initially created as a clone of Bug #692632 +++

Description of problem:
bradford:amazing-grace $ virt-manager 
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager.py", line 467, in <module>
    main()
  File "/usr/share/virt-manager/virt-manager.py", line 321, in main
    setup_i18n()
  File "/usr/share/virt-manager/virt-manager.py", line 80, in setup_i18n
    gettext.install(gettext_app, gettext_dir)
  File "/usr/lib64/python2.7/gettext.py", line 495, in install
    t = translation(domain, localedir, fallback=True, codeset=codeset)
  File "/usr/lib64/python2.7/gettext.py", line 480, in translation
    t = _translations.setdefault(key, class_(fp))
  File "/usr/lib64/python2.7/gettext.py", line 180, in __init__
    self._parse(fp)
  File "/usr/lib64/python2.7/gettext.py", line 316, in _parse
    plural = v[1].split('plural=')[1]
IndexError: list index out of range
bradford:amazing-grace $ locale 
LANG=cs_CZ.UTF-8
LC_CTYPE="cs_CZ.UTF-8"
LC_NUMERIC="cs_CZ.UTF-8"
LC_TIME="cs_CZ.UTF-8"
LC_COLLATE="cs_CZ.UTF-8"
LC_MONETARY="cs_CZ.UTF-8"
LC_MESSAGES="cs_CZ.UTF-8"
LC_PAPER="cs_CZ.UTF-8"
LC_NAME="cs_CZ.UTF-8"
LC_ADDRESS="cs_CZ.UTF-8"
LC_TELEPHONE="cs_CZ.UTF-8"
LC_MEASUREMENT="cs_CZ.UTF-8"
LC_IDENTIFICATION="cs_CZ.UTF-8"
LC_ALL=
bradford:amazing-grace $ 


Version-Release number of selected component (if applicable):
python-libs-2.7.1-6.fc15.x86_64

How reproducible:
100%

Steps to Reproduce:
1.just run virt-manager in non-English locale
2.
3.
  
Actual results:
backtrace and no virt-manager

Expected results:
virt-manager with Czech menus

Additional info:

--- Additional comment from ivazqueznet on 2011-03-31 15:34:16 EDT ---

While Python *should* probably handle this more gracefully, this is actually a problem with po/cs.po in virt-manager. Reassigning.

Comment 1 Cole Robinson 2011-04-07 14:01:33 UTC
*** Bug 694434 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Update System 2011-04-07 14:10:23 UTC
virt-manager-0.8.7-3.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/virt-manager-0.8.7-3.fc15

Comment 3 Fedora Update System 2011-04-07 14:29:48 UTC
virt-manager-0.8.7-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/virt-manager-0.8.7-2.fc14

Comment 4 Fedora Update System 2011-04-07 18:50:56 UTC
Package virt-manager-0.8.7-2.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing virt-manager-0.8.7-2.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/virt-manager-0.8.7-2.fc14
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-04-16 03:46:12 UTC
virt-manager-0.8.7-3.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2011-04-16 20:52:40 UTC
virt-manager-0.8.7-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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