Open tashuozhishinanguimi opened 1 year ago
同问,我在测试抖音的时候会出现这个问题,而且测试bilibili的时候会出现下面这个问题: Exception in thread Thread-1 (bl_producer): Traceback (most recent call last): File "D:\Anaconda_installed\Lib\threading.py", line 1038, in _bootstrap_inner self.run() File "D:\Anaconda_installed\Lib\threading.py", line 975, in run self._target(*self._args, self._kwargs) File "E:\projects\wav2lip_real_time\GPT-vup-2.0\src\core\main.py", line 31, in bl_producer r.connect() File "E:\projects\wav2lip_real_time\GPT-vup-2.0\src\rooms\bilibili.py", line 44, in connect sync(self.room.connect()) File "D:\Anaconda_installed\Lib\site-packages\bilibili_api\utils\sync.py", line 33, in sync return loop.run_until_complete(coroutine) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda_installed\Lib\asyncio\base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "D:\Anaconda_installed\Lib\site-packages\bilibili_api\live.py", line 873, in connect await self.main() File "D:\Anaconda_installed\Lib\site-packages\bilibili_api\live.py", line 910, in main conf = await room.get_chat_conf() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda_installed\Lib\site-packages\bilibili_api\live.py", line 208, in get_chat_conf await Api(api, credential=self.credential).update_params(*params).result File "D:\Anaconda_installed\Lib\site-packages\bilibili_api\utils\network.py", line 170, in result self.__result = await self.request() ^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda_installed\Lib\site-packages\bilibili_api\utils\network.py", line 70, in inner return await func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda_installed\Lib\site-packages\bilibili_api\utils\network.py", line 252, in request self.credential.raise_for_no_sessdata() File "D:\Anaconda_installed\Lib\site-packages\bilibili_api\utils\credential.py", line 117, in raise_for_no_sessdata raise CredentialNoSessdataException() bilibili_api.exceptions.CredentialNoSessdataException.CredentialNoSessdataException: Credential 类未提供 sessdata 或者为空。
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'.