erdewit/nest_asyncio

Exception in callback Task.__wakeup(<Future finished result=None>)

grcdeepak1 opened this issue · 2 comments

Exception in callback Task.__wakeup()
handle: <Handle Task.__wakeup()>
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/nest_asyncio.py", line 150, in run
ctx.run(self._callback, *self._args)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/tasks.py", line 329, in __wakeup
self.__step()
File "/usr/local/lib/python3.7/site-packages/nest_asyncio.py", line 108, in step
step_orig(task, exc)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/tasks.py", line 313, in __step
_leave_task(self._loop, self)
File "/usr/local/lib/python3.7/site-packages/nest_asyncio.py", line 122, in leave_task
del curr_tasks[loop]
KeyError: <_UnixSelectorEventLoop running=True closed=False debug=False>

I have the same problem. Any Ideas how to fix this? I would like to contribute.

Duplicate of #26