AI绘画专栏之statble diffusion SD秋叶启动器1104报错修复 这是个bug(十九)

2023-11-13 13:42:46 浏览数 (1)

如果你的启动器在1104启动遇到如下错误请参考

代码语言:javascript复制
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Launching Web UI with arguments: --theme dark --xformers --upcast-sampling --no-half-vae --opt-channelslast --api --autolaunch
Traceback (most recent call last):
  File "E:sd-webui-akisd-webui-aki-v4launch.py", line 48, in <module>
    main()
  File "E:sd-webui-akisd-webui-aki-v4launch.py", line 44, in main
    start()
  File "E:sd-webui-akisd-webui-aki-v4moduleslaunch_utils.py", line 432, in start
    import webui
  File "E:sd-webui-akisd-webui-aki-v4webui.py", line 13, in <module>
    initialize.imports()
  File "E:sd-webui-akisd-webui-aki-v4modulesinitialize.py", line 21, in imports
    import gradio  # noqa: F401
  File "E:sd-webui-akisd-webui-aki-v4py310libsite-packagesgradio__init__.py", line 3, in <module>
    import gradio.components as components
  File "E:sd-webui-akisd-webui-aki-v4py310libsite-packagesgradiocomponents__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "E:sd-webui-akisd-webui-aki-v4py310libsite-packagesgradiocomponentsannotated_image.py", line 12, in <module>
    from gradio import utils
  File "E:sd-webui-akisd-webui-aki-v4py310libsite-packagesgradioutils.py", line 353, in <module>
    class AsyncRequest:
  File "E:sd-webui-akisd-webui-aki-v4py310libsite-packagesgradioutils.py", line 372, in AsyncRequest
    client = httpx.AsyncClient()
  File "E:sd-webui-akisd-webui-aki-v4py310libsite-packageshttpx_client.py", line 1397, in __init__
    self._transport = self._init_transport(
  File "E:sd-webui-akisd-webui-aki-v4py310libsite-packageshttpx_client.py", line 1445, in _init_transport
    return AsyncHTTPTransport(
  File "E:sd-webui-akisd-webui-aki-v4py310libsite-packageshttpx_transportsdefault.py", line 275, in __init__
    self._pool = httpcore.AsyncConnectionPool(
TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument 'socket_options'
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。

--------

[程序崩溃,退出代码为 1 (0x00000001)]

我在SD官方网站提了issue

解决方案:

1、尝试运行如下命令

代码语言:javascript复制
pip install -U pippip install -U httpcore

2、如果使用power shell命令

代码语言:javascript复制
.venvScriptsActivate.ps1pip install httpx==0.24.1

3、如果使用cmd命令

代码语言:javascript复制
venvScriptsactivatepip install httpx==0.24.1

4、如果你是Linux

代码语言:javascript复制
source venv/bin/activatepip install httpx==0.24.1

5、或者

增加这行在requirements.txt

requirements_versions httpx==0.24.1 

终极解决方案升级版本,这个bug

我正在参与2023腾讯技术创作特训营第三期有奖征文,组队打卡瓜分大奖!

0 人点赞