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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content