#2545 TaskCfg(cache_folder='E:/spfy/tmp/7480/d0a292606e', target_dir='C:/Users/蟹黄/Desktop/12/_video_out/2-mp4', remove_noise=F

159.89* Posted at: 22 hours ago 👁10

翻译字幕阶段出错 [Google(免费)] 网络连接失败
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 773, in urlopen
File "urllib3\connectionpool.py", line 1042, in _prepare_proxy
File "urllib3\connection.py", line 790, in connect
File "urllib3\connection.py", line 969, in _ssl_wrap_socket_and_match_hostname
File "urllib3\util\ssl_.py", line 480, in ssl_wrap_socket
File "urllib3\util\ssl_.py", line 524, in _ssl_wrap_socket_impl
File "ssl.py", line 512, in wrap_socket
File "ssl.py", line 1070, in _create
File "ssl.py", line 1341, in do_handshake
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "requests\adapters.py", line 644, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 474, in increment
File "urllib3\util\util.py", line 38, in reraise
File "urllib3\connectionpool.py", line 773, in urlopen
File "urllib3\connectionpool.py", line 1042, in _prepare_proxy
File "urllib3\connection.py", line 790, in connect
File "urllib3\connection.py", line 969, in _ssl_wrap_socket_and_match_hostname
File "urllib3\util\ssl_.py", line 480, in ssl_wrap_socket
File "urllib3\util\ssl_.py", line 524, in _ssl_wrap_socket_impl
File "ssl.py", line 512, in wrap_socket
File "ssl.py", line 1070, in _create
File "ssl.py", line 1341, in do_handshake
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 184, in run
File "videotrans\task\trans_create.py", line 461, in trans
File "videotrans\translator\__init__.py", line 878, in run
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 96, in _run_text
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_google.py", line 40, in _item_task
File "requests\api.py", line 73, in get
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 659, in send
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

TaskCfg(cache_folder='E:/spfy/tmp/7480/d0a292606e', target_dir='C:/Users/蟹黄/Desktop/12/_video_out/2-mp4', remove_noise=False, is_separate=False, detect_language='zh-cn', subtitle_language=None, source_language='简体中文', target_language='英语', source_language_code='zh-cn', target_language_code='en', source_sub='C:/Users/蟹黄/Desktop/12/_video_out/2-mp4/zh-cn.srt', target_sub='C:/Users/蟹黄/Desktop/12/_video_out/2-mp4/en.srt', source_wav='E:/spfy/tmp/7480/d0a292606e/zh-cn.wav', source_wav_output='C:/Users/蟹黄/Desktop/12/_video_out/2-mp4/zh-cn.m4a', target_wav='E:/spfy/tmp/7480/d0a292606e/target.wav', target_wav_output='C:/Users/蟹黄/Desktop/12/_video_out/2-mp4/en.m4a', subtitles='', novoice_mp4='E:/spfy/tmp/7480/d0a292606e/novoice.mp4', noextname='2', shibie_audio=None, targetdir_mp4='C:/Users/蟹黄/Desktop/12/_video_out/2-mp4/2.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Ana(Female/US)', copysrt_rawvideo=False, clear_cache=True, translate_type=0, tts_type=0, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=True, video_autorate=True, cuda=True, name='C:/Users/蟹黄/Desktop/12/2.mp4', basename='2.mp4', ext='mp4', dirname='C:/Users/蟹黄/Desktop/12', shound_del_name=None, uuid='d0a292606e', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.92
frozen:True
language:zh
root_dir:E:/spfy

1 Replies

此错误表明 Google 翻译服务连接失败,核心原因是网络问题。根据错误日志 FileNotFoundError: [Errno 2] No such file or directoryurllib3.exceptions.ProtocolError,这通常与系统 SSL 证书缺失或网络代理配置有关。

请按以下步骤排查:

  1. 检查网络代理设置:如果您使用了网络代理(VPN 或 Clash 等),请确保代理软件正常运行,并在 pyVideoTrans 主界面第 5 行的“网络代理”框中正确填写代理地址(例如 http://127.0.0.1:7890)。如果未使用代理,请确保该框为空。
  2. 检查系统 SSL 证书:Windows 系统 SSL 证书损坏或缺失会导致此类连接错误。

    • 尝试访问 https://translate.google.com,看浏览器是否能正常打开。如果打不开,说明是系统网络或证书问题。
    • 可以尝试在 Windows 中运行 certmgr.msc,检查“受信任的根证书颁发机构”下的证书是否正常。但更简单的解决方法是重启电脑,这有时能恢复网络组件的正常状态。
  3. 更换翻译渠道:作为临时解决方案,您可以切换到其他翻译渠道,例如:

    • 微软翻译:同样是免费渠道,对网络要求可能不同。
    • DeepLX:一个开源的 DeepL 替代方案。
    • 在“翻译设置”中选择其他可用的渠道。
  4. 检查防火墙/杀毒软件:暂时禁用防火墙或杀毒软件,看是否是其阻止了 pyVideoTrans 的网络连接。

如果以上步骤均无效,请提供 videotrans/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