AI绘画专栏之statble diffusion SDXL 紧急通知!!SD秋叶启动器1104报错修复 这是个bug(二十)

如果你的启动器在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.0Commit hash: 5ef669de080814067961f28357256e8fe27544f4Launching Web UI with arguments: --theme dark --xformers --upcast-sampling --no-half-vae --opt-channelslast --api --autolaunchTraceback (most recent call last):  File "E:\sd-webui-aki\sd-webui-aki-v4\launch.py", line 48, in <module>    main()  File "E:\sd-webui-aki\sd-webui-aki-v4\launch.py", line 44, in main    start()  File "E:\sd-webui-aki\sd-webui-aki-v4\modules\launch_utils.py", line 432, in start    import webui  File "E:\sd-webui-aki\sd-webui-aki-v4\webui.py", line 13, in <module>    initialize.imports()  File "E:\sd-webui-aki\sd-webui-aki-v4\modules\initialize.py", line 21, in imports    import gradio  # noqa: F401  File "E:\sd-webui-aki\sd-webui-aki-v4\py310\lib\site-packages\gradio\__init__.py", line 3, in <module>    import gradio.components as components  File "E:\sd-webui-aki\sd-webui-aki-v4\py310\lib\site-packages\gradio\components\__init__.py", line 1, in <module>    from gradio.components.annotated_image import AnnotatedImage  File "E:\sd-webui-aki\sd-webui-aki-v4\py310\lib\site-packages\gradio\components\annotated_image.py", line 12, in <module>    from gradio import utils  File "E:\sd-webui-aki\sd-webui-aki-v4\py310\lib\site-packages\gradio\utils.py", line 353, in <module>    class AsyncRequest:  File "E:\sd-webui-aki\sd-webui-aki-v4\py310\lib\site-packages\gradio\utils.py", line 372, in AsyncRequest    client = httpx.AsyncClient()  File "E:\sd-webui-aki\sd-webui-aki-v4\py310\lib\site-packages\httpx\_client.py", line 1397, in __init__    self._transport = self._init_transport(  File "E:\sd-webui-aki\sd-webui-aki-v4\py310\lib\site-packages\httpx\_client.py", line 1445, in _init_transport    return AsyncHTTPTransport(  File "E:\sd-webui-aki\sd-webui-aki-v4\py310\lib\site-packages\httpx\_transports\default.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
复制
.\venv\Scripts\Activate.ps1pip install httpx==0.24.1

3、如果使用cmd命令

代码语言:javascript
复制
venv\Scripts\activatepip 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腾讯技术创作特训营第三期有奖征文,组队打卡瓜分大奖!