TikTok-Api
TikTok-Api copied to clipboard
RuntimeError: This event loop is already running is still an issue
~\anaconda3\lib\site-packages\TikTokApi\tiktok.py in _initialize(self, **kwargs)
161
162 if self._signer_url is None:
--> 163 self._browser = asyncio.get_event_loop().run_until_complete(
164 asyncio.gather(browser.create(**kwargs))
165 )[0]
This is where the issue happens.
Like others, I am just trying to get TiktokApi to initialize using with TikTokApi() as api:
Same here
OS? Are you using jupyter, etc?
OS? Are you using jupyter, etc?
Jupyter notebook on Debian buster
For jupyter, try adding
import nest_asyncio
nest_asyncio.apply()
For jupyter, try adding
import nest_asyncio nest_asyncio.apply()
Thanks! Will give this a try next time I use it
V6 fully async