GPT-vup
GPT-vup copied to clipboard
RuntimeError: There is no current event loop in thread 'Thread-1'.怎么解决
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'.