当前位置: 首页 > news >正文

text-generation-webui启动报错alueError: Unknown scheme for proxy URL URL(‘socks://127.0.0.1:**/‘)

启动报错如下所示:

(base) runUser@**:~/soft/text-generation-webui-main$ ./start_linux.sh ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /home/runUser/soft/text-generation-webui-main/server.py:6 in <module> │ │ │ │ 5 │ │ ❱ 6 from modules import shared │ │ 7 from modules.block_requests import OpenMonkeyPatch, RequestBlocker │ │ │ │ /home/runUser/soft/text-generation-webui-main/modules/shared.py:12 in │ │ <module> │ │ │ │ 11 from modules.logging_colors import logger │ │ ❱ 12 from modules.presets import default_preset │ │ 13 │ │ │ │ /home/runUser/soft/text-generation-webui-main/modules/presets.py:8 in │ │ <module> │ │ │ │ 7 from modules import shared │ │ ❱ 8 from modules.loaders import loaders_samplers │ │ 9 from modules.logging_colors import logger │ │ │ │ /home/runUser/soft/text-generation-webui-main/modules/loaders.py:4 in │ │ <module> │ │ │ │ 3 │ │ ❱ 4 import gradio as gr │ │ 5 │ │ │ │ /home/runUser/soft/text-generation-webui-main/installer_files/env/lib/python3 │ │ .11/site-packages/gradio/__init__.py:3 in <module> │ │ │ │ 2 │ │ ❱ 3 import gradio._simple_templates │ │ 4 import gradio.image_utils │ │ │ │ ... 4 frames hidden ... │ │ │ │ /home/runUser/soft/text-generation-webui-main/installer_files/env/lib/python3 │ │ .11/site-packages/gradio/processing_utils.py:99 in <module> │ │ │ │ 98 │ │ ❱ 99 sync_client = httpx.Client(transport=sync_transport) │ │ 100 async_client = httpx.AsyncClient(transport=async_transport) │ │ │ │ /home/runUser/soft/text-generation-webui-main/installer_files/env/lib/python3 │ │ .11/site-packages/httpx/_client.py:686 in __init__ │ │ │ │ 685 allow_env_proxies = trust_env and transport is None │ │ ❱ 686 proxy_map = self._get_proxy_map(proxy, allow_env_proxies) │ │ 687 │ │ │ │ /home/runUser/soft/text-generation-webui-main/installer_files/env/lib/python3 │ │ .11/site-packages/httpx/_client.py:244 in _get_proxy_map │ │ │ │ 243 if allow_env_proxies: │ │ ❱ 244 return { │ │ 245 key: None if url is None else Proxy(url=url) │ │ │ │ /home/runUser/soft/text-generation-webui-main/installer_files/env/lib/python3 │ │ .11/site-packages/httpx/_client.py:245 in <dictcomp> │ │ │ │ 244 return { │ │ ❱ 245 key: None if url is None else Proxy(url=url) │ │ 246 for key, url in get_environment_proxies().items() │ │ │ │ /home/runUser/soft/text-generation-webui-main/installer_files/env/lib/python3 │ │ .11/site-packages/httpx/_config.py:214 in __init__ │ │ │ │ 213 if url.scheme not in ("http", "https", "socks5", "socks5h"): │ │ ❱ 214 raise ValueError(f"Unknown scheme for proxy URL {url!r}") │ │ 215 │ ╰──────────────────────────────────────────────────────────────────────────────╯ ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:10808/')

使用env | grep -i proxy命令查看代理配置

(base) runUser@**:~/soft/text-generation-webui-main$ env | grep -i proxy no_proxy=localhost,127.0.0.0/8,::1 ftp_proxy=http://127.0.0.1:10808/ https_proxy=http://127.0.0.1:10808/ NO_PROXY=localhost,127.0.0.0/8,::1 FTP_PROXY=http://127.0.0.1:10808/ HTTPS_PROXY=http://127.0.0.1:10808/ HTTP_PROXY=http://127.0.0.1:10808/ http_proxy=http://127.0.0.1:10808/ ALL_PROXY=socks://127.0.0.1:10808/ all_proxy=socks://127.0.0.1:10808/

使用unset命令清空代理配置,我的经验,只需要清空ALL_PROXY、all_proxy即可

(base) runUser@**:~/soft/text-generation-webui-main$ unset ALL_PROXY (base) runUser@**:~/soft/text-generation-webui-main$ unset all_proxy (base) runUser@**:~/soft/text-generation-webui-main$ env | grep -i proxy no_proxy=localhost,127.0.0.0/8,::1 ftp_proxy=http://127.0.0.1:10808/ https_proxy=http://127.0.0.1:10808/ NO_PROXY=localhost,127.0.0.0/8,::1 FTP_PROXY=http://127.0.0.1:10808/ HTTPS_PROXY=http://127.0.0.1:10808/ HTTP_PROXY=http://127.0.0.1:10808/ http_proxy=http://127.0.0.1:10808/

启动就没有问题了

http://www.jsqmd.com/news/213106/

相关文章:

  • 快速精通xsimd:3个实战技巧让C++性能飙升
  • MODNet实战:高效实时人像抠图的完整解决方案
  • 深度解析Gemmini:新一代智能硬件DNN加速平台实战指南
  • 3步搞定AWS iOS SDK:新手也能快速上手的终极指南
  • 3分钟搭建个人复古游戏博物馆:EmuOS网页模拟器完整指南
  • 智能AI水印去除工具:零基础也能轻松清除图片视频水印
  • Requests底层依赖实战指南:如何快速定位证书验证失败与连接池问题
  • Bilidown:B站视频一键下载神器,高清离线随心看
  • 显存占用过高怎么办?MGeo镜像轻量化改造方案分享
  • 如何将MacBook刘海区域改造成智能音乐控制中心
  • Lucky反向代理技术方案:解决多服务统一访问架构难题
  • 基于Java+SpringBoot+Vue的课外活动管理系统【附源码+文档+部署视频+讲解)Python,Django,php,Flask,node.js,SSM,JSP,微信小程序,大数据技术,安卓
  • 如何快速部署驭龙HIDS:面向新手的完整安全防护指南
  • 企业分支机构治理:MGeo识别虚设办公地点
  • 还在warning粘贴代码?MGeo提供安全可控的部署环境
  • Obsidian Web Clipper终极指南:如何快速建立个人知识收集系统
  • InvenSense IMU传感器Arduino开发终极指南:3步快速上手MPU-9250
  • Windows微信自动化终极指南:5大核心功能快速上手
  • PyG链接预测负采样终极指南:高效技巧与实战策略
  • 化石初步鉴定:博物馆标本图像自动归类
  • 基于Java+SpringBoot+Vue的选课系统系统【附源码+数据库+文档+讲解视频】Python,Django,php,Flask,node.js,SSM,JSP,微信小程序,大数据技术,安卓
  • MGeo自动化文档生成:Swagger输出API接口说明
  • AirSim无人机仿真平台终极部署指南:从零到精通的完整解决方案
  • 单机部署极限测试:MGeo在16GB显存下处理千万级数据对
  • 3步完美解锁:让三星健康在Root设备重获新生
  • 基于Java+SpringBoot+Vue的热门文创内容推荐系统【附源码+文档+部署视频+讲解】ython,Django,php,Flask,node.js,SSM,JSP,微信小程序,大数据技术
  • 避免0xc000007b错误:正确部署MGeo镜像的注意事项
  • Time-MoE时间序列预测模型:从零开始的完整安装配置指南
  • 从demo到上线:MGeo生产环境压力测试要点
  • 突破性能瓶颈:SIMD编程的思维革新指南