Bug 1095861
| Summary: | UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 21: ordinal not in range(128) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Rahul Sundaram <metherid> |
| Component: | dnf | Assignee: | Honza Silhan <jsilhan> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | 20 | CC: | akozumpl, bugzilla, carlos.soriano89, fedora, ignatenko, jsilhan, jsynacek, mjuszkie, pnemade, rholy, smocktaylor, tim.lauridsen, zkabelac |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | dnf-plugins-core-0.0.8-2.fc20 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-05-31 23:57:44 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Rahul Sundaram
2014-05-08 17:02:00 UTC
18:22 root@puchatek:hrw# dnf --version
0.5.1
Zainstalowane: dnf-0:0.5.1-1.fc21.noarch o 2014-05-05 16:34
Zbudowane : Fedora Project o 2014-05-02 08:10
Zainstalowane: rpm-0:4.11.2-10.fc21.x86_64 o 2014-04-24 06:55
Zbudowane : Fedora Project o 2014-04-21 18:43
18:22 root@puchatek:hrw# locale
LANG=pl_PL.UTF-8
LC_CTYPE=pl_PL.UTF-8
LC_NUMERIC="pl_PL.UTF-8"
LC_TIME="pl_PL.UTF-8"
LC_COLLATE=pl_PL.UTF-8
LC_MONETARY="pl_PL.UTF-8"
LC_MESSAGES=pl_PL.UTF-8
LC_PAPER="pl_PL.UTF-8"
LC_NAME="pl_PL.UTF-8"
LC_ADDRESS="pl_PL.UTF-8"
LC_TELEPHONE="pl_PL.UTF-8"
LC_MEASUREMENT="pl_PL.UTF-8"
LC_IDENTIFICATION="pl_PL.UTF-8"
LC_ALL=
18:23 root@puchatek:hrw# dnf reinstall kernel-core -y
Rozwiązano zależności.
=============================================================================================================================================================
Pakiet Architektura Wersja Repozytorium Rozmiar
=============================================================================================================================================================
Ponowne instalowanie:
kernel-core x86_64 3.15.0-0.rc5.git1.2.fc21 fedora-rawhide-kernel-nodebug 17 M
Podsumowanie transakcji
=============================================================================================================================================================
Całkowity rozmiar pobierania: 17 M
Pobieranie pakietów:
kernel-core-3.15.0-0.rc5.git1.2.fc21.x86_64.rpm 3.1 MB/s | 17 MB 00:05
Wykonywanie sprawdzania transakcji
Test transakcji został ukończony powodzeniem.
Wykonywanie testu transakcji
Test transakcji został ukończony powodzeniem.
Wykonywanie transakcji
Ponowne instalowanie : kernel-core-3.15.0-0.rc5.git1.2.fc21.x86_64 1/2
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/dnf/yum/rpmtrans.py", line 404, in callback
self._scriptStop(bytes, total, h);
File "/usr/lib/python2.7/site-packages/dnf/yum/rpmtrans.py", line 537, in _scriptStop
self._scriptout()
File "/usr/lib/python2.7/site-packages/dnf/yum/rpmtrans.py", line 201, in _scriptout
self.display.scriptout(msgs)
File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 2429, in scriptout
sys.stdout.write(unicode(msgs))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 1: ordinal not in range(128)
FATAL ERROR: python callback <bound method RPMTransaction.callback of <dnf.yum.rpmtrans.RPMTransaction object at 0x29fb150>> failed, aborting!
I do wonder why DNF uses Python 2.7 instead of 3.x so there will be no issue with non US-ASCII strings. *** Bug 1096398 has been marked as a duplicate of this bug. *** just hit this on a box that is entirely in us english
Running transaction
Upgrading : bash-4.3.18-1.fc21.x86_64 1/339
Upgrading : libgcc-4.9.0-5.fc21.x86_64 2/339
Upgrading : libstdc++-4.9.0-5.fc21.x86_64 3/339
Upgrading : libetpan-1.5-1.fc21.x86_64 4/339
Upgrading : claws-mail-3.9.3-4.fc21.x86_64 5/339
Upgrading : elfutils-libelf-0.159-1.fc21.x86_64 6/339
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/dnf/yum/rpmtrans.py", line 404, in callback
self._scriptStop(bytes, total, h);
File "/usr/lib/python2.7/site-packages/dnf/yum/rpmtrans.py", line 537, in _scriptStop
self._scriptout()
File "/usr/lib/python2.7/site-packages/dnf/yum/rpmtrans.py", line 201, in _scriptout
self.display.scriptout(msgs)
File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 2429, in scriptout
sys.stdout.write(unicode(msgs))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6: ordinal not in range(128)
FATAL ERROR: python callback <bound method RPMTransaction.callback of <dnf.yum.rpmtrans.RPMTransaction object at 0x7fb76bc0e8d0>> failed, aborting!
*** Bug 1100265 has been marked as a duplicate of this bug. *** *** Bug 1100822 has been marked as a duplicate of this bug. *** Fixed in the upstream. Marcin, you can use dnf from python 3 but we also have to support python 2 from the same codebase. We are trying to use unicode strings everywhere and return unicoded strings from libraries dnf depends on. Jan: ok, so why it is not Python3 in rawhide by default? With Python2 support in testsuite you will see when it fails (and such fail will stop it from getting into repository). I recently went back into Python programming and after first hour of dealing with Unicode in Python2 decided to forget that such version exists :D Marcin, we still need to run on python 2 becouse of RHEL7 users and we don't want to create multiple branches of DNF. The future goal is to get rid of Python 2, of course. (In reply to Jan Silhan from comment #9) > Marcin, we still need to run on python 2 becouse of RHEL7 users and we don't EPEL7 users, rather. dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20 Package dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.0.8-2.fc20 libsolv-0.6.1-1.git6d968f1.fc20 hawkey-0.4.16-1.fc20 dnf-0.5.2-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-6789/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20 then log in and leave karma (feedback). dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. *** Bug 1109323 has been marked as a duplicate of this bug. *** |