#23 cannot install custom integration [easee_hass]

Open
opened 1 year ago by papiris · 0 comments
papiris commented 1 year ago

Expected behaviour:

python packages can be simply installed and reached by integrations, like regular HA.

Actual behaviour:

The integration [https://github.com/fondberg/easee_hass] can't be installed, and pip complains about lacking precedence to sys.path, msgpack and libpcap. It seems to be related/identical to this issue: #14

Environment:

snap version 2023.2.5 Ubuntu Core running on Raspberry Pi 4B. HACS installed.

Other information:

I first reported the issue with the specific integration, but was redirected here because the integration doesn't have installation issues outside snap/UB Core. [https://github.com/fondberg/easee_hass/issues/292]

looking for msgpack:

root@ubuntu:/snap/home-assistant-snap/556# find $SNAP -name *msgpack*
find: failed to read file names from file system at or below ‘/snap/home-assistant-snap/556’: No such file or directory
root@ubuntu:/snap/home-assistant-snap/556# pip install msgpack
Requirement already satisfied: msgpack in ./lib/python3.10/site-packages (1.0.4)

[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
root@ubuntu:/snap/home-assistant-snap/556# source bin/activate bin/python3
(install) root@ubuntu:/snap/home-assistant-snap/556# python -V
Python 3.10.10
(install) root@ubuntu:/snap/home-assistant-snap/556# pip show msgpack
Name: msgpack
Version: 1.0.4
Summary: MessagePack serializer
Home-page: https://msgpack.org/
Author: Inada Naoki
Author-email: songofacandy@gmail.com
License: Apache 2.0
Location: /snap/home-assistant-snap/556/lib/python3.10/site-packages
Requires:
Required-by: influxdb

HASS log:

2023-04-09 17:47:52.649 ERROR (SyncWorker_9) [scapy.runtime] Cannot set filter: libpcap is not available. Cannot compile filter !
2023-04-09 17:47:52.999 ERROR (SyncWorker_9) [homeassistant.components.dhcp] Cannot watch for dhcp packets without a functional packet filter: libpcap is not available. Cannot compile filter !
2023-04-09 17:49:57.278 ERROR (MainThread) [frontend.js.latest.202302020] :0:0 ResizeObserver loop completed with undelivered notifications.
2023-04-09 17:50:20.145 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package pyeasee==0.7.50: ERROR: Will not install to the user site because it will lack sys.path precedence to msgpack in /snap/home-assistant-snap/556/lib/python3.10/site-packages
[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
2023-04-09 17:50:34.759 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package pyeasee==0.7.50: ERROR: Will not install to the user site because it will lack sys.path precedence to msgpack in /snap/home-assistant-snap/556/lib/python3.10/site-packages
[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
2023-04-09 17:50:49.125 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package pyeasee==0.7.50: ERROR: Will not install to the user site because it will lack sys.path precedence to msgpack in /snap/home-assistant-snap/556/lib/python3.10/site-packages
[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
2023-04-09 17:50:49.128 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/view.py", line 145, in handle
result = await result
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/config/config_entries.py", line 148, in post
return await super().post(request)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/helpers/data_entry_flow.py", line 71, in post
result = await self._flow_mgr.async_init(
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/config_entries.py", line 798, in async_init
flow, result = await task
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/config_entries.py", line 816, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/config_entries.py", line 922, in async_create_flow
await async_process_deps_reqs(self.hass, self._hass_config, integration)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/setup.py", line 384, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements
await self._async_process_integration(integration, done)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/requirements.py", line 186, in _async_process_integration
await self.async_process_requirements(
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/requirements.py", line 252, in async_process_requirements
await self._async_process_requirements(name, missing)
File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/requirements.py", line 290, in _async_process_requirements
raise RequirementsNotFound(name, list(failures))
homeassistant.requirements.RequirementsNotFound: Requirements for easee not found: ['pyeasee==0.7.50'].
### Expected behaviour: python packages can be simply installed and reached by integrations, like regular HA. ### Actual behaviour: The integration [https://github.com/fondberg/easee_hass] can't be installed, and pip complains about lacking precedence to sys.path, msgpack and libpcap. It seems to be related/identical to this issue: https://git.giaever.org/joachimmg/home-assistant-snap/issues/14 ### Environment: snap version 2023.2.5 Ubuntu Core running on Raspberry Pi 4B. HACS installed. ### Other information: I first reported the issue with the specific integration, but was redirected here because the integration doesn't have installation issues outside snap/UB Core. [https://github.com/fondberg/easee_hass/issues/292] ### looking for msgpack: ``` root@ubuntu:/snap/home-assistant-snap/556# find $SNAP -name *msgpack* find: failed to read file names from file system at or below ‘/snap/home-assistant-snap/556’: No such file or directory root@ubuntu:/snap/home-assistant-snap/556# pip install msgpack Requirement already satisfied: msgpack in ./lib/python3.10/site-packages (1.0.4) [notice] A new release of pip available: 22.3.1 -> 23.0.1 [notice] To update, run: pip install --upgrade pip ``` ``` root@ubuntu:/snap/home-assistant-snap/556# source bin/activate bin/python3 (install) root@ubuntu:/snap/home-assistant-snap/556# python -V Python 3.10.10 (install) root@ubuntu:/snap/home-assistant-snap/556# pip show msgpack Name: msgpack Version: 1.0.4 Summary: MessagePack serializer Home-page: https://msgpack.org/ Author: Inada Naoki Author-email: songofacandy@gmail.com License: Apache 2.0 Location: /snap/home-assistant-snap/556/lib/python3.10/site-packages Requires: Required-by: influxdb ``` ### HASS log: ``` 2023-04-09 17:47:52.649 ERROR (SyncWorker_9) [scapy.runtime] Cannot set filter: libpcap is not available. Cannot compile filter ! 2023-04-09 17:47:52.999 ERROR (SyncWorker_9) [homeassistant.components.dhcp] Cannot watch for dhcp packets without a functional packet filter: libpcap is not available. Cannot compile filter ! 2023-04-09 17:49:57.278 ERROR (MainThread) [frontend.js.latest.202302020] :0:0 ResizeObserver loop completed with undelivered notifications. 2023-04-09 17:50:20.145 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package pyeasee==0.7.50: ERROR: Will not install to the user site because it will lack sys.path precedence to msgpack in /snap/home-assistant-snap/556/lib/python3.10/site-packages [notice] A new release of pip available: 22.3.1 -> 23.0.1 [notice] To update, run: pip install --upgrade pip 2023-04-09 17:50:34.759 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package pyeasee==0.7.50: ERROR: Will not install to the user site because it will lack sys.path precedence to msgpack in /snap/home-assistant-snap/556/lib/python3.10/site-packages [notice] A new release of pip available: 22.3.1 -> 23.0.1 [notice] To update, run: pip install --upgrade pip 2023-04-09 17:50:49.125 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package pyeasee==0.7.50: ERROR: Will not install to the user site because it will lack sys.path precedence to msgpack in /snap/home-assistant-snap/556/lib/python3.10/site-packages [notice] A new release of pip available: 22.3.1 -> 23.0.1 [notice] To update, run: pip install --upgrade pip 2023-04-09 17:50:49.128 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware return await handler(request) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/ban.py", line 80, in ban_middleware return await handler(request) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/auth.py", line 236, in auth_middleware return await handler(request) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/view.py", line 145, in handle result = await result File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/config/config_entries.py", line 148, in post return await super().post(request) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/components/http/data_validator.py", line 72, in wrapper result = await method(view, request, data, *args, **kwargs) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/helpers/data_entry_flow.py", line 71, in post result = await self._flow_mgr.async_init( File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/config_entries.py", line 798, in async_init flow, result = await task File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/config_entries.py", line 816, in _async_init flow = await self.async_create_flow(handler, context=context, data=data) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/config_entries.py", line 922, in async_create_flow await async_process_deps_reqs(self.hass, self._hass_config, integration) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/setup.py", line 384, in async_process_deps_reqs await requirements.async_get_integration_with_requirements( File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements return await manager.async_get_integration_with_requirements(domain) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements await self._async_process_integration(integration, done) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/requirements.py", line 186, in _async_process_integration await self.async_process_requirements( File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/requirements.py", line 252, in async_process_requirements await self._async_process_requirements(name, missing) File "/snap/home-assistant-snap/556/lib/python3.10/site-packages/homeassistant/requirements.py", line 290, in _async_process_requirements raise RequirementsNotFound(name, list(failures)) homeassistant.requirements.RequirementsNotFound: Requirements for easee not found: ['pyeasee==0.7.50']. ```
Sign in to join this conversation.
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.