#4928 TaskCfgVTT(uuid='defebe08ef', name='C:/Users/46751/Desktop/素材/八零甜妻.mp4', dirname='C:/Users/46751/Desktop/素材', noextname=

42.92* Posted at: 9 hours ago

('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))语音识别阶段出错:faster-whisper(本地), 翻译字幕阶段出错: Google(免费), 配音阶段出错:Edge-TTS(免费)
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 513, in wrap_socket
File "ssl.py", line 1104, in _create
File "ssl.py", line 1375, 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 513, in wrap_socket
File "ssl.py", line 1104, in _create
File "ssl.py", line 1375, 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\only_one.py", line 68, in run
File "videotrans\task\trans_create.py", line 585, in trans
File "videotrans\translator\__init__.py", line 849, in run
File "videotrans\translator\_base.py", line 69, in run
File "videotrans\translator\_base.py", line 98, 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 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_google.py", line 29, 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'))
TaskCfgVTT(uuid='defebe08ef', name='C:/Users/46751/Desktop/素材/八零甜妻.mp4', dirname='C:/Users/46751/Desktop/素材', noextname='八零甜妻', basename='八零甜妻.mp4', ext='mp4', target_dir='C:/Users/46751/Desktop/video/八零甜妻-mp4', cache_folder='E:/pyvideotrans/pyvideotrans/tmp/22408/defebe08ef', is_cuda=True, source_language='简体中文', source_language_code='zh-cn', source_sub='C:/Users/46751/Desktop/video/八零甜妻-mp4/zh-cn.srt', source_wav='E:/pyvideotrans/pyvideotrans/tmp/22408/defebe08ef/zh-cn.wav', source_wav_output='C:/Users/46751/Desktop/video/八零甜妻-mp4/zh-cn.m4a', target_language='印度尼西亚语', target_language_code='id', target_sub='C:/Users/46751/Desktop/video/八零甜妻-mp4/id.srt', target_wav='E:/pyvideotrans/pyvideotrans/tmp/22408/defebe08ef/target.wav', target_wav_output='C:/Users/46751/Desktop/video/八零甜妻-mp4/id.m4a', translate_type=0, tts_type=0, volume='+1%', pitch='+0Hz', voice_rate='+0%', voice_role='Gadis(Female/ID)', voice_autorate=True, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='zh-cn', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='C:/Users/46751/Desktop/video/八零甜妻-mp4/八零甜妻.mp4', novoice_mp4='E:/pyvideotrans/pyvideotrans/tmp/22408/defebe08ef/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='E:/pyvideotrans/pyvideotrans/tmp/22408/defebe08ef/vocal.wav', clear_cache=True, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.26300-SP0
version:v4.01
frozen:True
language:zh
root_dir:E:/pyvideotrans/pyvideotrans

1 Replies

核心原因是网络连接失败:Google翻译和Edge-TTS均为国外服务,在中国大陆直连会被阻断,需配置网络代理。错误“No such file or directory”出现在SSL握手阶段,是代理配置无效或未配置的典型表现。

解决方案

  1. 配置网络代理:在主界面“网络代理地址”处填写正确的代理地址,格式如 http://127.0.0.1:7890(端口号需根据你的代理客户端修改)。
  2. 若无法使用代理:将翻译渠道改为 微软翻译(免费)(无需代理),配音渠道仍可用Edge-TTS(可试,部分地区需代理)或改用其他国内可用的TTS渠道(如Azure-TTS、本地Piper等)。
  3. 检查文件路径:当前视频路径包含中文和空格(八零甜妻),虽然本次错误不直接相关,仍建议将视频文件移至纯英文路径(如 D:/videos/)以避免后续ffmpeg引发其他错误。

参考文档

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. Dondate: ko-fi.com/jianchang512

Related resource