RuntimeError: no running event loop

Hello. When trying to run an app with streamlit, I’m currently getting this error apparently with tornado. Can someone please help? :frowning: Don’t know what to do.

Traceback (most recent call last):
File “C:\Users\Trabajo\AppData\Roaming\Python\Python38\site-packages\streamlit\server\server.py”, line 526, in _loop_coroutine
yield tornado.gen.convert_yielded(
File “C:\Users\Trabajo\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 1055, in run
value = future.result()
File “C:\Users\Trabajo\AppData\Roaming\Python\Python38\site-packages\tornado\concurrent.py”, line 238, in result
raise_exc_info(self._exc_info)
File “”, line 4, in raise_exc_info
File “C:\Users\Trabajo\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 307, in wrapper
yielded = next(result)
File “”, line 6, in _wrap_awaitable
File “c:\programdata\anaconda3\lib\asyncio\tasks.py”, line 418, in wait
loop = events.get_running_loop()
RuntimeError: no running event loop
2022-07-03 19:06:25.436

Hi @boalatil, welcome to the Streamlit community!

Can you post the code that generates this issue?

Best,
Randy