Setup failed for custom integration rinnai: Unable to import component: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/usr/local/lib/python3.11/site-packages/urllib3/util/ssl_.py)
Closed this issue · 3 comments
Recently updated home assistant and noticed that the integration would no longer load. The following is the log message.
Logger: homeassistant.setup
Source: custom_components/rinnai/init.py:5
Integration: Rinnai Control-R Water Heater (documentation)
First occurred: 3:57:23 PM (1 occurrences)
Last logged: 3:57:23 PM
Setup failed for custom integration rinnai: Unable to import component: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/usr/local/lib/python3.11/site-packages/urllib3/util/ssl_.py)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 215, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in find_and_load_unlocked
File "", line 690, in load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "/config/custom_components/rinnai/init.py", line 5, in
from aiorinnai import async_get_api
File "/usr/local/lib/python3.11/site-packages/aiorinnai/init.py", line 17, in
from aiorinnai.api import async_get_api
File "/usr/local/lib/python3.11/site-packages/aiorinnai/api.py", line 12, in
from aiorinnai.aws_srp import AWSSRP
File "/usr/local/lib/python3.11/site-packages/aiorinnai/aws_srp.py", line 19, in
import aioboto3
File "/usr/local/lib/python3.11/site-packages/aioboto3/init.py", line 5, in
from aioboto3.session import Session
File "/usr/local/lib/python3.11/site-packages/aioboto3/session.py", line 9, in
import aiobotocore.session
File "/usr/local/lib/python3.11/site-packages/aiobotocore/session.py", line 1, in
from botocore.session import Session, EVENT_ALIASES, ServiceModel, UnknownServiceError
File "/usr/local/lib/python3.11/site-packages/botocore/session.py", line 29, in
import botocore.credentials
File "/usr/local/lib/python3.11/site-packages/botocore/credentials.py", line 34, in
from botocore.config import Config
File "/usr/local/lib/python3.11/site-packages/botocore/config.py", line 16, in
from botocore.endpoint import DEFAULT_TIMEOUT, MAX_POOL_CONNECTIONS
File "/usr/local/lib/python3.11/site-packages/botocore/endpoint.py", line 22, in
from botocore.awsrequest import create_request_object
File "/usr/local/lib/python3.11/site-packages/botocore/awsrequest.py", line 24, in
import botocore.utils
File "/usr/local/lib/python3.11/site-packages/botocore/utils.py", line 32, in
import botocore.httpsession
File "/usr/local/lib/python3.11/site-packages/botocore/httpsession.py", line 10, in
from urllib3.util.ssl import (
ImportError: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl' (/usr/local/lib/python3.11/site-packages/urllib3/util/ssl.py)
Interesting. Did this happen after an update or did you just try installing it? I am running on the newest version with no issues right now.
@explosivo22 I did just recently upgrade but I believe it may have already been broken. It used to run and I haven’t changed anything with the Rinnai configuration/device.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.