#6267 Failed to parse: http=127.0.0.1:7890;https=127.0.0.1:7890;socks=127.0.0.1:7890[字节语音大模型极速版, Google(免费), Elevenlabs.io]Tr

42.200* Posted at: 12 hours ago

Failed to parse: http=127.0.0.1:7890;https=127.0.0.1:7890;socks=127.0.0.1:7890[字节语音大模型极速版, Google(免费), Elevenlabs.io]
Traceback (most recent call last):
File "urllib3\util\url.py", line 423, in parse_url

host, port = _HOST_PORT_RE.match(host_port).groups()  # type: ignore[union-attr]

AttributeError: 'NoneType' object has no attribute 'groups'

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

Traceback (most recent call last):
File "requests\adapters.py", line 610, in send

conn = self.get_connection_with_tls_context(

File "requests\adapters.py", line 453, in get_connection_with_tls_context

proxy = prepend_scheme_if_needed(proxy, "http")

File "requests\utils.py", line 985, in prepend_scheme_if_needed

parsed = parse_url(url)

File "urllib3\util\url.py", line 449, in parse_url

raise LocationParseError(source_url) from e

urllib3.exceptions.LocationParseError: Failed to parse: http=127.0.0.1:7890;https=127.0.0.1:7890;socks=1
......
4', dirname='D:/shipin', noextname='51', basename='51.mp4', ext='mp4', target_dir='D:/shipin3/51-mp4/ru', shared_target_dir='D:/shipin3/51-mp4', cache_folder='D:/pyvideotrans/tmp/46032/74f615f3b8-ru', is_cuda=False, source_language='简体中文', source_language_code='zh-cn', source_sub='D:/shipin3/51-mp4/zh-cn.srt', source_wav='D:/shipin3/51-mp4/_shared/zh-cn.wav', source_wav_output='D:/shipin3/51-mp4/zh-cn.m4a', target_language='俄罗斯语', target_language_code='ru', target_sub='D:/shipin3/51-mp4/ru/ru.srt', target_wav='D:/pyvideotrans/tmp/46032/74f615f3b8-ru/target.wav', target_wav_output='D:/shipin3/51-mp4/ru/ru.m4a', translate_type=0, tts_type=20, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Roger - Laid-Back Casual Resonant', voice_role_auto_mode=True, voice_autorate=True, video_autorate=True, dubbing_thread_workers=2, remove_silent_mid=False, align_sub_audio=True, detect_language='zh-cn', recogn_type=8, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=True, nums_diariz=0, rephrase=0, fix_punc=0, target_language_pairs=[{'language': '俄罗斯语', 'code': 'ru'}, {'language': '哈萨克语', 'code': 'kk'}], target_languages=['俄罗斯语', '哈萨克语'], target_language_codes=['ru', 'kk'], multi_target_language_serial=True, multi_target_language_workers=0, resolved_multi_target_language_workers=2, stage_parallel_workers=2, video_slow_clip_workers=2, process_name='51.mp4 - 俄罗斯语', subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='D:/shipin3/51-mp4/ru/51.mp4', novoice_mp4='D:/pyvideotrans/tmp/46032/74f615f3b8-ru/novoice.mp4', is_separate=True, embed_bgm=True, instrument='D:/shipin3/51-mp4/_shared/instrument.wav', vocal='D:/shipin3/51-mp4/_shared/vocal.wav', clear_cache=False, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/pyvideotrans

1 Replies

这是“网络代理”格式填写错误导致的。当前填写的代理值 http=127.0.0.1:7890;https=127.0.0.1:7890;socks=127.0.0.1:7890 是 Clash 等工具导出的环境变量格式,pyVideoTrans 无法解析这种格式,所以请求 Google 翻译时报 InvalidURL / Failed to parse

解决方法:

  1. 在主界面“网络代理”栏中,只填单个代理地址,推荐格式:

    • http://127.0.0.1:7890
    • socks5://127.0.0.1:7890
  2. 不需要代理时,请直接清空“网络代理”输入框。
  3. 如果你在国内且没有可用代理,不要使用 Google 翻译。请将“翻译渠道”切换为“Microsoft 翻译”,该渠道无需代理即可使用。
  4. 修改后重新点击“开始”执行任务即可。

请查阅相关文档:

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