#1734 TaskCfg(cache_folder='D:/Videotrans/tmp24028/c9c0033e30', target_dir='D:/Video_Sub_translation/AI for Test Enablement -

2406:8dc0* Posted at: 6 days ago 👁30

翻译字幕阶段出错:[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 423, in trans
File "videotrans\translator\__init__.py", line 876, in run
File "videotrans\translator\_base.py", line 78, in run
File "videotrans\translator\_base.py", line 95, 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='D:/Videotrans/tmp24028/c9c0033e30', target_dir='D:/Video_Sub_translation/AI for Test Enablement - Recording/AI for Test Enablement - Recording', 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:/Video_Sub_translation/AI for Test Enablement - Recording/AI for Test Enablement - Recording/en.srt', target_sub='D:/Video_Sub_translation/AI for Test Enablement - Recording/AI for Test Enablement - Recording/zh-cn.srt', source_wav='D:/Videotrans/tmp24028/c9c0033e30/en.wav', source_wav_output='D:/Video_Sub_translation/AI for Test Enablement - Recording/AI for Test Enablement - Recording/en.m4a', target_wav='D:/Videotrans/tmp24028/c9c0033e30/target.wav', target_wav_output='D:/Video_Sub_translation/AI for Test Enablement - Recording/AI for Test Enablement - Recording/zh-cn.m4a', subtitles='', novoice_mp4='D:/Videotrans/tmp24028/c9c0033e30/novoice.mp4', noextname='AI for Test Enablement - Recording', shibie_audio=None, targetdir_mp4='D:/Video_Sub_translation/AI for Test Enablement - Recording/AI for Test Enablement - Recording/AI for Test Enablement - Recording.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='tiqu', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', 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=False, video_autorate=False, cuda=True, name='D:/AI for Test Enablement - Recording.mp4', basename='AI for Test Enablement - Recording.mp4', ext='mp4', dirname='D:/', shound_del_name=None, uuid='c9c0033e30', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=True)


=
system:Windows-10-10.0.22631-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/Videotrans

1 Replies

这个错误表明在使用 Google 免费翻译时,网络连接因 SSL 证书问题而失败。具体错误 FileNotFoundError: [Errno 2] No such file or directory 通常与系统缺少根证书或代理配置有关。

请按以下步骤排查:

  1. 检查网络代理设置

    • 如果您使用了代理软件(如 Clash、V2Ray),请确保代理软件正在运行,并且其系统代理功能已开启。
    • 在 pyVideoTrans 主界面第5行的 网络代理 输入框中,正确填写您的代理地址和端口,格式如 http://127.0.0.1:7890socks5://127.0.0.1:7891
  2. 尝试其他翻译渠道

    • 由于 Google 翻译在国内访问不稳定,建议临时切换到其他免费渠道,例如 微软翻译DeepLX,以确认问题是否仅限于 Google。
  3. 更新系统根证书

    • 如果上述方法无效,可能是 Windows 系统根证书缺失或损坏。
    • 可以尝试运行 Windows 更新,或从微软官网下载并安装最新的根证书更新。

如果问题依旧,请提供 D:/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