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]: Unable to Launch Web UI #13836

Closed
1 task done
TheMindExpansionNetwork opened this issue Nov 3, 2023 · 14 comments
Closed
1 task done

[Bug]: Unable to Launch Web UI #13836

TheMindExpansionNetwork opened this issue Nov 3, 2023 · 14 comments
Labels
bug Report of a confirmed bug bug-report Report of a bug, yet to be confirmed

Comments

@TheMindExpansionNetwork
Copy link

TheMindExpansionNetwork commented Nov 3, 2023

Update: fix has been pushed to master

please update your webui version if you are affected

the section of was added by moderator


Is there an existing issue for this?

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

What happened?

root@73e25dae56a5:/workspace/stable-diffusion-webui# python launch.py --xformers --share --api
Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]
Version: v1.6.0-264-g8052a497
Commit hash: 8052a49
Installing requirements
Launching Web UI with arguments: --xformers --share --api
Traceback (most recent call last):
File "/workspace/stable-diffusion-webui/launch.py", line 48, in
main()
File "/workspace/stable-diffusion-webui/launch.py", line 44, in main
start()
File "/workspace/stable-diffusion-webui/modules/launch_utils.py", line 432, in start
import webui
File "/workspace/stable-diffusion-webui/webui.py", line 13, in
initialize.imports()
File "/workspace/stable-diffusion-webui/modules/initialize.py", line 21, in imports
import gradio # noqa: F401
File "/usr/local/lib/python3.10/dist-packages/gradio/init.py", line 3, in
import gradio.components as components
File "/usr/local/lib/python3.10/dist-packages/gradio/components/init.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "/usr/local/lib/python3.10/dist-packages/gradio/components/annotated_image.py", line 12, in
from gradio import utils
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 353, in
class AsyncRequest:
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 372, in AsyncRequest
client = httpx.AsyncClient()
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1397, in init
self._transport = self._init_transport(
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1445, in _init_transport
return AsyncHTTPTransport(
File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", line 275, in init
self._pool = httpcore.AsyncConnectionPool(
TypeError: AsyncConnectionPool.init() got an unexpected keyword argument 'socket_options'
root@73e25dae56a5:/workspace/stable-diffusion-webui#

Steps to reproduce the problem

I atttempt to start runpod

Go to launch.py

then put in my stuff

get that error

What should have happened?

should be working was fine last few daysthe

Sysinfo

Not sure how to get this on runpod

What browsers do you use to access the UI ?

No response

Console logs

[notice] A new release of pip is available: 23.1.2 -> 23.3.1
[notice] To update, run: python -m pip install --upgrade pip
root@73e25dae56a5:/workspace/stable-diffusion-webui# python launch.py --dump-sysinfo
Traceback (most recent call last):
  File "/workspace/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/workspace/stable-diffusion-webui/launch.py", line 29, in main
    filename = launch_utils.dump_sysinfo()
  File "/workspace/stable-diffusion-webui/modules/launch_utils.py", line 440, in dump_sysinfo
    from modules import sysinfo
  File "/workspace/stable-diffusion-webui/modules/sysinfo.py", line 13, in <module>
    from modules import paths_internal, timer, shared, extensions, errors
  File "/workspace/stable-diffusion-webui/modules/shared.py", line 3, in <module>
    import gradio as gr
  File "/usr/local/lib/python3.10/dist-packages/gradio/__init__.py", line 3, in <module>
    import gradio.components as components
  File "/usr/local/lib/python3.10/dist-packages/gradio/components/__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "/usr/local/lib/python3.10/dist-packages/gradio/components/annotated_image.py", line 12, in <module>
    from gradio import utils
  File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 353, in <module>
    class AsyncRequest:
  File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 372, in AsyncRequest
    client = httpx.AsyncClient()
  File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1397, in __init__
    self._transport = self._init_transport(
  File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1445, in _init_transport
    return AsyncHTTPTransport(
  File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", line 275, in __init__
    self._pool = httpcore.AsyncConnectionPool(
TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument 'socket_options'
root@73e25dae56a5:/workspace/stable-diffusion-webui#

Additional information

No response

@TheMindExpansionNetwork TheMindExpansionNetwork added the bug-report Report of a bug, yet to be confirmed label Nov 3, 2023
@Alex212192
Copy link

have the same issue, truing to launch my automatic.
downloaded fully clear new version and have some issue.
Launching Web UI with arguments:
Traceback (most recent call last):
File "I:\SD\stable-diffusion-webui\launch.py", line 48, in
main()
File "I:\SD\stable-diffusion-webui\launch.py", line 44, in main
start()
File "I:\SD\stable-diffusion-webui\modules\launch_utils.py", line 432, in start
import webui
File "I:\SD\stable-diffusion-webui\webui.py", line 13, in
initialize.imports()
File "I:\SD\stable-diffusion-webui\modules\initialize.py", line 21, in imports
import gradio # noqa: F401
File "I:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio_init_.py", line 3, in
import gradio.components as components
File "I:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\components_init_.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "I:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\components\annotated_image.py", line 12, in
from gradio import utils
File "I:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 353, in
class AsyncRequest:
File "I:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 372, in AsyncRequest
client = httpx.AsyncClient()
File "I:\SD\stable-diffusion-webui\venv\lib\site-packages\httpx_client.py", line 1397, in init
self._transport = self._init_transport(
File "I:\SD\stable-diffusion-webui\venv\lib\site-packages\httpx_client.py", line 1445, in _init_transport
return AsyncHTTPTransport(
File "I:\SD\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'

@alex-des-santos
Copy link

Same problem here:

Installing requirements
Launching Web UI with arguments: --xformers

What happened?
Clone this repository (1.6) and it doesn't work.

Steps to reproduce the problem
git clone sd-webui auto1111 recent repo (1.6)
webui-user.bat
error pops up
What should have happened?
The model should run...

Sysinfo
Windows 11 22H2

What browsers do you use to access the UI ?
No response

Already up to date.
venv "J:\SD\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669d
Launching Web UI with arguments: --xformers
Traceback (most recent call last):
File "J:\SD\stable-diffusion-webui\launch.py", line 48, in
main()
File "J:\SD\stable-diffusion-webui\launch.py", line 44, in main
start()
File "J:\SD\stable-diffusion-webui\modules\launch_utils.py", line 432, in start
import webui
File "J:\SD\stable-diffusion-webui\webui.py", line 13, in
initialize.imports()
File "J:\SD\stable-diffusion-webui\modules\initialize.py", line 21, in imports
import gradio # noqa: F401
File "J:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio_init_.py", line 3, in
import gradio.components as components
File "J:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\components_init_.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "J:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\components\annotated_image.py", line 12, in
from gradio import utils
File "J:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 353, in
class AsyncRequest:
File "J:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 372, in AsyncRequest
client = httpx.AsyncClient()
File "J:\SD\stable-diffusion-webui\venv\lib\site-packages\httpx_client.py", line 1397, in init
self._transport = self._init_transport(
File "J:\SD\stable-diffusion-webui\venv\lib\site-packages\httpx_client.py", line 1445, in _init_transport
return AsyncHTTPTransport(
File "J:\SD\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'

@Timendus
Copy link

Timendus commented Nov 3, 2023

This worked for me:

#13236 (comment)

@Alex212192
Copy link

This worked for me:

#13236 (comment)

should i past it in cmd window which i opened at sd folder?

@Alex212192
Copy link

image

@Alex212192
Copy link

maybe i diddnt understand what exactly should i type in cmd... what is mean && for CVD?

@BenjaminIrwin
Copy link

Adding the line httpx==0.24.1 to requirements_versions.txt worked for me.

@Alex212192
Copy link

also works for me, thanks!

@TheMindExpansionNetwork
Copy link
Author

Adding the line httpx==0.24.1 to requirements_versions.txt worked for me.

hahahahahah I was going to say this

We all are amazing I am doing a big expo thing having bots displayed soooooooo like dammmmmmmmn

smourph added a commit to smourph/stable-diffusion-webui-docker that referenced this issue Nov 3, 2023
Error:
  File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/httpx/_transports/default.py", line 275, in __init__
    self._pool = httpcore.AsyncConnectionPool(
TypeError: __init__() got an unexpected keyword argument 'socket_options'

See:
AUTOMATIC1111/stable-diffusion-webui#13836
AUTOMATIC1111/stable-diffusion-webui#13236 (comment)
@liao0001
Copy link

liao0001 commented Nov 3, 2023

Adding the line httpx==0.24.1 to requirements_versions.txt worked for me.

Me too

@w-e-w w-e-w added the bug Report of a confirmed bug label Nov 3, 2023
@alex-des-santos
Copy link

Adding the line httpx==0.24.1 to requirements_versions.txt worked for me.

Worked Here too. Thanks.

@w-e-w
Copy link
Collaborator

w-e-w commented Nov 3, 2023

manual fix guide #13840

@w-e-w
Copy link
Collaborator

w-e-w commented Nov 3, 2023

Update fix has been pushed to master

please update your webui version if you are affected

@w-e-w w-e-w closed this as completed Nov 3, 2023
smourph added a commit to smourph/stable-diffusion-webui-docker that referenced this issue Dec 5, 2023
Error:
  File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/httpx/_transports/default.py", line 275, in __init__
    self._pool = httpcore.AsyncConnectionPool(
TypeError: __init__() got an unexpected keyword argument 'socket_options'

See:
AUTOMATIC1111/stable-diffusion-webui#13836
AUTOMATIC1111/stable-diffusion-webui#13236 (comment)
smourph added a commit to smourph/stable-diffusion-webui-docker that referenced this issue Dec 5, 2023
Error:
  File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/httpx/_transports/default.py", line 275, in __init__
    self._pool = httpcore.AsyncConnectionPool(
TypeError: __init__() got an unexpected keyword argument 'socket_options'

See:
AUTOMATIC1111/stable-diffusion-webui#13836
AUTOMATIC1111/stable-diffusion-webui#13236 (comment)
smourph added a commit to smourph/stable-diffusion-webui-docker that referenced this issue Dec 14, 2023
Error:
  File "/home/causer/Desktop/seg/stable-diffusion-webui/venv/lib/python3.8/site-packages/httpx/_transports/default.py", line 275, in __init__
    self._pool = httpcore.AsyncConnectionPool(
TypeError: __init__() got an unexpected keyword argument 'socket_options'

See:
AUTOMATIC1111/stable-diffusion-webui#13836
AUTOMATIC1111/stable-diffusion-webui#13236 (comment)
@worisur
Copy link

worisur commented Sep 10, 2024

the same problem , but I can't fix it

Launching launch.py...
################################################################
glibc version is 2.40
Check TCMalloc: libtcmalloc_minimal.so.4
libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/usr/lib/libtcmalloc_minimal.so.4
Python 3.10.14 (main, Sep 4 2024, 12:07:11) [GCC 14.2.1 20240805]
Version: v1.10.1
Commit hash: 82a973c
Launching Web UI with arguments:
Traceback (most recent call last):
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/launch.py", line 48, in
main()
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/launch.py", line 44, in main
start()
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/modules/launch_utils.py", line 465, in start
import webui
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/webui.py", line 13, in
initialize.imports()
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/modules/initialize.py", line 23, in imports
import gradio # noqa: F401
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/init.py", line 3, in
import gradio.components as components
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components/init.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 12, in
from gradio import utils
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/utils.py", line 353, in
class AsyncRequest:
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/utils.py", line 372, in AsyncRequest
client = httpx.AsyncClient()
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_client.py", line 1395, in init
proxy_map = self._get_proxy_map(proxies, allow_env_proxies)
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_client.py", line 216, in _get_proxy_map
return {
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_client.py", line 217, in
key: None if url is None else Proxy(url=url)
File "/home/1.worisur/1.tools/1.ai/01.sd/stable-diffusion-webui/venv/lib/python3.10/site-packages/httpx/_config.py", line 336, in init
raise ValueError(f"Unknown scheme for proxy URL {url!r}")
ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:17897/')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of a confirmed bug bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

8 participants