새소식

반응형
생성AI/Stable Diffusion

TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument 'socket_options'

  • -
반응형

stable diffusion webui 실행시 아래와 같은 오류가 난다면

(TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument 'socket_options')

Traceback (most recent call last):
  File "/home/interx/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/home/interx/stable-diffusion-webui/launch.py", line 44, in main
    start()
  File "/home/interx/stable-diffusion-webui/modules/launch_utils.py", line 432, in start
    import webui
  File "/home/interx/stable-diffusion-webui/webui.py", line 13, in <module>
    initialize.imports()
  File "/home/interx/stable-diffusion-webui/modules/initialize.py", line 21, in imports
    import gradio  # noqa: F401
    ^^^^^^^^^^^^^
  File "/home/interx/anaconda3/envs/stable/lib/python3.11/site-packages/gradio/__init__.py", line 3, in <module>
    import gradio.components as components
  File "/home/interx/anaconda3/envs/stable/lib/python3.11/site-packages/gradio/components/__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "/home/interx/anaconda3/envs/stable/lib/python3.11/site-packages/gradio/components/annotated_image.py", line 12, in <module>
    from gradio import utils
  File "/home/interx/anaconda3/envs/stable/lib/python3.11/site-packages/gradio/utils.py", line 353, in <module>
    class AsyncRequest:
  File "/home/interx/anaconda3/envs/stable/lib/python3.11/site-packages/gradio/utils.py", line 372, in AsyncRequest
    client = httpx.AsyncClient()
             ^^^^^^^^^^^^^^^^^^^
  File "/home/interx/anaconda3/envs/stable/lib/python3.11/site-packages/httpx/_client.py", line 1397, in __init__
    self._transport = self._init_transport(
                      ^^^^^^^^^^^^^^^^^^^^^
  File "/home/interx/anaconda3/envs/stable/lib/python3.11/site-packages/httpx/_client.py", line 1445, in _init_transport
    return AsyncHTTPTransport(
           ^^^^^^^^^^^^^^^^^^^
  File "/home/interx/anaconda3/envs/stable/lib/python3.11/site-packages/httpx/_transports/default.py", line 275, in __init__
    self._pool = httpcore.AsyncConnectionPool(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument 'socket_options'
반응형

 

밑의 httpx 버전을 설치해보자.

pip install httpx==0.24.1
반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.