Why does sosreport command fail with the error "ImportError cannot import name sos_get_command_output" ?

Solution Verified - Updated -

Issue

  • sosreport command fail with the following output.
#  sosreport
Traceback (most recent call last):
  File "/usr/sbin/sosreport", line 20, in <module>
    from sos.sosreport import main
  File "/usr/lib/python2.6/site-packages/sos/sosreport.py", line 31, in <module>
    from sos.plugins import import_plugin
  File "/usr/lib/python2.6/site-packages/sos/plugins/__init__.py", line 21, in <module>
    from sos.utilities import (sos_get_command_output, import_module, grep,
ImportError: cannot import name sos_get_command_output

Environment

  • Red Hat Enterprise Linux 6

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