Bug 441659
| Summary: | UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 7: ordinal not in range(128) | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Frank Aisenbrey <faisy> | ||||||||||||
| Component: | yum | Assignee: | Seth Vidal <skvidal> | ||||||||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||
| Severity: | medium | Docs Contact: | |||||||||||||
| Priority: | low | ||||||||||||||
| Version: | rawhide | CC: | ffesti, james.antill, katzj, pmatilai, tim.lauridsen | ||||||||||||
| Target Milestone: | --- | ||||||||||||||
| Target Release: | --- | ||||||||||||||
| Hardware: | All | ||||||||||||||
| OS: | Linux | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||
| Clone Of: | Environment: | ||||||||||||||
| Last Closed: | 2008-04-14 20:35:01 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
Frank Aisenbrey
2008-04-09 11:47:45 UTC
Created attachment 301808 [details]
Fix UnicodeEncodeError in yum-cli
Created attachment 301809 [details]
fix UnicodeEncodeError in yum
This happened when yum included a package like the 'curry'(contained ü in
Summary or Description). My workarounds are in above attachments.
It seems that your case is different. My workarounds do not fix against the package name itself contained "ä" or etc.. Created attachment 301832 [details]
Fix UnicodeEncodeError in yum-cli
Created attachment 301834 [details]
fix UnicodeEncodeError in yum
My test shows that above ones handle package names also.
Created attachment 301835 [details]
Fix UnicodeEncodeError in yum-cli
Fix additional an easy case :).
Hi, A new yum hit koji that MIGHT have a much lower level fix than the one you've applied. could you grab this yum http://koji.fedoraproject.org/koji/buildinfo?buildID=45710 and see if it fixes the problem you've been seeing? thanks Problem still exists
[root@localhost ~]# yum erase msttcorefonts-2.0-1.noarch
Geladene Plugins: allowdowngrade, refresh-packagekit
Einrichten des Entfernenprozess
Löse Abhängigkeiten auf
--> Führe Transaktionsprüfung aus
---> Paket msttcorefonts.noarch 0:2.0-1 gesetzt zum Sein gelöscht
--> Beende Abhängigkeitsauflösung
Abhängigkeiten aufgelöst
=============================================================================
Paket Arch Version Repository Grösse
=============================================================================
Entfernen:
msttcorefonts noarch 2.0-1 installed 5.5 M
Transaktionszusammenfassung
=============================================================================
Installieren 0 Pakete(e)
Aktualisieren 0 Pakete(e)
Enfernen 1 Paket(e)
Ist dies richtig? [j/N] :j
Lade Pakete herunter:
Führe rpm_check_debug durch
Führe Transaktionsstest durch
Transaktionstest beendet
Transkaktionstest erfolgreich
Führe Verarbeitung durch
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 236, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 188, in main
base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 430, in doTransaction
self.runTransaction(cb=cb)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 764, in
runTransaction
errors = self.ts.run(cb.callback, '')
File "/usr/lib/python2.5/site-packages/yum/rpmtrans.py", line 323, in callback
self._unInstStop( bytes, total, h )
File "/usr/lib/python2.5/site-packages/yum/rpmtrans.py", line 415, in _unInstStop
self.total_actions)
File "/usr/share/yum-cli/output.py", line 750, in event
sys.stdout.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 4:
ordinal not in range(128)
[root@localhost ~]#
please test http://koji.fedoraproject.org/packages/yum/3.2.14/4.fc9/noarch/yum-3.2.14-4.fc9.noarch.rpm and let us know if it fixes it. Scratch that, go straight to: http://koji.fedoraproject.org/packages/yum/3.2.14/5.fc9/noarch/yum-3.2.14-5.fc9.noarch.rpm ...
[root@localhost ~]# yum erase msttcorefonts-2.0-1.noarch
Geladene Plugins: allowdowngrade, refresh-packagekit
Einrichten des Entfernungsprozess
Löse Abhängigkeiten auf
--> Führe Transaktionsprüfung aus
---> Paket msttcorefonts.noarch 0:2.0-1 gesetzt um gelöscht zu werden
--> Abhängigkeitsauflösung beendet
Abhängigkeiten aufgelöst
=============================================================================
Paket Arch Version Repository Größe
=============================================================================
Entfernen:
msttcorefonts noarch 2.0-1 installed 5.5 M
Transaktionszusammenfassung
=============================================================================
Installieren 0 Pakete(e)
Aktualisieren 0 Pakete(e)
Enfernen 1 Paket(e)
Ist dies richtig? [j/N] :j
Lade Pakete herunter:
Führe rpm_check_debug durch
Führe Verarbeitungsstest durch
Verarbeitungstest beendet
Transaktionstest erfolgreich
Führe Verarbeitung durch
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 236, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 188, in main
base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 430, in doTransaction
self.runTransaction(cb=cb)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 772, in
runTransaction
errors = self.ts.run(cb.callback, '')
File "/usr/lib/python2.5/site-packages/yum/rpmtrans.py", line 323, in callback
self._unInstStop( bytes, total, h )
File "/usr/lib/python2.5/site-packages/yum/rpmtrans.py", line 415, in _unInstStop
self.total_actions)
File "/usr/share/yum-cli/output.py", line 750, in event
sys.stdout.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 4:
ordinal not in range(128)
[root@localhost ~]#
Ok, we're pretty sure this one will fix it and if not there's a config. option to turn the i18n stuff off now: http://koji.fedoraproject.org/packages/yum/3.2.14/6.fc9/noarch/yum-3.2.14-6.fc9.noarch.rpm You're right, this one works without twiddling any options. Get it into the Fedora 9 release, please. Thank You. it's fixed in rawhide and upstream and I'll be requesting an exception for the freeze for this. |