Registering system with Red Hat Insights fails with error "ImportError: No module named 'requests.packages.chardet'"

Solution Verified - Updated -

Issue

  • redhat-access-insights --register fails with error ImportError: No module named 'requests.packages.chardet'
[root@localhost]$ redhat-access-insights --register
Traceback (most recent call last):
  File "/usr/bin/redhat-access-insights", line 9, in <module>
    load_entry_point('redhat-access-insights==1.0.13', 'console_scripts', 'redhat-access-insights')()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 299, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2229, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.6/site-packages/redhat_access_insights/__init__.py", line 14, in <module>
    import requests
  File "/usr/lib/python2.6/site-packages/requests/__init__.py", line 58, in <module>
    from . import utils
  File "/usr/lib/python2.6/site-packages/requests/utils.py", line 26, in <module>
    from .compat import parse_http_list as _parse_list_header
  File "/usr/lib/python2.6/site-packages/requests/compat.py", line 7, in <module>
    from .packages import chardet
  File "/usr/lib/python2.6/site-packages/requests/packages/__init__.py", line 99, in load_module
    raise ImportError("No module named '%s'" % (name,))
ImportError: No module named 'requests.packages.chardet'

Environment

  • Red Hat Insights

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