Skip to content

TypeError: AsyncConnectionPool.__init__(), new install bug, httpx==0.24.1 #13840

@w-e-w

Description

@w-e-w

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

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

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 is 0.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

.\venv\Scripts\Activate.ps1
pip install httpx==0.24.1

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

this is for those who don't know how to run commands

open stable-diffusion-webui/requirements_versions.txt and add httpx==0.24.1 to bottom and launch webui it should now start successfully

the file should look like this

torchsde==0.2.6
transformers==4.30.2
httpx==0.24.1

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

git restore requirements_versions.txt

or

git reset --hard

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions