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

240e:**:2824 Posted at: 20 hours ago

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

File "httpx\_urlparse.py", line 409, in normalize_port

ValueError: invalid literal for int() with base 10: '5188;https=127.0.0.1:5188;socks=127.0.0.1:5180'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 135, in process_task

File "videotrans\task\trans_create.py", line 608, in trans

File "videotrans\translator\__init__.py", line 860, in run

File "videotrans\translator\_base.py", line 68, in run

File "videotrans\translator\_base.py", line 142, in _run_srt

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\_openaicompat.py", line 76, in _item_task

File "openai\_client.py", line 226, in init

File "openai\_base_client.py", line 909, in init

File "openai\_base_client.py", line 839, in init

File "httpx\_client.py", line 686, in init

File "httpx\_client.py", line 244, in _get_proxy_map

File "httpx\_client.py", line 245, in

File "httpx\_config.py", line 210, in init

File "httpx\_urls.py", line 117, in init

File "httpx\_urlparse.py", line 321, in urlparse

File "httpx\_urlparse.py", line 411, in normalize_port

httpx.InvalidURL: Invalid port: '5188;https=127.0.0.1:5188;socks=127.0.0.1:5180'
cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 批量翻译模式
原始输入文件名: D:/Desktop/哼哼猫下载/紫水晶戒指/紫水晶戒指 (18).mp4,
输出结果保存到文件夹: D:/Desktop/饰品素材/7.匈牙利/紫水晶戒指 (18)-mp4,
临时文件夹: D:/soft/trans/win-pyvideotrans-v4.03-0626/tmp/19736/26c4e9ba37
未选 清理已存在
未选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:匈牙利语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Noemi(Female/HU), 配音语言:匈牙利语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
已选 仅输出mp4
代理地址:


=
system:Windows-10-10.0.19045-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/soft/trans/win-pyvideotrans-v4.03-0626

1 Replies

这是代理设置格式错误导致的网络请求失败。错误中出现 '5188;https=127.0.0.1:5188;socks=127.0.0.1:5180',这是从其他代理软件复制出来的多协议配置字符串,pyVideoTrans 无法解析这种格式。

解决方案:

  1. 打开软件主界面第5行的「网络代理」输入框,或 菜单 -> 翻译设置 中的代理设置,将其清空或修改为标准格式:http://127.0.0.1:5188(只需一个协议+地址+端口)。
  2. 如果软件内代理框已为空,请检查系统环境变量。此错误可能是系统级 HTTP_PROXY/HTTPS_PROXY 环境变量被第三方代理软件写入导致的。请在 Windows 的「系统属性 -> 环境变量」中删除或修正这些变量,然后重启软件。
  3. DeepSeek 是国内 API,默认不走代理,正常情况下无需为它填写代理;清空代理即可。

请查阅相关文档:

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 via ko-fi.com

Dondate via PayPal

Related resource