Bug 235995 - yum displays wrong error when exiting with CTRL-C
yum displays wrong error when exiting with CTRL-C
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-11 07:48 EDT by Till Maas
Modified: 2014-01-21 17:57 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-04-16 10:53:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Till Maas 2007-04-11 07:48:50 EDT
Description of problem:
I ran "yum update" and aborted it at the beginning with CTRL-C and yum displays
an error message which is not true (a normal run of "yum update" without
pressint CTRL-C works flawlessly):

$ sudo yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   cannot import name iterparse

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.4 (#1, Oct 23 2006, 13:58:00)
[GCC 4.1.1 20061011 (Red Hat 4.1.1-30)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq

Version-Release number of selected component (if applicable):
3.0.5-1.fc6
Comment 1 Jeremy Katz 2007-04-16 10:53:32 EDT
If you hit ctrl-c very quickly, then you're going to interrupt before we've had
a chance to set up our KeyboardInterrupt handler and thus cause the import of
modules to fail.  Which then leads to that error.

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