twscrape
twscrape copied to clipboard
RuntimeError: <asyncio.locks.Lock object at 0xffff72886f10 [unlocked, waiters:1]> is bound to a different event loop
I seem to randomly get this every now and then. Could it be related with 'get_for_queue' scheduling the same account for two different tasks? The issue was not there before the last update
.../lib/python3.11/site-packages/twscrape/accounts_pool.py", line 285, in get_for_queue return await self._get_and_lock(queue, q) [...] File "/usr/lib/python3.11/asyncio/mixins.py", line 20, in _get_loop raise RuntimeError(f'{self!r} is bound to a different event loop') RuntimeError: <asyncio.locks.Lock object at 0xffff72886f10 [unlocked, waiters:1]> is bound to a different event loop
Hi, @codilau.
Can you provide some code of how you use twscrape?