Bug 212850 - "TypeError: not enough arguments for format string" with debuglevel=5
Summary: "TypeError: not enough arguments for format string" with debuglevel=5
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-29 17:55 UTC by Mads Kiilerich
Modified: 2014-01-21 22:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-11-16 04:07:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mads Kiilerich 2006-10-29 17:55:21 UTC
Description of problem:

Stacktrace is shown - but yum seems to continue anyway

Version-Release number of selected component (if applicable):

yum-3.0-6

How reproducible:

Always when relevant LOC is reached, ie with debuglevel=5

Steps to Reproduce:
Currently I get it at "yum install Helix*", but saw it with "yum upgrade" as well.

Actual results:

..
reduced installs :
Traceback (most recent call last):
  File "/usr/lib/python2.4/logging/__init__.py", line 731, in emit
    msg = self.format(record)
  File "/usr/lib/python2.4/logging/__init__.py", line 617, in format
    return fmt.format(record)
  File "/usr/lib/python2.4/logging/__init__.py", line 405, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.4/logging/__init__.py", line 276, in getMessage
    msg = msg % self.args
TypeError: not enough arguments for format string
...

Expected results:

...
reduced installs :
   HelixPlayer-plugin.i386 1:1.0.7-4.fc6
...

Additional info:
Seems to be fixed by
--- /usr/share/yum-cli/cli.py.org       2006-10-29 18:25:02.000000000 +0100
+++ /usr/share/yum-cli/cli.py   2006-10-29 18:28:09.000000000 +0100
@@ -599,7 +599,7 @@
         if len(pkglist) > 0:
             self.verbose_logger.debug('reduced installs :')
         for po in pkglist:
-            self.verbose_logger.debug('   %s.%s %s:%s-%s', po.pkgtup)
+            self.verbose_logger.debug('   %s.%s %s:%s-%s', *po.pkgtup)
             self.install(po)
 
         if len(passToUpdate) > 0:

Comment 1 Michal Jaegermann 2006-11-12 01:25:47 UTC
I got the same "TypeError:" every time I tried '-d 7' with yum-3.0-6.

Comment 2 Jeremy Katz 2006-11-16 04:07:47 UTC
Commited to upstream CVS, will be in 3.0.2.  Thanks for the patch!


Note You need to log in before you can comment on or make changes to this bug.