Twint: RuntimeError: This event loop is already running

Created on 3 Sep 2020  路  1Comment  路  Source: twintproject/twint

i am using jupyter notebook to run, but i got the following error please fix


RuntimeError Traceback (most recent call last)
in ()
4 c.Username = "twitter"
5
----> 6 twint.run.Lookup(c)

2 frames
/usr/lib/python3.6/asyncio/base_events.py in run_forever(self)
423 self._check_closed()
424 if self.is_running():
--> 425 raise RuntimeError('This event loop is already running')
426 if events._get_running_loop() is not None:
427 raise RuntimeError(

RuntimeError: This event loop is already running

Most helpful comment

Hi I had the same problem today, but found out how to fix it:

  1. install nest_asyncio package:

pip install nest_asyncio

  1. import and apply nest_asyncio:

import nest_asyncio
nest_asyncio.apply()

After that, it ran smoothly to me.

I found out about the solution on the following blog post

Good luck!

>All comments

Hi I had the same problem today, but found out how to fix it:

  1. install nest_asyncio package:

pip install nest_asyncio

  1. import and apply nest_asyncio:

import nest_asyncio
nest_asyncio.apply()

After that, it ran smoothly to me.

I found out about the solution on the following blog post

Good luck!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

edsu picture edsu  路  3Comments

sahildeo picture sahildeo  路  3Comments

psubbiah picture psubbiah  路  4Comments

kgoderis picture kgoderis  路  4Comments

wagerpascal picture wagerpascal  路  4Comments