ImportError: No module named history

Solution Verified - Updated -

Issue

  • Attempting to use yum shows the following errors:
[root@host ~]# yum info yum
Traceback (most recent call last):
  File "/usr/bin/yum", line 28, in ?
    import yummain
  File "/usr/share/yum-cli/yummain.py", line 34, in ?
    import cli
  File "/usr/share/yum-cli/cli.py", line 33, in ?
    import output
  File "/usr/share/yum-cli/output.py", line 46, in ?
    import yum.history
ImportError: No module named history

Environment

  • Red Hat Enterprise Linux 5.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In