subscription-manager fails with "unexpected keyword argument 'use_errno'" or ctypes "Version number mismatch"

Solution Verified - Updated -

Issue

The following errors can be seen in the console:

# subscription-manager status
Traceback (most recent call last):
  File "/usr/sbin/subscription-manager", line 9, in <module>
    load_entry_point('subscription-manager==1.24.48', 'console_scripts', 'subscription-manager')()
  :
  :
  File "/usr/lib/python2.7/site-packages/pyinotify.py", line 207, in init
    self._libc = ctypes.CDLL(libc_name, use_errno=True)
TypeError: __init__() got an unexpected keyword argument 'use_errno'
# subscription-manager status
Traceback (most recent call last):
  File "/usr/sbin/subscription-manager", line 9, in <module>
    load_entry_point('subscription-manager==1.24.48', 'console_scripts', 'subscription-manager')()
  :
  :
  File "/usr/lib/python2.7/site-packages/rpmUtils/arch.py", line 6, in <module>
    import ctypes
  File "/usr/lib64/python2.7/site-packages/ctypes/__init__.py", line 20, in <module>
    raise Exception, ("Version number mismatch", __version__, _ctypes_version)
Exception: ('Version number mismatch', '1.0.2', '1.1.0')

Environment

  • Red Hat Enterprise Linux 7

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