[packagekit] Unicode error with the yum backend

Richard Hughes hughsient at gmail.com
Mon Feb 4 09:58:36 PST 2008


On Mon, 2008-02-04 at 18:39 +0100, Tim Lauridsen wrote:
> [tim at naboo helpers]$ LANG=C sudo ./resolve.py none 
> ipw2100-firmwareallow-cancel    true
> no-percentage-updates
> status  query
> package installed       ipw2100-firmware;1.3-8;noarch;installed
> Firmware for Intel® PRO/Wireless 2100 network adaptors

Cool, that's fixed, thanks. I guess a similar fix will be needed for:

[hughsie at hughsie-laptop yum]$ LANG=C sudo ./search-group.py none other
<a billion correct descriptions>
error   internal-error  Error Type: <type
'exceptions.UnicodeEncodeError'>;Error Value: 'ascii' codec can't encode
character u'\xe6' in position 69: ordinal not in range(128);
File : ./search-group.py , line 21, in <module>;
backend.search_group(options,searchterms);
File : /usr/share/PackageKit/helpers/yum/yumBackend.py , line 466, in
search_group;    self._show_package(pkg, INFO_AVAILABLE);
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\t%s\t%s\t%s" %
(status,id,summary);

Richard.





More information about the PackageKit mailing list