当前位置:   article > 正文

紧急通知!!SD秋叶启动器1104报错修复 这是个bug_sd程序异常退出,退出代码为1

sd程序异常退出,退出代码为1

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

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、尝试运行如下命令

pip install -U pippip install -U httpcore

2、如果使用power shell命令

.\venv\Scripts\Activate.ps1pip install httpx==0.24.1

3、如果使用cmd命令

venv\Scripts\activatepip install httpx==0.24.1

4、如果你是Linux

source venv/bin/activatepip install httpx==0.24.1

5、或者

增加这行在requirements.txt

requirements_versions httpx==0.24.1 

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

图片

超多AI合集已整理到https://yv4kfv1n3j.feishu.cn/docx/MRyxdaqz8ow5RjxyL1ucrvOYnnH

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/730864
推荐阅读
相关标签
  

闽ICP备14008679号