onvif-zeep-async require zeep with async to solve this problem

See requirements in https://github.com/hunterjm/python-onvif-zeep-async/blob/async/requirements.txt

 * zeep[async]==4.1.0

<pre>
2022-12-11 13:06:55.977 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/homeassistant/components/onvif/event.py", line 180, in async_pull_messages
    response = await pullpoint.PullMessages(
  File "/usr/lib/python3.10/site-packages/zeep/proxy.py", line 64, in __call__
    return await self._proxy._binding.send_async(
  File "/usr/lib/python3.10/site-packages/zeep/wsdl/bindings/soap.py", line 156, in send_async
    response = await client.transport.post_xml(
  File "/usr/lib/python3.10/site-packages/zeep/transports.py", line 230, in post_xml
    )
  File "/usr/lib/python3.10/site-packages/zeep/transports.py", line 215, in post
    raise TransportError(status_code=response.status_code)
  File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1848, in post
    return await self.request(
  File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1533, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1620, in send
    response = await self._send_handling_auth(
  File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1648, in _send_handling_auth
    response = await self._send_handling_redirects(
  File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1685, in _send_handling_redirects
    response = await self._send_single_request(request)
  File "/usr/lib/python3.10/site-packages/httpx/_client.py", line 1722, in _send_single_request
    response = await transport.handle_async_request(request)
  File "/usr/lib/python3.10/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
    resp = await self._pool.handle_async_request(req)
  File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 253, in handle_async_request
    raise exc
  File "/usr/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 237, in handle_async_request
    response = await connection.handle_async_request(request)
  File "/usr/lib/python3.10/site-packages/httpcore/_async/connection.py", line 90, in handle_async_request
    return await self._connection.handle_async_request(request)
  File "/usr/lib/python3.10/site-packages/httpcore/_async/http11.py", line 112, in handle_async_request
    raise exc
  File "/usr/lib/python3.10/site-packages/httpcore/_async/http11.py", line 91, in handle_async_request
    ) = await self._receive_response_headers(**kwargs)
  File "/usr/lib/python3.10/site-packages/httpcore/_async/http11.py", line 155, in _receive_response_headers
    event = await self._receive_event(timeout=timeout)
  File "/usr/lib/python3.10/site-packages/httpcore/_async/http11.py", line 191, in _receive_event
    data = await self._network_stream.read(
  File "/usr/lib/python3.10/site-packages/httpcore/backends/asyncio.py", line 33, in read
    return await self._stream.receive(max_bytes=max_bytes)
  File "/usr/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1272, in receive
    raise ClosedResourceError from None
anyio.ClosedResourceError
</pre>
This commit is contained in:
Fco Javier Felix 2023-01-09 18:21:53 +01:00
parent 885648fc66
commit 8e677e1905
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ RESTRICT="!test? ( test )"
DOCS="README.rst"
RDEPEND=">=dev-python/httpx-0.19.0[${PYTHON_USEDEP}]
>=dev-python/zeep-4.1.0[${PYTHON_USEDEP}]"
>=dev-python/zeep-4.1.0[async,${PYTHON_USEDEP}]"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (

View File

@ -20,7 +20,7 @@ RESTRICT="!test? ( test )"
DOCS="README.rst"
RDEPEND=">=dev-python/httpx-0.19.0[${PYTHON_USEDEP}]
>=dev-python/zeep-4.1.0[${PYTHON_USEDEP}]"
>=dev-python/zeep-4.1.0[async,${PYTHON_USEDEP}]"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (