Problem with requirements for core/external integrations

Hi all

I have installed Home Assistant 2022.4.7, in Home Assistant OS.

I am experiencing some issues with core integrations, but also third parties integrations.
It seem my HA installation cannot install external libraries.

This is the log result when I try to install the core integration PVPC hour pricing through the UI flowchart (Spain electricity hourly pricing (PVPC) - Home Assistant). The configuration flowchart throws an error, cannot be loaded.

Any suggestion of what is happening?


Logger: aiohttp.server
Source: requirements.py:194
First occurred: 12:21:40 (1 occurrences)
Last logged: 12:21:40

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 94, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 174, in post
    return await super().post(request)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post
    result = await self._flow_mgr.async_init(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 205, in async_init
    flow, result = await task
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 223, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 740, in async_create_flow
    await async_process_deps_reqs(self.hass, self._hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 360, in async_process_deps_reqs
    await requirements.async_get_integration_with_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 83, in async_get_integration_with_requirements
    await _async_process_integration(hass, integration, done)
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 99, in _async_process_integration
    await async_process_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 162, in async_process_requirements
    await _async_process_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 194, in _async_process_requirements
    raise RequirementsNotFound(name, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for pvpc_hourly_pricing not found: ['aiopvpc==2.2.1'].

In addition, I am getting this error log.
Ths system is trying to install aiopvpc==2.2.1, but latest core integration is requesting for 3.0.0.

Logger: homeassistant.util.package
Source: util/package.py:99
First occurred: 11:26:38 (9 occurrences)
Last logged: 12:36:06

* Unable to install package aiopvpc==2.2.1: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f95a22cd0>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /packages/a7/c9/aac2fea45df4321946fc20e7b9659bf734bfe8b23a9ff5467a9ff3a5365c/aiopvpc-2.2.1-py3-none-any.whl WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f95c0ca90>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /packages/a7/c9/aac2fea45df4321946fc20e7b9659bf734bfe8b23a9ff5467a9ff3a5365c/aiopvpc-2.2.1-py3-none-any.whl WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f95a22eb0>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /packages/a7/c9/aac2fea45df4321946fc20e7b9659bf734bfe8b23a9ff5467a9ff3a5365c/aiopvpc-2.2.1-py3-none-any.whl WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f95b34310>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /packages/a7/c9/aac2fea45df4321946fc20e7b9659bf734bfe8b23a9ff5467a9ff3a5365c/aiopvpc-2.2.1-py3-none-any.whl WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f95b344c0>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /packages/a7/c9/aac2fea45df4321946fc20e7b9659bf734bfe8b23a9ff5467a9ff3a5365c/aiopvpc-2.2.1-py3-none-any.whl ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/a7/c9/aac2fea45df4321946fc20e7b9659bf734bfe8b23a9ff5467a9ff3a5365c/aiopvpc-2.2.1-py3-none-any.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f95b34670>: Failed to establish a new connection: [Errno -2] Name does not resolve')) WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available. You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.

I don’t know why ha would want aiopvpc==2.2.1 when every mention of aiopvpc in the source is to 3.0.0.

You haven’t got a custom component for pvpc installed have you?

Just noticed, that an old custom component was present. Now it is working.

But I am getting the same error for other custom components installed via HACS.
In this case, the edata integration (GitHub - uvejota/homeassistant-edata: Home Assistant integration for spanish electrical data providers (e.g., datadis)) asks for e-data=0.3.9, but it cannot be installed.

Logger: aiohttp.server
Source: requirements.py:194
First occurred: 17:32:22 (1 occurrences)
Last logged: 17:32:22

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 174, in post
    return await super().post(request)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post
    result = await self._flow_mgr.async_init(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 205, in async_init
    flow, result = await task
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 223, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 740, in async_create_flow
    await async_process_deps_reqs(self.hass, self._hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 360, in async_process_deps_reqs
    await requirements.async_get_integration_with_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 83, in async_get_integration_with_requirements
    await _async_process_integration(hass, integration, done)
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 99, in _async_process_integration
    await async_process_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 162, in async_process_requirements
    await _async_process_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 194, in _async_process_requirements
    raise RequirementsNotFound(name, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for edata not found: ['e-data==0.3.9'].

Logger: homeassistant.util.package
Source: util/package.py:99
First occurred: 17:31:42 (3 occurrences)
Last logged: 17:32:21

* Unable to install package e-data==0.3.9: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f8dab5520>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /packages/0c/8e/196181eb99bc860972762c06f7c55063a28bed9b699a48e195f14bd350ca/e_data-0.3.9-py2.py3-none-any.whl WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f8dab57f0>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /packages/0c/8e/196181eb99bc860972762c06f7c55063a28bed9b699a48e195f14bd350ca/e_data-0.3.9-py2.py3-none-any.whl WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f8dab5a60>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /packages/0c/8e/196181eb99bc860972762c06f7c55063a28bed9b699a48e195f14bd350ca/e_data-0.3.9-py2.py3-none-any.whl WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f8dab5c10>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /packages/0c/8e/196181eb99bc860972762c06f7c55063a28bed9b699a48e195f14bd350ca/e_data-0.3.9-py2.py3-none-any.whl WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f8dab5dc0>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /packages/0c/8e/196181eb99bc860972762c06f7c55063a28bed9b699a48e195f14bd350ca/e_data-0.3.9-py2.py3-none-any.whl ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/0c/8e/196181eb99bc860972762c06f7c55063a28bed9b699a48e195f14bd350ca/e_data-0.3.9-py2.py3-none-any.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f8dab5f70>: Failed to establish a new connection: [Errno -2] Name does not resolve')) WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available. You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.

Then you should post an issue on that github.