Closed waclaw66 closed 4 months ago
Hey there @hunterjm, mind taking a look at this issue as it has been labeled with an integration (onvif
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
onvif documentation onvif source (message by IssueLinks)
Same problem happened to me during activation of Philips_Js
https://www.home-assistant.io/integrations/philips_js/#features
Feb 05 07:44:55 dietpi Home Assistant[73872]: 2024-02-05 07:44:55.403 ERROR (MainThread) [homeassistant.components.philips_js] Unexpected exception
Feb 05 07:44:55 dietpi Home Assistant[73872]: Traceback (most recent call last):
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/anyio/_core/_eventloop.py", line 151, in get_asynclib
Feb 05 07:44:55 dietpi Home Assistant[73872]: try:
Feb 05 07:44:55 dietpi Home Assistant[73872]:
Feb 05 07:44:55 dietpi Home Assistant[73872]: KeyError: 'anyio._backends._asyncio'
Feb 05 07:44:55 dietpi Home Assistant[73872]: During handling of the above exception, another exception occurred:
Feb 05 07:44:55 dietpi Home Assistant[73872]: Traceback (most recent call last):
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/components/philips_js/config_flow.py", line 163, in async_step_user
Feb 05 07:44:55 dietpi Home Assistant[73872]: hub = await _validate_input(
Feb 05 07:44:55 dietpi Home Assistant[73872]: ^^^^^^^^^^^^^^^^^^^^^^
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/components/philips_js/config_flow.py", line 57, in _validate_input
Feb 05 07:44:55 dietpi Home Assistant[73872]: await hub.getSystem()
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/haphilipsjs/__init__.py", line 767, in getSystem
Feb 05 07:44:55 dietpi Home Assistant[73872]: r = cast(Optional[SystemType], await self.getReq("system", protocol=prot))
Feb 05 07:44:55 dietpi Home Assistant[73872]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/haphilipsjs/__init__.py", line 568, in getReq
Feb 05 07:44:55 dietpi Home Assistant[73872]: resp = await self.session.get(self._url(path, protocol = protocol))
Feb 05 07:44:55 dietpi Home Assistant[73872]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/httpx/_client.py", line 1786, in get
Feb 05 07:44:55 dietpi Home Assistant[73872]: return await self.request(
Feb 05 07:44:55 dietpi Home Assistant[73872]: ^^^^^^^^^^^^^^^^^^^
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/httpx/_client.py", line 1559, in request
Feb 05 07:44:55 dietpi Home Assistant[73872]: return await self.send(request, auth=auth, follow_redirects=follow_redirects)
Feb 05 07:44:55 dietpi Home Assistant[73872]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/httpx/_client.py", line 1646, in send
Feb 05 07:44:55 dietpi Home Assistant[73872]: response = await self._send_handling_auth(
Feb 05 07:44:55 dietpi Home Assistant[73872]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/httpx/_client.py", line 1674, in _send_handling_auth
Feb 05 07:44:55 dietpi Home Assistant[73872]: response = await self._send_handling_redirects(
Feb 05 07:44:55 dietpi Home Assistant[73872]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/httpx/_client.py", line 1711, in _send_handling_redirects
Feb 05 07:44:55 dietpi Home Assistant[73872]: response = await self._send_single_request(request)
Feb 05 07:44:55 dietpi Home Assistant[73872]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/httpx/_client.py", line 1748, in _send_single_request
Feb 05 07:44:55 dietpi Home Assistant[73872]: response = await transport.handle_async_request(request)
Feb 05 07:44:55 dietpi Home Assistant[73872]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/httpx/_transports/default.py", line 371, in handle_async_request
Feb 05 07:44:55 dietpi Home Assistant[73872]: resp = await self._pool.handle_async_request(req)
Feb 05 07:44:55 dietpi Home Assistant[73872]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 232, in handle_async_request
Feb 05 07:44:55 dietpi Home Assistant[73872]: async with self._pool_lock:
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/httpcore/_synchronization.py", line 69, in __aenter__
Feb 05 07:44:55 dietpi Home Assistant[73872]: await self._anyio_lock.acquire()
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/anyio/_core/_synchronization.py", line 122, in acquire
Feb 05 07:44:55 dietpi Home Assistant[73872]: """Acquire the lock."""
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/anyio/lowlevel.py", line 45, in checkpoint_if_cancelled
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/anyio/_core/_eventloop.py", line 153, in get_asynclib
Feb 05 07:44:55 dietpi Home Assistant[73872]: except KeyError:
Feb 05 07:44:55 dietpi Home Assistant[73872]: ^^^^^^
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/importlib/__init__.py", line 126, in import_module
Feb 05 07:44:55 dietpi Home Assistant[73872]: return _bootstrap._gcd_import(name[level:], package, level)
Feb 05 07:44:55 dietpi Home Assistant[73872]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "<frozen importlib._bootstrap_external>", line 940, in exec_module
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
Feb 05 07:44:55 dietpi Home Assistant[73872]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 76, in <module>
Feb 05 07:44:55 dietpi Home Assistant[73872]: from ..abc import (
Feb 05 07:44:55 dietpi Home Assistant[73872]: ImportError: cannot import name 'AsyncBackend' from 'anyio.abc' (/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/anyio/abc/__init__.py)
@elupus - I'm tagging you as owner of philips_js
My guess is there is some custom component breaking httpx or anyio. What cystom components do you guys have installed.
I have got these custom integrations:
and these custom components:
I also have installed these Lovelace components:
I had one component (browser_mod) waiting for a restart. After the restart of HA, the initial config of Philips_Js went OK. Now, I have got enabled integration. Weird.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
Following error occurs while setup of onvif integration...
What version of Home Assistant Core has the issue?
core-2024.1.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
onvif
Link to integration documentation on our website
https://www.home-assistant.io/integrations/onvif/
Diagnostics information
Cannot enable diagnostic data since integration is not active yet.
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response