• Stable Diffusion 启动时 got an unexpected keyword argument ‘socket_options‘ 错误解决


    Stable Diffusion 启动时 got an unexpected keyword argument 'socket_options' 错误解决

    问题

    Launching Web UI with arguments: 
    Traceback (most recent call last):
      File "launch.py", line 48, in 
        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 
        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 
        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 
        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 
        from gradio import utils
      File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/utils.py", line 353, in 
        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'
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29

    解决方法

    cd 
    . .\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
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    完结!

  • 相关阅读:
    每日十(?)题之20220903
    第七章:敏捷开发工具方法-part1-敏捷开发基础
    Istio服务网格进阶⑤:Istio服务网格的流量管理之服务熔断
    自定义实现hashmap-python
    浏览器输入url后回车展开过程
    1310. 数三角形
    2023苏州科技大学计算机考研信息汇总
    【React】编程式路由,push 与 replace,withRouter,BrowserRouter 和 HashRouter 的区别
    【网络安全】黑客自学笔记
    【无标题】
  • 原文地址:https://blog.csdn.net/engchina/article/details/134454449