启动报错如下所示:
(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/启动就没有问题了