acon96 / home-llm

A Home Assistant integration & Model to control your smart home using a Local LLM
483 stars 56 forks source link

Error cannot install requests Got this error on 2024.6.1. Thanks #156

Closed Anto79-ops closed 3 weeks ago

Anto79-ops commented 3 weeks ago

I tried to install this on 2024.6.1 but it failed with this error.

Logger: homeassistant.util.package
Source: util/package.py:123
First occurred: 2:03:53 PM (3 occurrences)
Last logged: 2:04:09 PM

Unable to install package requests==2.31.0: ERROR: Cannot install requests==2.31.0 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
brezuicabogdan commented 3 weeks ago

Same issue here: image I tried removing the custom component, restarting HA and reinstalling but I still get this same error.

homeassistant | 2024-06-08 16:16:57.684 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package requests==2.31.0: ERROR: Cannot install requests==2.31.0 because these package versions have conflicting dependencies. homeassistant | ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts homeassistant | 2024-06-08 16:17:00.487 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package requests==2.31.0: ERROR: Cannot install requests==2.31.0 because these package versions have conflicting dependencies. homeassistant | ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts homeassistant | 2024-06-08 16:17:03.296 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package requests==2.31.0: ERROR: Cannot install requests==2.31.0 because these package versions have conflicting dependencies. homeassistant | ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts homeassistant | 2024-06-08 16:17:03.302 ERROR (MainThread) [aiohttp.server] Error handling request homeassistant | Traceback (most recent call last): homeassistant | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request homeassistant | resp = await request_handler(request) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in _handle homeassistant | resp = await handler(request) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl homeassistant | return await handler(request) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware homeassistant | return await handler(request) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 210, in forwarded_middleware homeassistant | return await handler(request) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware homeassistant | return await handler(request) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware homeassistant | return await handler(request) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware homeassistant | response = await handler(request) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle homeassistant | result = await handler(request, **request.match_info) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin homeassistant | return await func(self, request, *args, **kwargs) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 70, in wrapper homeassistant | return await method(view, request, data, *args, **kwargs) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 172, in post homeassistant | return await self._post_impl(request, data) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 179, in _post_impl homeassistant | return await super()._post_impl(request, data) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 84, in _post_impl homeassistant | result = await self._flow_mgr.async_init( homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1262, in async_init homeassistant | flow, result = await self._async_init(flow_id, handler, context, data) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1282, in _async_init homeassistant | flow = await self.async_create_flow(handler, context=context, data=data) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1418, in async_create_flow homeassistant | handler = await _async_get_flow_handler( homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2776, in _async_get_flow_handler homeassistant | await _load_integration(hass, domain, hass_config) homeassistant | File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2753, in _load_integration homeassistant | await async_process_deps_reqs(hass, hass_config, integration) homeassistant | File "/usr/src/homeassistant/homeassistant/setup.py", line 561, in async_process_deps_reqs homeassistant | await requirements.async_get_integration_with_requirements( homeassistant | File "/usr/src/homeassistant/homeassistant/requirements.py", line 54, in async_get_integration_with_requirements homeassistant | return await manager.async_get_integration_with_requirements(domain) homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ homeassistant | File "/usr/src/homeassistant/homeassistant/requirements.py", line 176, in async_get_integration_with_requirements homeassistant | await self._async_process_integration(integration, done) homeassistant | File "/usr/src/homeassistant/homeassistant/requirements.py", line 192, in _async_process_integration homeassistant | await self.async_process_requirements( homeassistant | File "/usr/src/homeassistant/homeassistant/requirements.py", line 279, in async_process_requirements homeassistant | await self._async_process_requirements(name, missing) homeassistant | File "/usr/src/homeassistant/homeassistant/requirements.py", line 317, in _async_process_requirements homeassistant | raise RequirementsNotFound(name, list(failures)) homeassistant | homeassistant.requirements.RequirementsNotFound: Requirements for llama_conversation not found: ['requests==2.31.0'].

acon96 commented 3 weeks ago

This should be fixed in v0.3.1. I've relaxed the requirements for requests to avoid this in the future.