Bug 1046661 - [abrt] dnf: base.py:125:_add_repo_to_sack:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 129: ordinal not in range(128)
Summary: [abrt] dnf: base.py:125:_add_repo_to_sack:UnicodeDecodeError: 'ascii' codec c...
Keywords:
Status: CLOSED DUPLICATE of bug 1044502
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:6dc92e205f0b0324e3c89814b88...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-26 13:12 UTC by Rodrigo de Farias Gomes
Modified: 2014-01-02 08:03 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-02 08:03:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.35 KB, text/plain)
2013-12-26 13:12 UTC, Rodrigo de Farias Gomes
no flags Details
File: environ (71 bytes, text/plain)
2013-12-26 13:12 UTC, Rodrigo de Farias Gomes
no flags Details

Description Rodrigo de Farias Gomes 2013-12-26 13:12:42 UTC
Description of problem:
Steps to Reproduce:
$ echo $LANG
pt_BR.utf8
$ dnf makecache timer 
error about 'ascii' codec
$env LANG=C dnf makecache timer 
no error: everything is ok. However, I have the package yum-plugin-local installed and dnf disable the _local repository.

Additional info:
Message about _local repository:
"""
Problem with repo '_local': Cannot prepare internal mirrorlist: realpath(file:/var/lib/yum/plugins/local) error: No such file or directory, disabling.
"""
Maybe the translated message cause the bug...

Version-Release number of selected component:
dnf-0.4.9-1.fc20

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python /usr/bin/dnf -v makecache timer
executable:     /usr/bin/dnf
kernel:         3.12.5-302.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
base.py:125:_add_repo_to_sack:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 129: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 260, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 63, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 122, in _main
    result, resultmsgs = cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1471, in run
    return self.command.doCommand(self.base.basecmd, self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands.py", line 953, in doCommand
    self.base.fill_sack() # performs the md sync
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 214, in fill_sack
    self._add_repo_to_sack(r.id)
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 125, in _add_repo_to_sack
    msg = _("%s, disabling.") % str(e)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 129: ordinal not in range(128)

Local variables in innermost frame:
repo: <Repo _local>
hrepo: <_hawkey.Repo object at 0x7f52bfe774f8>
self: <dnf.cli.cli.BaseCli object at 0x1942410>
e: RepoError()
name: '_local'

Comment 1 Rodrigo de Farias Gomes 2013-12-26 13:12:50 UTC
Created attachment 841905 [details]
File: backtrace

Comment 2 Rodrigo de Farias Gomes 2013-12-26 13:12:54 UTC
Created attachment 841906 [details]
File: environ

Comment 3 Ales Kozumplik 2014-01-02 08:03:06 UTC

*** This bug has been marked as a duplicate of bug 1044502 ***


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