Skip to content

ipy:7.9 py:3.74 RuntimeError: There is no current event loop in thread 'MainThread'. #3

@QGB

Description

@QGB

C:\QGB\Anaconda3\lib\site-packages\syncer.py in run(*args, **kwargs)
     42     @wraps(f)
     43     def run(*args, **kwargs):
---> 44         return asyncio.get_event_loop().run_until_complete(f(*args, **kwargs))
     45     return run
     46

C:\QGB\Anaconda3\lib\asyncio\events.py in get_event_loop(self)
    642         if self._local._loop is None:
    643             raise RuntimeError('There is no current event loop in thread %r.'
--> 644                                % threading.current_thread().name)
    645
    646         return self._local._loop

RuntimeError: There is no current event loop in thread 'MainThread'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions