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

打印 上一主题 下一主题

主题 701|帖子 701|积分 2103

题目

  1. Launching Web UI with arguments:
  2. Traceback (most recent call last):
  3.   File "launch.py", line 48, in <module>
  4.     main()
  5.   File "launch.py", line 44, in main
  6.     start()
  7.   File "/home/causer/Desktop/seg/stable-diffusion-webui/modules/launch_utils.py", line 432, in start
  8.     import webui
  9.   File "/home/causer/Desktop/seg/stable-diffusion-webui/webui.py", line 13, in <module>
  10.     initialize.imports()
  11.   File "/home/causer/Desktop/seg/stable-diffusion-webui/modules/initialize.py", line 21, in imports
  12.     import gradio  # noqa: F401
  13.   File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/__init__.py", line 3, in <module>
  14.     import gradio.components as components
  15.   File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/components/__init__.py", line 1, in <module>
  16.     from gradio.components.annotated_image import AnnotatedImage
  17.   File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/components/annotated_image.py", line 12, in <module>
  18.     from gradio import utils
  19.   File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/utils.py", line 353, in <module>
  20.     class AsyncRequest:
  21.   File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/gradio/utils.py", line 372, in AsyncRequest
  22.     client = httpx.AsyncClient()
  23.   File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/httpx/_client.py", line 1397, in __init__
  24.     self._transport = self._init_transport(
  25.   File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/httpx/_client.py", line 1445, in _init_transport
  26.     return AsyncHTTPTransport(
  27.   File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/httpx/_transports/default.py", line 275, in __init__
  28.     self._pool = httpcore.AsyncConnectionPool(
  29. TypeError: __init__() got an unexpected keyword argument 'socket_options'
复制代码
办理方法

  1. cd <StableDiffusionPath>
  2. . .\venv\Scripts\activate
  3. pip install -U pip
  4. pip install -U httpcore
  5. python.exe -m pip install --upgrade pip
  6. pip install -U httpx==0.24.1
复制代码
完结!

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

勿忘初心做自己

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表