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

[Bug]: AsyncConnectionPool #193

Closed
1 task done
offmybach opened this issue Nov 3, 2023 · 2 comments
Closed
1 task done

[Bug]: AsyncConnectionPool #193

offmybach opened this issue Nov 3, 2023 · 2 comments

Comments

@offmybach
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

Keep getting this error when trying to load. this is a clean install of win11 pro and should have no conflicts. Python 3.10.6, Pytorch 2.0.1., and Cuda 11.8. Have no other SD installs. I was gonna give your new work a try first before using A1111 and comfy.

from gradio.components.annotated_image import AnnotatedImage
File "C:\Users\mdmen\stable-diffusion-webui-ux\venv\lib\site-packages\gradio\components\annotated_image.py", line 12, in
from gradio import utils
File "C:\Users\mdmen\stable-diffusion-webui-ux\venv\lib\site-packages\gradio\utils.py", line 353, in
class AsyncRequest:
File "C:\Users\mdmen\stable-diffusion-webui-ux\venv\lib\site-packages\gradio\utils.py", line 372, in AsyncRequest
client = httpx.AsyncClient()
File "C:\Users\mdmen\stable-diffusion-webui-ux\venv\lib\site-packages\httpx_client.py", line 1397, in init
self._transport = self._init_transport(
File "C:\Users\mdmen\stable-diffusion-webui-ux\venv\lib\site-packages\httpx_client.py", line 1445, in _init_transport
return AsyncHTTPTransport(
File "C:\Users\mdmen\stable-diffusion-webui-ux\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'
Press any key to continue . . .

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...
    run the bat file

What should have happened?

app loaded

Sysinfo

i dont know how to do this? please message back if need it. im a novice when it comes to code.

What browsers do you use to access the UI ?

No response

Console logs

venv "C:\Users\mdmen\stable-diffusion-webui-ux\venv\Scripts\Python.exe"
fatal: No names found, cannot describe anything.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.6.0
Commit hash: 9e3ef7b2a8161139bfda18ff57929e3e40fcb580
Installing xformers
Launching Web UI with arguments: --allow-code --xformers --skip-torch-cuda-test --no-half-vae --api --ckpt-dir A:\stable-diffusion-checkpoints
Traceback (most recent call last):
  File "C:\Users\mdmen\stable-diffusion-webui-ux\launch.py", line 48, in <module>
    main()
  File "C:\Users\mdmen\stable-diffusion-webui-ux\launch.py", line 44, in main
    start()
  File "C:\Users\mdmen\stable-diffusion-webui-ux\modules\launch_utils.py", line 432, in start
    import webui
  File "C:\Users\mdmen\stable-diffusion-webui-ux\webui.py", line 13, in <module>
    initialize.imports()
  File "C:\Users\mdmen\stable-diffusion-webui-ux\modules\initialize.py", line 21, in imports
    import gradio  # noqa: F401
  File "C:\Users\mdmen\stable-diffusion-webui-ux\venv\lib\site-packages\gradio\__init__.py", line 3, in <module>
    import gradio.components as components
  File "C:\Users\mdmen\stable-diffusion-webui-ux\venv\lib\site-packages\gradio\components\__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "C:\Users\mdmen\stable-diffusion-webui-ux\venv\lib\site-packages\gradio\components\annotated_image.py", line 12, in <module>
    from gradio import utils
  File "C:\Users\mdmen\stable-diffusion-webui-ux\venv\lib\site-packages\gradio\utils.py", line 353, in <module>
    class AsyncRequest:
  File "C:\Users\mdmen\stable-diffusion-webui-ux\venv\lib\site-packages\gradio\utils.py", line 372, in AsyncRequest
    client = httpx.AsyncClient()
  File "C:\Users\mdmen\stable-diffusion-webui-ux\venv\lib\site-packages\httpx\_client.py", line 1397, in __init__
    self._transport = self._init_transport(
  File "C:\Users\mdmen\stable-diffusion-webui-ux\venv\lib\site-packages\httpx\_client.py", line 1445, in _init_transport
    return AsyncHTTPTransport(
  File "C:\Users\mdmen\stable-diffusion-webui-ux\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'
Press any key to continue . . .

Additional information

No response

@anapnoe
Copy link
Owner

anapnoe commented Nov 3, 2023

you can try this if it helps

cd stable-diffusion-webui-ux && source venv/bin/activate
pip3 install httpx==0.24.1 

@anapnoe
Copy link
Owner

anapnoe commented Nov 3, 2023

issue seems that has been fixed reinstall latest commit
best regards

@anapnoe anapnoe closed this as completed Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants