翻译字幕阶段出错 [OpenAI ChatGPT] 网络连接失败
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\http_proxy.py", line 289, in handle_request
File "httpcore\_sync\connection.py", line 99, in handle_request
File "httpcore\_sync\connection.py", line 76, in handle_request
File "httpcore\_sync\connection.py", line 122, in _connect
File "httpcore\_backends\sync.py", line 205, in connect_tcp
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
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 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ConnectError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "videotrans\task\job.py", line 174, in run
File "videotrans\task\trans_create.py", line 637, in trans
File "videotrans\translator\__init__.py", line 966, in run
File "videotrans\translator\_base.py", line 105, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_chatgpt.py", line 138, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1192, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1037, in request
openai.APIConnectionError: Connection error.
TaskCfg(cache_folder='E:/win-pyvideotrans-v3.97/tmp/34716/23237c38e1', target_dir='F:/Tutorial/CA-UnrealEngineBuildInteractiveGameLevels2025-12/_video_out/02_fixing-the-door-issue-mp4', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='F:/Tutorial/CA-UnrealEngineBuildInteractiveGameLevels2025-12/_video_out/02_fixing-the-door-issue-mp4/en.srt', target_sub='F:/Tutorial/CA-UnrealEngineBuildInteractiveGameLevels2025-12/_video_out/02_fixing-the-door-issue-mp4/zh-cn.srt', source_wav='E:/win-pyvideotrans-v3.97/tmp/34716/23237c38e1/en.wav', source_wav_output='F:/Tutorial/CA-UnrealEngineBuildInteractiveGameLevels2025-12/_video_out/02_fixing-the-door-issue-mp4/en.m4a', target_wav='E:/win-pyvideotrans-v3.97/tmp/34716/23237c38e1/target.wav', target_wav_output='F:/Tutorial/CA-UnrealEngineBuildInteractiveGameLevels2025-12/_video_out/02_fixing-the-door-issue-mp4/zh-cn.m4a', subtitles='', novoice_mp4='E:/win-pyvideotrans-v3.97/tmp/34716/23237c38e1/novoice.mp4', noextname='02_fixing-the-door-issue', shibie_audio=None, targetdir_mp4='F:/Tutorial/CA-UnrealEngineBuildInteractiveGameLevels2025-12/_video_out/02_fixing-the-door-issue-mp4/02_fixing-the-door-issue.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=3, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='男声.wav', copysrt_rawvideo=False, clear_cache=False, translate_type=3, tts_type=8, recogn_type=0, model_name='large-v3-turbo', voice_autorate=False, video_autorate=True, is_cuda=True, name='F:/Tutorial/CA-UnrealEngineBuildInteractiveGameLevels2025-12/CA-UnrealEngineBuildInteractiveGameLevels2025-12/03/01/02_fixing-the-door-issue.mp4', basename='02_fixing-the-door-issue.mp4', ext='mp4', dirname='F:/Tutorial/CA-UnrealEngineBuildInteractiveGameLevels2025-12/CA-UnrealEngineBuildInteractiveGameLevels2025-12/03/01', shound_del_name=None, uuid='23237c38e1', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=False)
=
system:Windows-10-10.0.19045-SP0
version:v3.97
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v3.97