Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th July 2007, 10:47 PM
kaelthas Offline
Registered User
 
Join Date: May 2007
Location: Troy, MI, USA
Posts: 15
Bug when listing installed packages in yum

When I try to run a "yum -y info installed" it lists some packages, then when it's in the Bs alphabetically it gives this error.

Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 94, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 266, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 164, in doCommand
base.listPkgs(ypl.installed, 'Installed Packages', basecmd)
File "/usr/share/yum-cli/output.py", line 102, in listPkgs
self.infoOutput(pkg)
File "/usr/share/yum-cli/output.py", line 73, in infoOutput
print _("Description:\n%s") % pkg.description.encode("UTF-8")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 350: ordinal not in range(128)

Anyone heard of this and fixed it? I'm using Fedora 7 with the latest updates. It's preventing me from using kyum which is far preferred over the inconvenient pirut app.
Reply With Quote
  #2  
Old 8th July 2007, 11:24 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,002
The packages need to be qualified (except for the list all)
Thecommand format is
# yum list installed foo bar* ...
which would list installed package foo and any starting with bar

But it does appear that the yum.py can't handle invalid options and command structures.
# yum info all > yumlist.txt
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 94, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 266, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 164, in doCommand
base.listPkgs(ypl.installed, 'Installed Packages', basecmd)
File "/usr/share/yum-cli/output.py", line 102, in listPkgs
self.infoOutput(pkg)
File "/usr/share/yum-cli/output.py", line 73, in infoOutput
print _("Description:\n%s") % pkg.description.encode("UTF-8")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 49: ordinal not in range(128)

SJ
__________________
Do the Math
Reply With Quote
  #3  
Old 8th July 2007, 11:55 PM
kaelthas Offline
Registered User
 
Join Date: May 2007
Location: Troy, MI, USA
Posts: 15
Quote:
Originally Posted by SlowJet
The packages need to be qualified (except for the list all)
Thecommand format is
# yum list installed foo bar* ...
which would list installed package foo and any starting with bar

But it does appear that the yum.py can't handle invalid options and command structures.
# yum info all > yumlist.txt
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 94, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 266, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 164, in doCommand
base.listPkgs(ypl.installed, 'Installed Packages', basecmd)
File "/usr/share/yum-cli/output.py", line 102, in listPkgs
self.infoOutput(pkg)
File "/usr/share/yum-cli/output.py", line 73, in infoOutput
print _("Description:\n%s") % pkg.description.encode("UTF-8")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 49: ordinal not in range(128)

SJ
Yes, if I limit the search to certain packages it seems to work ok. Problem is, that doesn't do kyum any good when it's trying to list installed packages for me.
Reply With Quote
  #4  
Old 9th July 2007, 12:24 AM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,002
Are you running fc6 or f7?
kyum was still an fc6 package in f7 gold so
yum update kyum
and then try kyum again

SJ
__________________
Do the Math
Reply With Quote
  #5  
Old 9th July 2007, 12:43 AM
kaelthas Offline
Registered User
 
Join Date: May 2007
Location: Troy, MI, USA
Posts: 15
Quote:
Originally Posted by SlowJet
Are you running fc6 or f7?
kyum was still an fc6 package in f7 gold so
yum update kyum
and then try kyum again

SJ
I tried, and it says it's already up to date. I suppose I should start looking for where to put the bug report.
Reply With Quote
  #6  
Old 27th July 2007, 06:40 PM
papitopaul Offline
Registered User
 
Join Date: Feb 2007
Posts: 4
I get this same error doing
Code:
yum info >yuminfo.txt
Code:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 75: ordinal not in range(128)
tail yuminfo.txt
Code:
Name   : cups
Arch   : i386
Epoch  : 1
Version: 1.2.12
Release: 1.fc7
Size   : 8.6 M
Repo   : installed
Summary: Common Unix Printing System
Doing some research on this, it seems that this error is thrown to indicate a problem with an entry in a database, rather than just ignoring that there is a problem.

Unreported problems are handled as if they never occurred. Anybody know who/where to report a DB entry problem to? Or do we just wait until "cups" is updated again?
Reply With Quote
Reply

Tags
bug, installed, listing, packages, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yumex not listing all packages cadet1811 Using Fedora 0 13th December 2008 12:47 PM
listing installed packages via Terminal phd7 Using Fedora 2 10th March 2008 06:12 PM
Listing installed packages by group kwick60073 Using Fedora 1 19th December 2005 06:44 PM
Installed RPM not listing stefaandk Using Fedora 3 1st July 2005 07:27 AM


Current GMT-time: 13:01 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat