Description of problem:
dnf group install crashes when used to install group which name was translated and non-ascii characters were used.
For example installing "Pracovní plochy KDE Plasma" (czech translation for KDE group).
Version-Release number of selected component:
cmdline: /usr/bin/python /bin/dnf group install 'Pracovn\xc3\xad' plochy KDE Plasma
cli.py:894:install_grouplist:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
Traceback (most recent call last):
File "/bin/dnf", line 35, in <module>
File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 292, in user_main
errcode = main(args)
File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 64, in main
return _main(base, args)
File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 133, in _main
result, resultmsgs = cli.run()
File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1293, in run
return self.command.doCommand(self.base.basecmd, self.base.extcmds)
File "/usr/lib/python2.7/site-packages/dnf/cli/commands.py", line 883, in doCommand
File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 894, in install_grouplist
msg = _('Warning: Group %s does not exist.') % group_string
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
Local variables in innermost frame:
grouplist: ['Pracovn\xc3\xad', 'plochy', 'KDE', 'Plasma']
self: <dnf.cli.cli.YumBaseCli object at 0xf0cd10>
Created attachment 785688 [details]
Created attachment 785689 [details]
Bug doesn't appear if quotation marks are used.
Sorry but as I am looking at it, quotation marks must be used, so I am closing this bug as it really isn't a bug.
In fact, you should never see a traceback with DNF, not even if you put the input in wrong. I'll see if I can reproduce.
This traceback is fixed by 83c6c89, will be included in dnf-0.3.11.
dnf-0.3.11-1.git7d717c7.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.3.11-1.git7d717c7.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Fix confirmed in Rawhide.
dnf-0.3.11-1.git7d717c7.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.