Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 235995 - yum displays wrong error when exiting with CTRL-C
yum displays wrong error when exiting with CTRL-C
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Depends On:
  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:
Last Closed: 2007-04-16 10:53:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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:

Version-Release number of selected component (if applicable):
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.