AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.91k stars 26.94k forks source link

[Bug]: ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:17897/') #16474

Open worisur opened 2 months ago

worisur commented 2 months ago

Checklist

What happened?

I run web.sh and report this

Steps to reproduce the problem

I run web.sh and report this

Launching Web UI with arguments: Traceback (most recent call last): File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/launch.py", line 48, in main() File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/launch.py", line 44, in main start() File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/modules/launch_utils.py", line 465, in start import webui File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/webui.py", line 13, in initialize.imports() File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/modules/initialize.py", line 23, in imports import gradio # noqa: F401 File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/init.py", line 3, in import gradio.components as components File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components/init.py", line 1, in from gradio.components.annotated_image import AnnotatedImage File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 12, in from gradio import utils File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/utils.py", line 353, in class AsyncRequest: File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/utils.py", line 372, in AsyncRequest client = httpx.AsyncClient() File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_client.py", line 1395, in init proxy_map = self._get_proxy_map(proxies, allow_env_proxies) File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_client.py", line 216, in _get_proxy_map return { File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_client.py", line 217, in key: None if url is None else Proxy(url=url) File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_config.py", line 336, in init raise ValueError(f"Unknown scheme for proxy URL {url!r}") ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:17897/')

What should have happened?

unknown

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

系统详情报告


报告详情

硬件信息:

软件信息:

Console logs

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on lux user
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
glibc version is 2.40
Check TCMalloc: libtcmalloc_minimal.so.4
libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/usr/lib/libtcmalloc_minimal.so.4
Python 3.10.14 (main, Sep  4 2024, 12:07:11) [GCC 14.2.1 20240805]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Launching Web UI with arguments: 
Traceback (most recent call last):
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/launch.py", line 44, in main
    start()
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/modules/launch_utils.py", line 465, in start
    import webui
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/webui.py", line 13, in <module>
    initialize.imports()
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/modules/initialize.py", line 23, in imports
    import gradio  # noqa: F401
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/__init__.py", line 3, in <module>
    import gradio.components as components
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components/__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 12, in <module>
    from gradio import utils
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/utils.py", line 353, in <module>
    class AsyncRequest:
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/utils.py", line 372, in AsyncRequest
    client = httpx.AsyncClient()
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_client.py", line 1395, in __init__
    proxy_map = self._get_proxy_map(proxies, allow_env_proxies)
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_client.py", line 216, in _get_proxy_map
    return {
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_client.py", line 217, in <dictcomp>
    key: None if url is None else Proxy(url=url)
  File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_config.py", line 336, in __init__
    raise ValueError(f"Unknown scheme for proxy URL {url!r}")
ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:17897/')

Additional information

No response

weyoung0 commented 1 week ago

unset ALL_PROXY and restart webui.sh