[packagekit] Unicode error with the yum backend
Tim Lauridsen
tim.lauridsen at googlemail.com
Sun Feb 3 23:31:17 PST 2008
Richard Hughes wrote:
> Guys, a new error:
>
> [hughsie at hughsie-laptop PackageKit]$ pkcon resolve ipw2100-firmware
> [.........===...........................................................................................................................]
> Error: internal-error : Error Type: <type 'exceptions.UnicodeEncodeError'>
> Error Value: 'ascii' codec can't encode character u'\xae' in position 76: ordinal not in range(128)
> File : /usr/share/PackageKit/helpers/yum/resolve.py , line 18, in <module>
> backend.resolve(filters, name)
> File : /usr/share/PackageKit/helpers/yum/yumBackend.py , line 713, in resolve
> self._show_package(pkg,INFO_INSTALLED)
> File : /usr/share/PackageKit/helpers/yum/yumBackend.py , line 989, in _show_package
> self.package(id,status, pkg.summary)
> File : /usr/share/PackageKit/helpers/yum/yumBackend.py , line 253, in package
> PackageKitBaseBackend.package(self,id,status,summary)
> File : /usr/lib/python2.5/site-packages/packagekit/backend.py , line 87, in package
> print >> sys.stdout,"package\tstderr from %p = '%s'\t?> \terror internal-error Error Type: <type 'exceptions.UnicodeEncodeError'>;Error Value: 'ascii' codec can't encode character u'\xae' in position 76: ordinal not in range(128); File : /usr/share/PackageKit/helpers/yum/resolve
> resolve runtime was 0.9 seconds
>
> Ideas welcome on how to fix this, I'm stuck.
>
> Richard.
>
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
Strange, cant reproduce the error on Fedora 8.
[tim at deathstar ~]$ echo $LANG
en_US.UTF-8
[tim at hoth helpers]$ sudo ./resolve.py none ipw2100-firmware
allow-cancel true
no-percentage-updates
status query
package installed ipw2100-firmware;1.3-8;noarch;installed Firmware for
Intel® PRO/Wireless 2100 network adaptors
Tim
More information about the PackageKit
mailing list