翻译字幕阶段出错 [DeepSeek] 网络连接失败
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 127, in iter
File "httpcore\_sync\connection_pool.py", line 367, in iter
File "httpcore\_sync\connection_pool.py", line 363, in iter
File "httpcore\_sync\http11.py", line 349, in iter
File "httpcore\_sync\http11.py", line 341, in iter
File "httpcore\_sync\http11.py", line 210, in _receive_response_body
File "httpcore\_sync\http11.py", line 220, in _receive_event
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "openai\_base_client.py", line 1005, in request
File "httpx\_client.py", line 928, in send
File "httpx\_client.py", line 922, in send
File "httpx\_models.py", line 881, in read
File "httpx\_models.py", line 897, in iter_bytes
File "httpx\_models.py", line 951, in iter_raw
File "httpx\_client.py", line 153, in iter
File "httpx\_transports\default.py", line 126, in iter
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "videotrans\task\job.py", line 173, in run
File "videotrans\task\_translate_srt.py", line 44, in trans
File "videotrans\translator\__init__.py", line 981, in run
File "videotrans\translator\_base.py", line 101, in run
File "videotrans\translator\_base.py", line 164, in _run_srt
File "videotrans\translator\_deepseek.py", line 47, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1211, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1037, in request
openai.APIConnectionError: Connection error.
TaskCfgSTS(is_cuda=False, uuid='16abcc229b', cache_folder=None, target_dir='D:/漫剧存储/中文在线-漫剧存储/黎明之剑', source_language=None, source_language_code='Simplified Chinese', source_sub='D:/漫剧存储/中文在线-漫剧存储/黎明之剑/黎明之剑1-40.srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='Spanish', target_sub='D:/漫剧存储/中文在线-漫剧存储/黎明之剑/黎明之剑1-40.Spanish.srt', target_wav=None, target_wav_output=None, name='D:/漫剧存储/中文在线-漫剧存储/黎明之剑/黎明之剑1-40.srt', noextname='黎明之剑1-40', basename='黎明之剑1-40.srt', ext='srt', dirname='D:/漫剧存储/中文在线-漫剧存储/黎明之剑', shound_del_name=None, translate_type=4)
=
system:Windows-10-10.0.22631-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/pyvideotrans