The community member is encountering a RuntimeError when trying to run asyncio.run() from a running event loop. Another community member suggests using nest_asyncio.apply() at the top of the code to resolve the issue.
1 frames /usr/lib/python3.10/asyncio/runners.py in run(main, debug) 31 """ 32 if events._get_running_loop() is not None: ---> 33 raise RuntimeError( 34 "asyncio.run() cannot be called from a running event loop") 35
RuntimeError: asyncio.run() cannot be called from a running event loop