Bug 1223034
Summary: | [abrt] python-dnf: pycomp.py:88:write_to_file:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 24: ordinal not in range(128) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Farid <shawnx> | ||||||
Component: | dnf-plugins-extras | Assignee: | Radek Holy <rholy> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 22 | CC: | heldwin, ignatenko, jkadlcik, jsilhan, jzeleny, mluscon, packaging-team-maint, pnemade, rholy, shawnx, tim.lauridsen, vmukhame | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Unspecified | ||||||||
URL: | https://retrace.fedoraproject.org/faf/reports/bthash/be015242f90b1edc82a40e96ee36a6d6b7c739e2 | ||||||||
Whiteboard: | abrt_hash:39a98c03c1ff61eb6e01b1f7f1f65845f00b4df9 | ||||||||
Fixed In Version: | dnf-plugins-extras-0.0.8-1.fc22 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-05-30 15:56:38 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
Farid
2015-05-19 16:09:42 UTC
Created attachment 1027298 [details]
File: backtrace
Created attachment 1027299 [details]
File: environ
Another user experienced a similar problem: dnf migrate reporter: libreport-2.5.1 cmdline: /usr/bin/python -OO /bin/dnf migrate event_log: 2015-05-19-18:09:59> (« report_uReport » terminé avec succès) executable: /bin/dnf kernel: 4.0.2-300.fc22.x86_64 package: dnf-1.0.0-1.fc22 reason: pycomp.py:88:write_to_file:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 24: ordinal not in range(128) runlevel: N 5 type: Python uid: 0 Thank you for the report. The `dnf.pycomp.write_to_file` function is apparently broken. It does not work for non-ascii byte strings. On the other hand, to be safe, I think that the migrate plugin should convert all the byte strings to Unicode strings. That would improve the plugin as well as work around the problem with `write_to_file`. We'll take a look. Let's improve the wording: "as a side effect, it would work around the problem with `write_to_file` as well." It apparently affects a lot of people, taking... dnf-plugins-extras-0.0.8-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/dnf-plugins-extras-0.0.8-1.fc22 Package dnf-plugins-extras-0.0.8-1.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-plugins-extras-0.0.8-1.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-8740/dnf-plugins-extras-0.0.8-1.fc22 then log in and leave karma (feedback). dnf-plugins-extras-0.0.8-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. *** Bug 1224049 has been marked as a duplicate of this bug. *** |