Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncConnectionPool - issue #232

Closed
Jelared opened this issue Nov 3, 2023 · 8 comments
Closed

AsyncConnectionPool - issue #232

Jelared opened this issue Nov 3, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@Jelared
Copy link

Jelared commented Nov 3, 2023

import gradio  # noqa: F401

File "D:\Creation - AI\Stability Matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio_init_.py", line 3, in
import gradio.components as components
File "D:\Creation - AI\Stability Matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\components_init_.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "D:\Creation - AI\Stability Matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\components\annotated_image.py", line 12, in
from gradio import utils
File "D:\Creation - AI\Stability Matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 353, in
class AsyncRequest:
File "D:\Creation - AI\Stability Matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 372, in AsyncRequest
client = httpx.AsyncClient()
File "D:\Creation - AI\Stability Matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\httpx_client.py", line 1397, in init
self._transport = self._init_transport(
File "D:\Creation - AI\Stability Matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\httpx_client.py", line 1445, in _init_transport
return AsyncHTTPTransport(
File "D:\Creation - AI\Stability Matrix\Packages\stable-diffusion-webui\venv\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'

Process finished with exit code 1

I need you help ?

@ghost
Copy link

ghost commented Nov 4, 2023

Looks like I'm getting the same after a clean install of StabilityMatrix and SD Web UI, and default launch options:

Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: 1.6.0
Commit hash: <none>
Launching Web UI with arguments: --xformers --api --skip-python-version-check
Traceback (most recent call last):
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\launch.py", line 44, in main
    start()
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\modules\launch_utils.py", line 432, in start
    import webui
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\webui.py", line 13, in <module>
    initialize.imports()
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\modules\initialize.py", line 21, in imports
    import gradio  # noqa: F401
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\__init__.py", line 3, in <module>
    import gradio.components as components
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\components\__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\components\annotated_image.py", line 12, in <module>
    from gradio import utils
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 353, in <module>
    class AsyncRequest:
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 372, in AsyncRequest
    client = httpx.AsyncClient()
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\httpx\_client.py", line 1397, in __init__
    self._transport = self._init_transport(
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\httpx\_client.py", line 1445, in _init_transport
    return AsyncHTTPTransport(
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\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'

Process finished with exit code 1

@ivaxsirc
Copy link

ivaxsirc commented Nov 4, 2023

the same problem, i've tried with the first version 1.0.1, diferent drive folder, nothing works

thks

#> Looks like I'm getting the same after a clean install of StabilityMatrix and SD Web UI, and default launch options:

Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: 1.6.0
Commit hash: <none>
Launching Web UI with arguments: --xformers --api --skip-python-version-check
Traceback (most recent call last):
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\launch.py", line 44, in main
    start()
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\modules\launch_utils.py", line 432, in start
    import webui
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\webui.py", line 13, in <module>
    initialize.imports()
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\modules\initialize.py", line 21, in imports
    import gradio  # noqa: F401
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\__init__.py", line 3, in <module>
    import gradio.components as components
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\components\__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\components\annotated_image.py", line 12, in <module>
    from gradio import utils
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 353, in <module>
    class AsyncRequest:
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 372, in AsyncRequest
    client = httpx.AsyncClient()
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\httpx\_client.py", line 1397, in __init__
    self._transport = self._init_transport(
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\lib\site-packages\httpx\_client.py", line 1445, in _init_transport
    return AsyncHTTPTransport(
  File "K:\Program Files\StabilityMatrix\Packages\stable-diffusion-webui\venv\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'

Process finished with exit code 1

@CircleD5
Copy link

CircleD5 commented Nov 4, 2023

I also get the same problem after a clean install

Is this the cause?
AUTOMATIC1111/stable-diffusion-webui#13840

@ghost
Copy link

ghost commented Nov 4, 2023

I also get the same problem after a clean install

Is this the cause? AUTOMATIC1111/stable-diffusion-webui#13840

Ah yes, looks like it'll be fixed when they tag v1.6.1.

@CircleD5
Copy link

CircleD5 commented Nov 4, 2023

OK, I found, by selecting the Master branch when installing automatic1111 webui with StablityMatrix, the above error no longer occurs!

@CircleD5
Copy link

CircleD5 commented Nov 4, 2023

If you want to use an older version of Webui,
First go to the Webui folder already installed using CMD, activate the venv environment and run the command "pip install httpx==0.24.1". (For more detailed instructions, please see the Automatic1111 bug report above.)

@mohnjiles
Copy link
Contributor

Hi folks, sorry about that, seems to be an issue with the 1.6.0 version of A1111's webUI. We should have a fix for this in the next update. In the meantime, you can try the fix mentioned above, by installing httpx it should fix the issue.

@mohnjiles mohnjiles added the bug Something isn't working label Nov 5, 2023
@mohnjiles
Copy link
Contributor

This should be fixed as of the latest v2.6.0 version of Stability Matrix. Please feel free to reopen this issue if the problem persists. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants