Bug 1283599

Summary: ValueError: plural forms expression could be dangerous
Product: [Fedora] Fedora Reporter: Tadas Slotkus <ts>
Component: anacondaAssignee: David Shea <dshea>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: anaconda-maint-list, eruditas, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:dad422635da4a3537625cfa196670fbe99c2761d8706aedf10f70ea709f814da;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 15:07:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: journalctl
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: ifcfg.log none

Description Tadas Slotkus 2015-11-19 11:39:10 UTC
Description of problem:
Launched "Try Fedora", clicked "Install to hard drive" and then it crashed.

Version-Release number of selected component:
anaconda-core-23.19.10-1.fc23.x86_64

The following was filed automatically by anaconda:
anaconda 23.19.10-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.4/gettext.py", line 74, in c2py
    raise ValueError('plural forms expression could be dangerous')
  File "/usr/lib64/python3.4/gettext.py", line 281, in _parse
    self.plural = c2py(plural)
  File "/usr/lib64/python3.4/gettext.py", line 160, in __init__
    self._parse(fp)
  File "/usr/lib64/python3.4/gettext.py", line 410, in translation
    t = _translations.setdefault(key, class_(fp))
  File "/usr/lib/python3.4/site-packages/blivet/i18n.py", line 37, in _get_translations
    _cached_translations[lc_messages] = gettext.translation("blivet", fallback=True)
  File "/usr/lib/python3.4/site-packages/blivet/i18n.py", line 51, in <lambda>
    _ = lambda x: _get_translations().gettext(x) if x != "" else ""
  File "/usr/lib/python3.4/site-packages/blivet/formats/disklabel.py", line 213, in name
    return "%s (%s)" % (_(self._name), self.labelType.upper())
  File "/usr/lib/python3.4/site-packages/blivet/formats/__init__.py", line 225, in dict
    d = {"type": self.type, "name": self.name, "device": self.device,
  File "/usr/lib/python3.4/site-packages/blivet/formats/disklabel.py", line 109, in dict
    d = super(DiskLabel, self).dict
  File "/usr/lib/python3.4/site-packages/blivet/devices/storage.py", line 258, in dict
    "format": self.format.dict, "removable": self.removable,
  File "/usr/lib/python3.4/site-packages/blivet/blivet.py", line 1360, in <listcomp>
    shelf[key] = [d.dict for d in self.devices]
  File "/usr/lib/python3.4/site-packages/blivet/blivet.py", line 1360, in dumpState
    shelf[key] = [d.dict for d in self.devices]
  File "/usr/lib/python3.4/site-packages/blivet/blivet.py", line 290, in reset
    self.dumpState("initial")
  File "/usr/lib/python3.4/site-packages/blivet/osinstall.py", line 1157, in storageInitialize
    storage.reset()
  File "/usr/lib64/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/threads.py", line 253, in run
    threading.Thread.run(self, *args, **kwargs)
ValueError: plural forms expression could be dangerous

Additional info:
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-WS-x86_64-23-10 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.2.3-300.fc23.x86_64
other involved packages: python3-libs-3.4.3-5.fc23.x86_64, python3-blivet-1.12.8-1.fc23.noarch
product:        Fedora
release:        Fedora release 23 (Twenty Three)
type:           anaconda
version:        23

Comment 1 Tadas Slotkus 2015-11-19 11:39:27 UTC
Created attachment 1096616 [details]
File: anaconda-tb

Comment 2 Tadas Slotkus 2015-11-19 11:39:28 UTC
Created attachment 1096617 [details]
File: anaconda.log

Comment 3 Tadas Slotkus 2015-11-19 11:39:30 UTC
Created attachment 1096618 [details]
File: environ

Comment 4 Tadas Slotkus 2015-11-19 11:39:42 UTC
Created attachment 1096619 [details]
File: journalctl

Comment 5 Tadas Slotkus 2015-11-19 11:39:43 UTC
Created attachment 1096620 [details]
File: lsblk_output

Comment 6 Tadas Slotkus 2015-11-19 11:39:45 UTC
Created attachment 1096621 [details]
File: nmcli_dev_list

Comment 7 Tadas Slotkus 2015-11-19 11:39:46 UTC
Created attachment 1096622 [details]
File: os_info

Comment 8 Tadas Slotkus 2015-11-19 11:39:49 UTC
Created attachment 1096623 [details]
File: program.log

Comment 9 Tadas Slotkus 2015-11-19 11:39:53 UTC
Created attachment 1096624 [details]
File: storage.log

Comment 10 Tadas Slotkus 2015-11-19 11:39:55 UTC
Created attachment 1096625 [details]
File: ifcfg.log

Comment 11 David Shea 2015-11-19 15:07:09 UTC
This is a bug in the Lithuanian translations. The expression that the translator set for determining how to translate plurals uses a python-style "or" instead of the correct, C-style "||".

This has been corrected in the current translations, but unfortunately this means that Fedora 23 cannot be installed using Lithuanian. I'll add a test for this situations such as this so that we catch them earlier in the future.

Comment 12 Mantas 2016-02-22 20:55:58 UTC
Another user experienced a similar problem:

If installer runs in my native language (it runs in Lithuanian by default) this bug appears.
If installer runs in English, everything is OK, so it seems it's language related issue.

cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=/isolinux/vmlinuz0 root=live:LABEL=Fedora-Live-WS-x86_64-23-10 ro rd.live.image quiet rhgb
hashmarkername: anaconda
kernel:         4.2.3-300.fc23.x86_64
other involved packages: python3-libs-3.4.3-5.fc23.x86_64, python3-blivet-1.12.8-1.fc23.noarch
package:        anaconda-core-23.19.10-1.fc23.x86_64
packaging.log:  
product:        Fedora
reason:         ValueError: plural forms expression could be dangerous
release:        Fedora release 23 (Twenty Three)
version:        23

Comment 13 Tadas Slotkus 2016-02-24 22:27:31 UTC
To force English language I used boot option inst.geoloc=0