Version-Release number of selected component (if applicable): livecd-tools-026-1.fc12 Steps to Reproduce: $ LANG=ja_JP.UTF-8 sudo /usr/bin/livecd-creator -c work/spin-kickstarts/HEAD/fedora-livecd-desktop.ks Actual results: Retrieving http://mirror/pub/fedora/linux/development/i386/os/Packages/zlib-1.2.3-23.fc12.i686.rpm ...OK warning: fontpackages-filesystem-1.22-2.fc12.noarch: Header V3 RSA/SHA1 signature: NOKEY, key ID 57bbccba Traceback (most recent call last): File "/usr/share/yum-cli/callback.py", line 196, in callback UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-12: ordinal not in range(128) error: python callback <bound method RPMInstallCallback.callback of <callback.RPMInstallCallback instance at 0xb27c50c>> failed, aborting! Expected results: no backtrace Additional info: LANG=C continues ok to install the packages.
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle. Changing version to '12'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Thank you for taking the time to report this bug. Updates to this package have been released since it was first reported. If you have time to update the package and re-test, please do so and report the results here. You can obtain the updated package by typing 'yum update livecd-creator yum' or using the graphical updater, Software Update. --- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers
Still happens with livecd-tools-031-1.fc12.1
/usr/share/yum-cli/*.py seem to have confusion handling Unicode in Python. I'll attach a naive patch, which I confirmed fixing the original problem, though I think it might be better to use built-in print() instead of sys.stdout.write().
Created attachment 407956 [details] patch to fix yum-cli Python unicode handling
is there any progress here?
Have you tried yum 3.2.28 from f12-updates? Does it fix it ?
No, still happen with yum-3.2.28-3.fc12. Did you apply Ueno-san's above patch? :)
Ueno-san, I assume you meant instead of: - sys.stdout.write(msg) + sys.stdout.write(msg.encode(sys.stdout.encoding)) ...you suggest: - sys.stdout.write(msg) + print msg, ...if so then I'd happily accept/apply that patch.
(In reply to comment #9) > Ueno-san, I assume you meant instead of: > > - sys.stdout.write(msg) > + sys.stdout.write(msg.encode(sys.stdout.encoding)) > > ...you suggest: > > - sys.stdout.write(msg) > + print msg, > > ...if so then I'd happily accept/apply that patch. Yes, but sorry, I was totally missing the point. livecd-tools should call yum.misc.setup_locale() before using any yum-cli module. I've put an SRPM with the fix on: http://ueno.fedorapeople.org/livecd-tools/livecd-tools-033-4.fc13.src.rpm If it works, I think we can reassign this bug to livecd-tools.
Confirmed it by myself and reported to the livecd-tools upstream: http://lists.fedoraproject.org/pipermail/livecd/2010-September/006234.html Reassigning to livecd-tools.
This patch (from comment 11) has been committed upstream.
livecd-tools-034-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/livecd-tools-034-1.fc14
Is it possible to have a backport for F13 too?
Maybe. If 034 works well in F14, I'll probably try testing it an F13. If there is some problem with testing in F13, then I am not sure whether or not I'll have time to work on selective backporting of patches. First things need to work well in F14 though.
livecd-tools-034-2.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update livecd-tools'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/livecd-tools-034-2.fc14
livecd-tools-034-7.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/livecd-tools-034-7.fc14
livecd-tools-034-7.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update livecd-tools'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/livecd-tools-034-7.fc14
livecd-tools-034-7.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.