Skip to content Skip to sidebar Skip to footer

Asyncio: Runtimeerror This Event Loop Is Already Running

This seems like a common problem, see for example: RuntimeError: This event loop is already running in python But in my case, I'm only starting the event loop once, at least as far

Solution 1:

I also came across this problem after doing some upgrades. It turns out that the tornado package is most likely the culprit. If you have tornado>=5.0 then running event loops in a notebook causes conflicts. There's a detailed discussion here but the solution, for now, is just to downgrade with pip install tornado==4.5.3.


Post a Comment for "Asyncio: Runtimeerror This Event Loop Is Already Running"