勿忘初心做自己 发表于 2024-8-5 19:19:48

Stable Diffusion 启动时 got an unexpected keyword argument ‘socket_op

题目

Launching Web UI with arguments:
Traceback (most recent call last):
File "launch.py", line 48, in <module>
    main()
File "launch.py", line 44, in main
    start()
File "/home/causer/Desktop/seg/stable-diffusion-webui/modules/launch_utils.py", line 432, in start
    import webui
File "/home/causer/Desktop/seg/stable-diffusion-webui/webui.py", line 13, in <module>
    initialize.imports()
File "/home/causer/Desktop/seg/stable-diffusion-webui/modules/initialize.py", line 21, in imports
    import gradio# noqa: F401
File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/__init__.py", line 3, in <module>
    import gradio.components as components
File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/components/__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/components/annotated_image.py", line 12, in <module>
    from gradio import utils
File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/utils.py", line 353, in <module>
    class AsyncRequest:
File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/utils.py", line 372, in AsyncRequest
    client = httpx.AsyncClient()
File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/httpx/_client.py", line 1397, in __init__
    self._transport = self._init_transport(
File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/httpx/_client.py", line 1445, in _init_transport
    return AsyncHTTPTransport(
File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/httpx/_transports/default.py", line 275, in __init__
    self._pool = httpcore.AsyncConnectionPool(
TypeError: __init__() got an unexpected keyword argument 'socket_options'
办理方法

cd <StableDiffusionPath>
. .\venv\Scripts\activate
pip install -U pip
pip install -U httpcore
python.exe -m pip install --upgrade pip
pip install -U httpx==0.24.1
完结!

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: Stable Diffusion 启动时 got an unexpected keyword argument ‘socket_op