You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the AioClient has an exceptiion with call range() function
As follows:
What I Did
import asyncio
from etcd3 import AioClient
client = AioClient()
async def AsyncFunc():
r = await client.range('foo')
print('key:', r.kvs[0].key, 'value:', r.kvs[0].value)
loop = asyncio.get_event_loop()
loop.run_until_complete(AsyncFunc())
==============================
Traceback (most recent call last):
File "/xxxxxx/srv/etcddemo.py", line 4, in <module>
Aclient = AioClient()
File "/Users/pyvers/py3.6.8_health_env/lib/python3.6/site-packages/etcd3_py-0.1.6-py3.6.egg/etcd3/aio_client.py", line 177, in __init__
connector = aiohttp.TCPConnector(limit=pool_size, ssl=self.ssl_context)
File "/Users/pyvers/py3.6.8_health_env/lib/python3.6/site-packages/aiohttp-4.0.0a1-py3.6-macosx-10.13-x86_64.egg/aiohttp/connector.py", line 711, in __init__
enable_cleanup_closed=enable_cleanup_closed)
File "/Users/pyvers/py3.6.8_health_env/lib/python3.6/site-packages/aiohttp-4.0.0a1-py3.6-macosx-10.13-x86_64.egg/aiohttp/connector.py", line 207, in __init__
loop = get_running_loop()
File "/Users/pyvers/py3.6.8_health_env/lib/python3.6/site-packages/aiohttp-4.0.0a1-py3.6-macosx-10.13-x86_64.egg/aiohttp/helpers.py", line 276, in get_running_loop
raise RuntimeError("The object should be created from async function")
RuntimeError: The object should be created from async function
The text was updated successfully, but these errors were encountered:
Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.90. Please mark this comment with 👍 or 👎 to give our bot feedback!
Description
the AioClient has an exceptiion with call
range()
functionAs follows:
What I Did
The text was updated successfully, but these errors were encountered: