-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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]: error when running webui.sh #13236
[Bug]: error when running webui.sh #13236
Comments
have the same question 😭 |
Resolved this issue by updating SD v1.6 |
Thank you for your quick reply! |
I fixed it with pip install -U pip
pip install -U httpcore |
Thanks for everyone so much, but all the modifications are not useful to me. 😭 |
Solution: Create conda environment: Edit the following line of webui-user.sh: Run: |
Solution that ended up working form me:
#13054 might be related |
cd stable-diffusion-webui && source venv/bin/activate
pip3 install httpx==0.24.1 |
The wiki for webui helps for showing installation on linux, apt install python3.10-venv and make a venv with python3.10 if your system version is different. https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs#linux |
It works for me! Thanks. |
I got this error when I tried doing the following:
Then, I systematically tried all of the fixes suggested in this thread, but none of them worked: I tried installing Python 3.10 by following this guide (Option 1), then adding an alias to my Then I activated the virtual environment by running source venv/bin/activate and I ran the following two commands:
After these commands, I got the following error. Here's the traceback:
I then tried pip3 install httpx==0.24.1 (still while inside the venv). It didn't fix the error above. Since I got this error as a consequence of solving the original error in this thread, I am posting this here. I re-created this issue on multiple machines (I am using vast.ai). Does someone have a fix for this? |
#12884 (comment) This solved TypeError: 'type' object is not subscriptable. I assume same I previously got this error also because of wrong py version. Make sure you are on 3.10+ |
That worked for me, but I just needed that: |
hi, could you please explain where should i type those text? |
in terminal. Also experiencing this bug for the first time today. |
I have the same bug today. Anyone have advice how to solve it in Google Colab? Ive tried some of the above but get syntax errors. Do I have to reinstall my entire Stable Diffusion/ Python environment? I am a newbie, so treating me like the infant I am in explanations would be much appreciated. |
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)
Hello! I have a NVIDIA Quadro RTX 6000, and i have the same error message : " TypeError: AsyncConnectionPool.init() got an unexpected keyword argument 'socket_options' ". I tried the solutions mentioned above but it doesn't seem to work for me. If anyone have an other solution that would be great. Thanks |
in google colab add these 2 line work for me |
And when it's not on google Colab? Because for me i run it locally and i tried everything but it doesn't work |
Just had this issue. I installed it yesterday and it was working fine. I deleted venv and reinstalled today and it started giving me this error. Can confirm this fixed it for me.
|
I'm getting this same error/problem with a fresh install of automatic1111 after installing python 3.10.6. None of the above has worked. Any ideas much appreciated. |
저는 이런 방법으로 해결 했다 안에서 275번째 줄 self._pool = httpcore.AsyncConnectionPool 이줄을 제거 하고 난뒤에 되었다 Line 275 in self._pool = httpcore.AsyncConnectionPool This happened after I removed this line: |
venv "E:\stable-diffusion-webui\venv\Scripts\Python.exe" Same problem. Anyone know how to solve it? |
E:\stable-diffusion-webui\venv\lib\site-packages\httpx_transports 로 가시면 275번째 줄로가면 거기에 제일 아랫줄에 가면 |
only manually, need to test a proper fix, I think it should be as simple as setting correct version in requirements_versions.txt but my python-fu is weak so I'm unsure |
E:\stable-diffusion-webui\venv\lib\site-packages\httpx_transports 로 가시면 275번째 줄로가면 거기에 제일 아랫줄에 가면 이렇게 하니까 되네! 고마워 |
모얏! 내가 먼저 발견 했다구우! |
thank you very much!! |
yes, I think this fix works, who usually reviews and merges pull requests around here? oh well, someone will get around to it I'm sure |
E:\stable-diffusion-webui\venv\lib\site-packages\httpx_transports 로시면 275번째 줄로가면 저기에 제일줄에 |
We will find a way. we always have. |
ah, change already made, get latest should be problem solved |
I just solved the problem with the command above. !pip install httpx==0.24.1 |
For future messups, one can simply just add "httpx==0.24.1" to requirements.txt, right? |
I'm trying to run it on CPU in huggingface and got the same error but changing it in the requirements results in a build error. Version httpcore==0.24.1 is unavailable from the list of versions 0.01-1.0.2 |
I am not a coding guy, but i've read this thread and tried to repeat the process from @huntchar And it helps in my case. Open file: \stable-diffusion-webui\venv\Lib\site-packages\httpx_transports\default.py Code looks like that:
Remove last line, socket_options=socket_options, save the file. |
For anybody that is experiencing this problem on Windows, open a CMD in your main SD web-ui folder, then run these two commands:
|
Does not work for me:
|
where am i uspposed to type this? |
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)
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)
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)
no funciona ni una solucion, bravo, inservible |
la unica manera de arraglar esto es seleccionar la carpetira y SUPRIMIR; listo, se acabó el problema, cortar el sida este que no funciona 😎 |
This fixed sd web for me. With the issue "TypeError: AsyncConnectionPool.init() got an unexpected keyword argument 'socket_options'" |
I have the same problem, tried all of the suggestions above. |
Is there an existing issue for this?
What happened?
Clone this repository (1.6) and it doesn't work.
Steps to reproduce the problem
What should have happened?
The model should run...
Sysinfo
Ubuntu20.04
What browsers do you use to access the UI ?
No response
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: