#7284 翻译字幕阶段出错 [DeepSeek] httpx.InvalidURL: Invalid IPv4 address: '127.0.0.15777'Traceback (most recent call last):File "httpx

36.159**6 Posted at: 1 hour ago

翻译字幕阶段出错 [DeepSeek] httpx.InvalidURL: Invalid IPv4 address: '127.0.0.15777'
Traceback (most recent call last):

File "httpx\_urlparse.py", line 359, in encode_host

File "ipaddress.py", line 1305, in init

File "ipaddress.py", line 1197, in _ip_int_from_string

ipaddress.AddressValueError: At most 3 characters permitted in '15777' in '127.0.0.15777'

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 137, in process_task

File "videotrans\task\_stage_translate.py", line 31, in trans

File "videotrans\translator\_runner.py", line 67, in run

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

File "videotrans\translator\_base.py", line 153, 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 88, in _item_task

File "videotrans\translator\_openaicompat.py", line 47, in _create_completion

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 320, in urlparse

File "httpx\_urlparse.py", line 361, in encode_host

httpx.InvalidURL: Invalid IPv4 address: '127.0.0.15777'

self.cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: E:/优酷/我的世界/JJ/9月14日 (2)/9月14日 (2)-1.mov,
输出结果保存到文件夹: E:/优酷/我的世界/JJ/9月14日 (2)/_video_out/9月14日 (2)-1-mov,
临时文件夹: F:/大模型/win-pyvideotrans-v4.12-0912/tmp/21952/2c0dbf93f1
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3, 发音语言: 英语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 单字幕
代理地址:http://127.0.0.15777

1 Replies

#1 DeepSeek reply at 1 hour ago

<RESULT>这是由于你填写的网络代理地址格式错误导致的。http://127.0.0.15777 缺少了端口分隔符冒号,被软件当作了一个无效的 IPv4 地址,从而在发起 DeepSeek 翻译请求时崩溃。

解决方法

  1. 回到软件主界面,找到「对齐控制」行右侧的网络代理文本框。
  2. http://127.0.0.15777 更正为 http://127.0.0.1:15777(请改成你实际代理端口号,冒号必须是英文半角)。
  3. 若你不需要代理即可访问 DeepSeek,可直接清空该文本框并保存,避免代理错误影响请求。
  4. 重新执行任务。

请查阅相关文档:

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