#2115 TaskCfg(cache_folder='D:/win-pyvideotrans-v3.87/tmp/20148/5191cf7fcb', target_dir='D:/2222/Pharmacology,药理学/抗生素/_video_o

79.127* Posted at: 14 hours ago 👁9

翻译字幕阶段出错:[硅基流动] 网络连接失败:
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\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: [Errno 11001] getaddrinfo failed

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "openai\_base_client.py", line 982, 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: [Errno 11001] getaddrinfo failed

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\job.py", line 184, in run
File "videotrans\task\trans_create.py", line 456, in trans
File "videotrans\translator\__init__.py", line 926, in run
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 96, in _run_text
File "videotrans\translator\_siliconflow.py", line 54, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1156, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1014, in request
openai.APIConnectionError: Connection error.

TaskCfg(cache_folder='D:/win-pyvideotrans-v3.87/tmp/20148/5191cf7fcb', target_dir='D:/2222/Pharmacology,药理学/抗生素/_video_out/Prokaryotic-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='D:/2222/Pharmacology,药理学/抗生素/_video_out/Prokaryotic-mp4/en.srt', target_sub='D:/2222/Pharmacology,药理学/抗生素/_video_out/Prokaryotic-mp4/zh-cn.srt', source_wav='D:/win-pyvideotrans-v3.87/tmp/20148/5191cf7fcb/en.wav', source_wav_output='D:/2222/Pharmacology,药理学/抗生素/_video_out/Prokaryotic-mp4/en.m4a', target_wav='D:/win-pyvideotrans-v3.87/tmp/20148/5191cf7fcb/target.wav', target_wav_output='D:/2222/Pharmacology,药理学/抗生素/_video_out/Prokaryotic-mp4/zh-cn.m4a', subtitles='', novoice_mp4='D:/win-pyvideotrans-v3.87/tmp/20148/5191cf7fcb/novoice.mp4', noextname='Prokaryotic', shibie_audio=None, targetdir_mp4='D:/2222/Pharmacology,药理学/抗生素/_video_out/Prokaryotic-mp4/Prokaryotic.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='gtts', copysrt_rawvideo=False, clear_cache=False, translate_type=10, tts_type=22, recogn_type=0, model_name='large-v3', split_type=0, voice_autorate=True, video_autorate=True, cuda=False, name='D:/2222/Pharmacology,药理学/抗生素/Prokaryotic.mp4', basename='Prokaryotic.mp4', ext='mp4', dirname='D:/2222/Pharmacology,药理学/抗生素', shound_del_name=None, uuid='5191cf7fcb', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0)


=
system:Windows-10-10.0.26200-SP0
version:v3.87
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.87

1 Replies

翻译阶段网络连接失败,错误 [Errno 11001] getaddrinfo failed 表明软件无法解析硅基流动的API域名。请按以下步骤排查:

  1. 检查网络连接与代理设置

    • 确认您的电脑可以正常访问互联网。
    • 如果您使用了代理(VPN/Clash等),请确保代理软件正在运行且规则正确。
    • 在软件主界面第5行的“网络代理”处,填入您的代理地址(例如 http://127.0.0.1:7890),然后重试。
  2. 检查硅基流动API密钥

    • 在菜单栏选择 翻译设置
    • 找到“硅基流动”部分,确认您的 API Key 已正确填写且未过期。
    • 重要:硅基流动的API接口地址(API URL)通常为 https://api.siliconflow.cn/v1,请确认此处填写无误。
  3. 临时更换翻译渠道

    • 如果上述步骤无效,建议暂时更换为其他翻译渠道(如Google、DeepSeek等)以完成当前任务。

如果问题持续存在,请提供 D:/win-pyvideotrans-v3.87/logs/ 目录下的最新日志文件以便进一步分析。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions