ToB企服应用市场:ToB评测及商务社交产业平台

标题: Stable Diffusion 启动时 got an unexpected keyword argument ‘socket_op [打印本页]

作者: 勿忘初心做自己    时间: 2024-8-5 19:19
标题: Stable Diffusion 启动时 got an unexpected keyword argument ‘socket_op
题目

  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企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4