stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: After updating to v1.6.0, WebUI no longer launches
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
After updating to 1.6.0 I cannot launch Stable Diffusion WebUI, and I cannot install new requirements (if any) since they have some clashes between them.
Steps to reproduce the problem
Open WebUI.bat [Windows]
What should have happened?
Launches
Sysinfo
cannot do the command as it gives the same error
What browsers do you use to access the UI ?
Google Chrome
Console logs
Error:
> Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)]
> Version: v1.6.0
> Commit hash: 5ef669de080814067961f28357256e8fe27544f4
> Installing SD-CN-Animation requirement: scikit-image
> Launching Web UI with arguments:
> no module 'xformers'. Processing without...
> no module 'xformers'. Processing without...
> Traceback (most recent call last):
> File "launch.py", line 48, in <module>
> main()
> File "launch.py", line 44, in main
> start()
> File "path\to\stable-diffusion-webui\modules\launch_utils.py", line 432, in start
> import webui
> File "path\to\stable-diffusion-webui\webui.py", line 13, in <module>
> initialize.imports()
> File "path\to\stable-diffusion-webui\modules\initialize.py", line 33, in imports
> from modules import shared_init
> File "path\to\stable-diffusion-webui\modules\shared_init.py", line 5, in <module>
> from modules import shared
> File "path\to\stable-diffusion-webui\modules\shared.py", line 5, in <module>
> from modules import shared_cmd_options, shared_gradio_themes, options, shared_items, sd_models_types
> File "path\to\stable-diffusion-webui\modules\options.py", line 74, in <module>
> class Options:
> File "path\to\stable-diffusion-webui\modules\options.py", line 77, in Options
> def __init__(self, data_labels: dict[str, OptionInfo], restricted_opts):
> TypeError: 'type' object is not subscriptable
> Press any key to continue . . .
Additional information
No response
webui is tested for pythin 3.10.6 not 3.8.5, it is very likely that you will face some strange things because of that
it could also be an extension issue, manually remove all of them by moving the extensions directory to test
I saw in Readme that python 3.10 is not supported by torch so I used 3.8. I will try again.
what?? where did you read that????????
I saw in Readme that python 3.10 is not supported by torch so I used 3.8. I will try again.
what?? where did you read that????????
I deleted the comment because I read it wrong
I also have a problem with v1.6.0 the problem seems to be related to gradio probably has had an update and we need to revert back manually to a previous version of gradio that still worked any ideas which one that was?
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:
(venv) K:\stable-diffusion-webui-1.6.0>pip install gradio Requirement already satisfied: gradio in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (3.41.2) Requirement already satisfied: pyyaml<7.0,>=5.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (6.0.1) Requirement already satisfied: fastapi in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (0.94.0) Requirement already satisfied: matplotlib~=3.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (3.8.2) Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (1.10.13) Requirement already satisfied: packaging in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (23.2) Requirement already satisfied: typing-extensions~=4.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (4.8.0) Requirement already satisfied: ffmpy in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (0.3.1) Requirement already satisfied: orjson~=3.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (3.9.10) Requirement already satisfied: httpx in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (0.25.1) Requirement already satisfied: markupsafe~=2.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (2.1.3) Requirement already satisfied: pillow<11.0,>=8.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (9.5.0) Requirement already satisfied: python-multipart in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (0.0.6) Requirement already satisfied: importlib-resources<7.0,>=1.3 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (6.1.1) Requirement already satisfied: gradio-client==0.5.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (0.5.0) Requirement already satisfied: websockets<12.0,>=10.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (11.0.3) Requirement already satisfied: numpy~=1.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (1.23.5) Requirement already satisfied: uvicorn>=0.14.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (0.24.0.post1) Requirement already satisfied: requests~=2.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (2.31.0) Requirement already satisfied: pydub in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (0.25.1) Requirement already satisfied: altair<6.0,>=4.2.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (5.2.0) Requirement already satisfied: jinja2<4.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (3.1.2) Requirement already satisfied: pandas<3.0,>=1.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (2.1.3) Requirement already satisfied: semantic-version~=2.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (2.10.0) Requirement already satisfied: aiofiles<24.0,>=22.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (23.2.1) Requirement already satisfied: huggingface-hub>=0.14.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio) (0.19.4) Requirement already satisfied: fsspec in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from gradio-client==0.5.0->gradio) (2023.12.0) Requirement already satisfied: toolz in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from altair<6.0,>=4.2.0->gradio) (0.12.0) Requirement already satisfied: jsonschema>=3.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from altair<6.0,>=4.2.0->gradio) (4.20.0) Requirement already satisfied: filelock in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from huggingface-hub>=0.14.0->gradio) (3.13.1) Requirement already satisfied: tqdm>=4.42.1 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from huggingface-hub>=0.14.0->gradio) (4.66.1) Requirement already satisfied: contourpy>=1.0.1 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from matplotlib~=3.0->gradio) (1.2.0) Requirement already satisfied: cycler>=0.10 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from matplotlib~=3.0->gradio) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from matplotlib~=3.0->gradio) (4.46.0) Requirement already satisfied: kiwisolver>=1.3.1 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from matplotlib~=3.0->gradio) (1.4.5) Requirement already satisfied: pyparsing>=2.3.1 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from matplotlib~=3.0->gradio) (3.1.1) Requirement already satisfied: python-dateutil>=2.7 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from matplotlib~=3.0->gradio) (2.8.2) Requirement already satisfied: tzdata>=2022.1 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from pandas<3.0,>=1.0->gradio) (2023.3) Requirement already satisfied: pytz>=2020.1 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from pandas<3.0,>=1.0->gradio) (2023.3.post1) Requirement already satisfied: certifi>=2017.4.17 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from requests~=2.0->gradio) (2023.11.17) Requirement already satisfied: urllib3<3,>=1.21.1 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from requests~=2.0->gradio) (2.1.0) Requirement already satisfied: charset-normalizer<4,>=2 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from requests~=2.0->gradio) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from requests~=2.0->gradio) (3.6) Requirement already satisfied: h11>=0.8 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from uvicorn>=0.14.0->gradio) (0.12.0) Requirement already satisfied: click>=7.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from uvicorn>=0.14.0->gradio) (8.1.7) Requirement already satisfied: starlette<0.27.0,>=0.26.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from fastapi->gradio) (0.26.1) Requirement already satisfied: httpcore in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from httpx->gradio) (0.15.0) Requirement already satisfied: anyio in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from httpx->gradio) (3.7.1) Requirement already satisfied: sniffio in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from httpx->gradio) (1.3.0) Requirement already satisfied: colorama in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from click>=7.0->uvicorn>=0.14.0->gradio) (0.4.6) Requirement already satisfied: attrs>=22.2.0 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (23.1.0) Requirement already satisfied: rpds-py>=0.7.1 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (0.13.2) Requirement already satisfied: referencing>=0.28.4 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (0.31.1) Requirement already satisfied: jsonschema-specifications>=2023.03.6 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (2023.11.2) Requirement already satisfied: six>=1.5 in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio) (1.16.0) Requirement already satisfied: exceptiongroup in k:\stable-diffusion-webui-1.6.0\venv\lib\site-packages (from anyio->httpx->gradio) (1.2.0)
I'm not sure that it is a gradio problem cuz I had the problem without upgrading gradio. It was working fine, then I just did git pull, and it stopped working.
No problem was not gradio I solved the problem.
Activate the venv And use this command: pip install httpx==0.24.1
Thanks I will try
K:\stable-diffusion-webui-1.6.0>cd venv K:\stable-diffusion-webui-1.6.0\venv>cd scripts K:\stable-diffusion-webui-1.6.0\venv\Scripts>activate (venv) K:\stable-diffusion-webui-1.6.0\venv\Scripts>cd.. (venv) K:\stable-diffusion-webui-1.6.0\venv>cd.. (venv) K:\stable-diffusion-webui-1.6.0>pip install httpx==0.24.1 ................. Successfully installed httpx-0.24.1 ................. Running on local URL: http://127.0.0.1:7863
oh you are using 1.6.0 not 1.6.1 if so you should update https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13840
the issue OP faced is not due to the 1.6.0 httpx issue but something else (but he should still update) ths isssue is unknow but I remember seeing a long time ago something online of this and I think it has to do with the python version since the python version is wrong anything else can happen and there's no point investigating further until he uses the proper version
I'm not sure that it is a gradio problem cuz I had the problem without upgrading gradio. It was working fine, then I just did git pull, and it stopped working.
That's exactly what happened to me. Updated then XXXX - dead as a door nail
No problem was not gradio I solved the problem.
Activate the venv And use this command: pip install httpx==0.24.1
Hi, This worked for me! I can't believe httpx was the problem and I don't understand how. Thanks!
Seems not to work for me:
Cannot locate TCMalloc (improves CPU memory usage)
Python 3.8.13 (default, Mar 28 2022, 11:38:47)
[GCC 7.5.0]
Version: v1.6.1
Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7
Launching Web UI with arguments:
Traceback (most recent call last):
File "launch.py", line 48, in <module>
main()
File "launch.py", line 44, in main
start()
File "/home/matthias/sdwebui/stable-diffusion-webui/modules/launch_utils.py", line 432, in start
import webui
File "/home/matthias/sdwebui/stable-diffusion-webui/webui.py", line 13, in <module>
initialize.imports()
File "/home/matthias/sdwebui/stable-diffusion-webui/modules/initialize.py", line 33, in imports
from modules import shared_init
File "/home/matthias/sdwebui/stable-diffusion-webui/modules/shared_init.py", line 5, in <module>
from modules import shared
File "/home/matthias/sdwebui/stable-diffusion-webui/modules/shared.py", line 5, in <module>
from modules import shared_cmd_options, shared_gradio_themes, options, shared_items, sd_models_types
File "/home/matthias/sdwebui/stable-diffusion-webui/modules/options.py", line 74, in <module>
class Options:
File "/home/matthias/sdwebui/stable-diffusion-webui/modules/options.py", line 77, in Options
def __init__(self, data_labels: dict[str, OptionInfo], restricted_opts):
TypeError: 'type' object is not subscriptable
Python 3.8.13
again webui is tested for 3.10.6 https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/14190#issuecomment-1837622363
Python 3.8.13
again webui is tested for 3.10.6 #14190 (comment)
What's the officially supported/recommended way to run webui.sh
with a distro-provided but non-default version of Python? Just install python3.10-venv
and then python_cmd=python3.10 ./webui.sh
?
Found the bug: https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/4afaaf8a020c1df457bcf7250cb1c7f609699fa7/modules/options.py#L77
dict[...]
is only supported on Python >= 3.10, the Python3.8 version is
from typing import Dict
Dict[...]
After fixing this, other files also have the same behavior so they all need to be manually changed. I might consider forking a Python 3.8 version but it would be better if the dev team use Python 3 typing syntax from the official typing library instead of using Python3.10 typing.
I made a fork of 1.6.0 that removes all python typing syntax and converts it to python 3.8 typing so that it's compatible with future and backward versions as well. Tested on python versions 3.6 to 3.11 and seems to work fine. https://github.com/thethiny/stable-diffusion-webui/tree/master
I made a fork of 1.6.0 that removes all python typing syntax and converts it to python 3.8 typing so that it's compatible with future and backward versions as well. Tested on python versions 3.6 to 3.11 and seems to work fine. https://github.com/thethiny/stable-diffusion-webui/tree/master
dude i love youuu, i solved my problem just using thissss
I made a fork of 1.6.0 that removes all python typing syntax and converts it to python 3.8 typing so that it's compatible with future and backward versions as well. Tested on python versions 3.6 to 3.11 and seems to work fine. https://github.com/thethiny/stable-diffusion-webui/tree/master
works with Amazon Sagemaker Studio Lab thanks!
Glad to help