Bug 1244400 - [abrt] dnf: compat.py:125:get:NoOptionError: No option u'langpack_locales' in section: u'main'
Summary: [abrt] dnf: compat.py:125:get:NoOptionError: No option u'langpack_locales' in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-langpacks
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Parag Nemade
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:b3dd2716b0c031e5b4ebb381531...
: 1244401 1244417 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-18 13:12 UTC by mithrial
Modified: 2015-07-22 18:22 UTC (History)
20 users (show)

Fixed In Version: dnf-langpacks-0.11.1-1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-21 08:12:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.42 KB, text/plain)
2015-07-18 13:12 UTC, mithrial
no flags Details
File: dso_list (100 bytes, text/plain)
2015-07-18 13:12 UTC, mithrial
no flags Details
File: environ (2.53 KB, text/plain)
2015-07-18 13:12 UTC, mithrial
no flags Details

Description mithrial 2015-07-18 13:12:03 UTC
Description of problem:
I just typed dnf into the console. Doesn't matter if as user or root.

Version-Release number of selected component:
dnf-1.0.1-2.fc22

Additional info:
reporter:       libreport-2.6.1
cmdline:        /usr/bin/python -OO /usr/bin/dnf search requests
executable:     /usr/bin/dnf
kernel:         4.0.8-300.fc22.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
compat.py:125:get:NoOptionError: No option u'langpack_locales' in section: u'main'

Traceback (most recent call last):
  File "/usr/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 185, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 115, in _main
    cli.configure(map(ucd, args))
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 984, in configure
    self.base.plugins.run_init(self.base, self)
  File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 104, in run_init
    plugin = p_cls(base, cli)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/langpacks.py", line 692, in __init__
    conflist = config.get('main', 'langpack_locales')
  File "/usr/lib/python2.7/site-packages/iniparse/compat.py", line 222, in get
    value = RawConfigParser.get(self, section, option, vars)
  File "/usr/lib/python2.7/site-packages/iniparse/compat.py", line 125, in get
    raise NoOptionError(option, section)
NoOptionError: No option u'langpack_locales' in section: u'main'

Local variables in innermost frame:
section: u'main'
sec: <iniparse.ini.INISection object at 0x7f6fbe731850>
option: u'langpack_locales'
vars: None
self: <iniparse.compat.ConfigParser object at 0x7f6fbe731610>

Comment 1 mithrial 2015-07-18 13:12:06 UTC
Created attachment 1053370 [details]
File: backtrace

Comment 2 mithrial 2015-07-18 13:12:07 UTC
Created attachment 1053371 [details]
File: dso_list

Comment 3 mithrial 2015-07-18 13:12:09 UTC
Created attachment 1053372 [details]
File: environ

Comment 4 Parag Nemade 2015-07-18 14:05:20 UTC
*** Bug 1244401 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2015-07-18 14:20:13 UTC
dnf-langpacks-0.11.1-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/dnf-langpacks-0.11.1-1.fc22

Comment 6 Bruno Wolff III 2015-07-18 16:18:03 UTC
*** Bug 1244417 has been marked as a duplicate of this bug. ***

Comment 7 Couret Charles-Antoine 2015-07-19 12:40:40 UTC
This bug was fixed by this update for me.

Comment 8 Farid 2015-07-19 17:28:09 UTC
Another user experienced a similar problem:

After to upgrade with "dnf -y upgrade"

reporter:       libreport-2.6.1
cmdline:        /usr/bin/python -OO /bin/dnf -y remove kernel*-4.0.7-300.fc22.x86_64
event_log:      2015-07-19-19:27:22> (« report_uReport » terminé avec succès)
executable:     /bin/dnf
kernel:         4.0.8-300.fc22.x86_64
package:        dnf-1.0.1-2.fc22
reason:         compat.py:125:get:NoOptionError: No option u'langpack_locales' in section: u'main'
runlevel:       N 5
type:           Python
uid:            0

Comment 9 bztdlinux 2015-07-19 20:57:36 UTC
For those unfortunate enough to have gotten this from updates-testing, here's how to fix:

wget https://kojipkgs.fedoraproject.org//packages/dnf-langpacks/0.11.1/1.fc22/noarch/dnf-langpacks-0.11.1-1.fc22.noarch.rpm
sudo rpm -U dnf-langpacks-0.11.1-1.fc22.noarch.rpm

Comment 10 Fedora Update System 2015-07-21 08:12:41 UTC
dnf-langpacks-0.11.1-1.fc22 has been pushed to the Fedora 22 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.