Bug 1124968

Summary: [abrt] dnf: query.py:107:by_provides:UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 0: ordinal not in range(128)
Product: [Fedora] Fedora Reporter: Erik Schilling <fedora>
Component: dnfAssignee: Honza Silhan <jsilhan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: akozumpl, pnemade, rholy, tim.lauridsen, zjytj
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/d908efe0d5c6e6391027d277f5499a5ce48de0fa
Whiteboard: abrt_hash:56ded6e2e8326e70c3710257b4a00731110c547c
Fixed In Version: hawkey-0.5.1-1.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-23 04:23:50 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: backtrace
none
File: environ none

Description Erik Schilling 2014-07-30 18:36:10 UTC
Version-Release number of selected component:
dnf-0.5.4-1.fc20

Additional info:
reporter:       libreport-2.2.3
cmdline:        /usr/bin/python -OO /usr/bin/dnf provides 2014-04-06-193307_869x773_scrot.png 2014-04-06-193447_957x759_scrot.png 2014-04-08-193645_536x767_scrot.png 2014-04-13-183230_273x262_scrot.png 2014-05-10-170814_341x94_scrot.png 2014-05-29-204230_742x520_scrot.png 2014-05-29-204335_782x547_scrot.png 2014-06-07-220639_545x169_scrot.png 2014-06-19-153015_1262x102_scrot.png 2014-06-19-153032_1268x100_scrot.png 2014-06-24-192124_544x52_scrot.png 2014-07-14-211424_1025x591_scrot.png 2014-07-19-134807_827x817_scrot.png 2014-07-19-134828_828x822_scrot.png <whole lot of gabage accident paste>
executable:     /usr/bin/dnf
kernel:         3.15.6-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
query.py:107:by_provides:UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 0: ordinal not in range(128)

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 200, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 83, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 133, in _main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1171, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands/__init__.py", line 456, in run
    return self.base.provides(extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 567, in provides
    matches.extend(super(BaseCli, self). provides(spec))
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 1643, in provides
    providers = query.by_provides(self.sack, provides_spec)
  File "/usr/lib/python2.7/site-packages/dnf/query.py", line 107, in by_provides
    reldeps = list(map(functools.partial(hawkey.Reldep, sack), patterns))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 0: ordinal not in range(128)

Local variables in innermost frame:
patterns: [u'\xd6ffentlich']
ignore_case: False
get_query: False
sack: <dnf.sack.Sack object at 0x2310628>

Comment 1 Erik Schilling 2014-07-30 18:36:13 UTC
Created attachment 922671 [details]
File: backtrace

Comment 2 Erik Schilling 2014-07-30 18:36:15 UTC
Created attachment 922672 [details]
File: environ

Comment 3 Erik Schilling 2014-07-30 18:37:32 UTC
Happened when i accidently pasted a whole lot of random stuff after dnf provides.

Comment 4 zbelial 2014-08-06 03:57:05 UTC
Similar problem here.

dnf-0:0.5.4-2.fc20.noarch

Error Message:
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 200, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 83, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 133, in _main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1170, in run
    self.base.plugins.run_sack()
  File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 82, in fn
    dnf.util.mapall(operator.methodcaller(method), self.plugins)
  File "/usr/lib/python2.7/site-packages/dnf/util.py", line 139, in mapall
    return list(map(fn, *seq))
  File "/usr/lib/python2.7/site-packages/dnf-plugins/generate_completion_cache.py", line 55, in sack
    self._out('Can\'t write completion cache: %s' % e)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 11: ordinal not in range(128)

This happened when I executed "dnf search dnf"

Comment 5 Honza Silhan 2014-08-06 10:39:22 UTC
zbelial, this is other bug that is fixed in dnf-0.5.5.

Comment 6 Honza Silhan 2014-08-25 09:20:17 UTC
Fixed in the upstream.

Comment 7 Fedora Update System 2014-09-18 08:44:48 UTC
hawkey-0.5.1-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/hawkey-0.5.1-1.fc21

Comment 8 Fedora Update System 2014-09-19 17:44:28 UTC
Package hawkey-0.5.1-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hawkey-0.5.1-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-11102/hawkey-0.5.1-1.fc21
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2014-09-23 04:23:50 UTC
hawkey-0.5.1-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.