GPT-vup icon indicating copy to clipboard operation
GPT-vup copied to clipboard

RuntimeError: There is no current event loop in thread 'Thread-1'.怎么解决

Open tashuozhishinanguimi opened this issue 1 year ago • 1 comments

Exception in thread Thread-1: Traceback (most recent call last): File "D:\python\lib\threading.py", line 980, in _bootstrap_inner self.run() File "D:\python\lib\threading.py", line 917, in run self._target(*self._args, **self._kwargs) File "D:\xunihuanjing\GPT-vup-2.0\src\core\main.py", line 35, in dy_producer t_loop = NewEventLoop() File "D:\xunihuanjing\GPT-vup-2.0\src\utils\utils.py", line 35, in init self.loop = asyncio.get_event_loop() File "D:\python\lib\asyncio\events.py", line 642, in get_event_loop raise RuntimeError('There is no current event loop in thread %r.' RuntimeError: There is no current event loop in thread 'Thread-1'.

tashuozhishinanguimi avatar Aug 21 '23 13:08 tashuozhishinanguimi