Registering system to Red Hat Insights fails with error "ImportError: cannot import name ProtocolError"
Issue
- While registering system to Red Hat Insights fails with error
ImportError: cannot import name ProtocolError - Command
redhat-access-insights --registerfails with below traceback error
Traceback (most recent call last):
File "/usr/bin/redhat-access-insights", line 9, in <module>
load_entry_point('redhat-access-insights==1.0.8', '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 59, in <module>
from .models import Request, Response, PreparedRequest
File "/usr/lib/python2.6/site-packages/requests/models.py", line 22, in <module>
from .packages.urllib3.exceptions import (
ImportError: cannot import name ProtocolError
Environment
- Red Hat Insights
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
