-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
TypeError: AsyncConnectionPool.__init__(), new install bug, httpx==0.24.1 #13840
Comments
THX!!! |
Not fix on mine, it still got the same TypeError |
Re-cloned from lshqqytiger/stable-diffusion-webui-directml However, same TypeError occurs Some of the log: Installing collected packages: mpmath, urllib3, typing-extensions, sympy, pillow, numpy, networkx, MarkupSafe, idna, filelock, charset-normalizer, certifi, requests, jinja2, torch, torchvision, torch-directml Launching Web UI with arguments: --onnx --backend directml |
Colab user can do: !source venv/bin/activate
!pip install httpx==0.24.1 |
httpx v0.25.x is causing issues with reports of an __init__ method not working as expected, I noticed that stable diffusion has the same issue AUTOMATIC1111/stable-diffusion-webui#13840 downgrading to v0.24 to stabalise tests and upgrade when it works, also falling back to py3.11
Unfortunately, I still get the following error: Launching Web UI with arguments: --onnx --backend directml |
I believe I solved it by using the same command listed above “venv\Scripts\activate (venv) (base) C:\Windows\System32\stable-diffusion-webui-directml>pip install httpx==0.24.1 |
Thank you for letting me, an average and basic player, still feel the beauty of technology. Although I used venv\Scripts\activate, pip install httpx==0.24.1 in cmd, it couldn't find the path, so I used txt instead and I was able to launch it successfully, thank you very much |
I still get this error even with the correct httpx version. The current requirements file actually pins httpcore to the incorrect version. httpx pinned to 0.24.1 requires httpcore>=0.17.2. Pin both of those packages to the right versions in requirements_onnx and requirements_versions and the install will succeed. |
@nanodan what ahh I see the directml fork https://github.com/lshqqytiger/stable-diffusion-webui-directml/blob/master/requirements_onnx.txt you confusing the base webui with directML fork, if this is an issue you should open an issue at there page |
@w-e-w you're right my apologies, I had about 30 tabs open and commented in the wrong thread! |
I had the same issue with directML. after installing httpx==0.24.1 in cmd I went to C:\Users(username)\AppData\Local\Programs\Python\Python310\Lib\site-packages, copied the following four folders: httpcore, httpcore-0.17.3-dist-info, httpx, httpx-0.24.1dist-info. Then I went to C:(folder name)\stable-diffusion-webui-directml\venv\Lib\site-packages, and there should be four folders there named similarly but different versions. I deleted those and pasted in the new ones. After doing this, webui-user was working again. Sorry if this makes no sense I know nothing about computers, but I hope your issue gets resolved if it hasn't been already |
thank you very much for solving my problem! |
Use a specific version of httpx that works with our version of gradio solution found in AUTOMATIC1111/stable-diffusion-webui#13840
Update fix has been pushed to master
please update your webui version if you are affected
issue #13836
starting around 2 hours ago any new installation of webui will not be able to launch
if you see an error like this
the issue is caused by an updates to an external dependency httpx
webui works version
0.24.1
, but due to some external changes the package automatically installed by webui is0.25.1
a fix PR has already been made and hopefully this issue will get resolved soon
but until then to those who are affected please follow the following steps to resolve the issue yourself
there's two method of resolving the issues for yourself
method 1 manually installing the correct version of
httpx
the can be done by running a pip command in the webui's python environment
from the webui root the following commands
if using powershell on windwos
if using cmd on windows
venv\Scripts\activate pip install httpx==0.24.1
if using linux
source venv/bin/activate pip install httpx==0.24.1
method 2: manually modify webui's requirements
and and let webui installed the correct version
open
stable-diffusion-webui/requirements_versions.txt
and addhttpx==0.24.1
to bottom and launch webui it should now start successfullythe file should look like this
stable-diffusion-webui/requirements_versions.txt
Lines 30 to 32 in cc80a09
after webui has launched successfully, remember to remove the modifications
otherwise you might have trouble updating webui in the future
you can either manually restore the modification (using
ctrl +z
and save)or by running thes git command
or
The text was updated successfully, but these errors were encountered: