twscrape icon indicating copy to clipboard operation
twscrape copied to clipboard

RuntimeError: <asyncio.locks.Lock object at 0xffff72886f10 [unlocked, waiters:1]> is bound to a different event loop

Open codilau opened this issue 9 months ago • 1 comments

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

codilau avatar May 03 '24 08:05 codilau

Hi, @codilau.

Can you provide some code of how you use twscrape?

vladkens avatar Jun 29 '24 18:06 vladkens