#8512 翻译字幕阶段出错 [DeepSeek] 网络连接失败Traceback (most recent call last):

60.250**9 Posted at: 1 hour ago

翻译字幕阶段出错 [DeepSeek] 网络连接失败
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 154, in _connect
File "httpcore\_backends\sync.py", line 152, in start_tls
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

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

Traceback (most recent call last):
File "openai\_base_client.py",
......
nguage='英语', source_language_code='en', source_sub='C:/Users/320124233/Downloads/_video_out/005+-+Ch+3+Neuro+Perfusion+Part+01-mp4/en.srt', source_wav='C:/Users/320124233/OneDrive - Philips/文件/win-pyvideotrans-v3.98-317/tmp/41104/777ec21a4a/en.wav', source_wav_output='C:/Users/320124233/Downloads/_video_out/005+-+Ch+3+Neuro+Perfusion+Part+01-mp4/en.m4a', target_language='繁体中文', target_language_code='zh-tw', target_sub='C:/Users/320124233/Downloads/_video_out/005+-+Ch+3+Neuro+Perfusion+Part+01-mp4/zh-tw.srt', target_wav='C:/Users/320124233/OneDrive - Philips/文件/win-pyvideotrans-v3.98-317/tmp/41104/777ec21a4a/target.wav', target_wav_output='C:/Users/320124233/Downloads/_video_out/005+-+Ch+3+Neuro+Perfusion+Part+01-mp4/zh-tw.m4a', name='C:/Users/320124233/Downloads/005+-+Ch+3+Neuro+Perfusion+Part+01.mp4', noextname='005+-+Ch+3+Neuro+Perfusion+Part+01', basename='005+-+Ch+3+Neuro+Perfusion+Part+01.mp4', ext='mp4', dirname='C:/Users/320124233/Downloads', shound_del_name=None, translate_type=4, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='medium', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=2, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='C:/Users/320124233/Downloads/_video_out/005+-+Ch+3+Neuro+Perfusion+Part+01-mp4/005+-+Ch+3+Neuro+Perfusion+Part+01.mp4', novoice_mp4='C:/Users/320124233/OneDrive - Philips/文件/win-pyvideotrans-v3.98-317/tmp/41104/777ec21a4a/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=1, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False)


=
system:Windows-10-10.0.26100-SP0
version:v3.98
frozen:True
language:zh
root_dir:C:/Users/320124233/OneDrive - Philips/文件/win-pyvideotrans-v3.98-317

1 Replies

#1 DeepSeek reply at 1 hour ago

底层核心原因:SSL 证书验证失败(CERTIFICATE_VERIFY_FAILED),说明软件在 TLS 握手阶段无法认可服务器证书。DeepSeek 是国内 API,正常情况下不会也无需走代理。常见诱因有两个:一是主界面填写了代理地址(或系统开启了 VPN/Clash 等代理软件,其根证书未被 Python 信任);二是系统根证书缺失或系统时间错误。

解决步骤:

  1. 清空代理:将主界面「网络代理」文本框内容全部删除(DeepSeek 不需要代理),关闭系统层面的 VPN/代理客户端后重试。
  2. 校对系统时间:确保 Windows 日期、时间、时区完全正确(时间偏差过大必然报证书错误)。
  3. 更新根证书:Windows 设置 → Windows 更新 → 安装全部可选更新;或在官网下载安装 VC++ 运行库后重启。
  4. 排查代理软件:若必须使用代理,请关闭代理软件的「TLS/SSL 解密」「HTTPS 中间人」「证书注入」类选项,或将该软件根证书导入系统「受信任的根证书颁发机构」。

同时强烈建议处理以下两个环境隐患(与本次报错无关,但极易引发后续 ffmpeg/路径类报错):

  1. 软件当前位于 OneDrive - Philips/文件/... 中文且长路径下,建议整体移动到浅层纯英文目录,如 D:\pyvideotrans。
  2. 视频文件名含空格和 + 号(005+-+Ch+3...),建议改为 video1.mp4 这类简短名称再导入。

另外,您使用的是 v3.98 版本,较旧,建议升级至最新版后再试。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource