Post

PythonPython

j
jordan chris

Posted on 28th January 2023|141 views

0
votes

This Event Loop Is Already Running

Why am I getting an error called this event loop is already running?

Answers
P
sumana reddy

Posted on 28th January 2023

I have faced the same issue which is solved by using nest_async

pip install nest_asyncio

And I have added the below line within my file

import nest_asyncio 

nest_asyncio.apply()

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos