#2978 ValueError: Unknown scheme for proxy URL URL('127.0.0.1:506')

188.253* Posted at: 18 days ago 👁47

无效的值或参数:Unknown scheme for proxy URL URL('127.0.0.1:506'):
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 301, in run
File "videotrans\tts\_base.py", line 177, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_elevenlabs.py", line 54, in _run
File "httpx\_client.py", line 686, in init
File "httpx\_client.py", line 250, in _get_proxy_map
File "httpx\_config.py", line 214, in init
ValueError: Unknown scheme for proxy URL URL('127.0.0.1:506')


=
system:Windows-10-10.0.19045-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/peiyin/win-pyvideotrans-v3.86

1 Replies

这是由于在“网络代理”设置中填写的代理地址格式不正确导致的。

  1. 检查代理地址格式:在 pyVideoTrans 的“设置”或“高级选项”中找到“网络代理”配置项。正确的代理地址格式应为 http://127.0.0.1:506https://127.0.0.1:506,即必须包含协议头(http://https://)。
  2. 修改代理地址:将 127.0.0.1:506 修改为正确的格式,例如 http://127.0.0.1:506
  3. 如无需代理:如果不需要使用代理,请清空“网络代理”配置项。

请查阅相关文档:

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.

Related resource