stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Unable to start webui
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
I get this error when attempting to load webui-user.bat
Steps to reproduce the problem
- Go to webui-user.bat
- double click to start
- get error
What should have happened?
loads into setup and launches normally
Commit where the problem happens
0b5dcb3d7ce397ad38312dbfc70febe7bb42dcc3
What platforms do you use to access UI ?
Windows
980 ti 6gb
What browsers do you use to access the UI ?
Brave
Command Line Arguments
--medvram
Additional information, context and logs
venv "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] Commit hash: 0b5dcb3d7ce397ad38312dbfc70febe7bb42dcc3 Installing requirements for Web UI
Launching Web UI with arguments: --medvram
Traceback (most recent call last):
File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\launch.py", line 294, in
It looks like an entry_points.txt in your setup is corrupted. It should look more similar to this:
cat /srv/virtualenvs/AUTOMATIC1111-stable-diffusion-webui/lib/python3.10/site-packages/gradio-3.9.dist-info/entry_points.txt
[console_scripts]
gradio = gradio.reload:run_in_reload_mode
If it contains all zeroes, that is indeed unexpected.
It looks like an entry_points.txt in your setup is corrupted.
I have no idea how that might have happened.
With a fresh re-install using github desktop I now get this error.
venv "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
Commit hash: 0b5dcb3d7ce397ad38312dbfc70febe7bb42dcc3
Installing requirements for Web UI
Launching Web UI with arguments:
Traceback (most recent call last):
File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\launch.py", line 294, in
It looks like an entry_points.txt in your setup is corrupted.
I have no idea how that might have happened.
With a fresh re-install using github desktop I now get this error.
venv "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] Commit hash: 0b5dcb3 Installing requirements for Web UI Launching Web UI with arguments: Traceback (most recent call last): File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\launch.py", line 294, in start() File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\launch.py", line 285, in start import webui File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\webui.py", line 11, in from modules.call_queue import wrap_queued_call, queue_lock, wrap_gradio_gpu_call File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\modules\call_queue.py", line 7, in from modules import shared File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\modules\shared.py", line 8, in import gradio as gr File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\gradio__init__.py", line 3, in import gradio.components as components File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 31, in from gradio import media_data, processing_utils, utils File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 20, in from gradio import encryptor, utils File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 35, in import httpx File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\httpx__init__.py", line 2, in from ._api import delete, get, head, options, patch, post, put, request, stream File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\httpx_api.py", line 4, in from .client import Client File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\httpx_client.py", line 29, in from .transports.default import AsyncHTTPTransport, HTTPTransport File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\httpx_transports\default.py", line 30, in import httpcore File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\httpcore__init.py", line 1, in from .api import request, stream File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\httpcore_api.py", line 5, in from .sync.connection_pool import ConnectionPool File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\httpcore_sync__init.py", line 1, in from .connection import HTTPConnection File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\httpcore_sync\connection.py", line 13, in from .http11 import HTTP11Connection File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\httpcore_sync\http11.py", line 44, in class HTTP11Connection(ConnectionInterface): File "C:\Users\overd\Desktop\Github\stable-diffusion-webui\venv\lib\site-packages\httpcore_sync\http11.py", line 140, in HTTP11Connection self, event: h11.Event, timeout: Optional[float] = None AttributeError: module 'h11' has no attribute 'Event' Press any key to continue . . .
same, I'm getting the "AttributeError: module 'h11' has no attribute 'Event'" error
You NEED to be using Python v3.10.x (recommended is 3.10.6). Some dependencies break with all other major versions.
Literally the first line: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Troubleshooting
Thank you for pointing that out skdursh. It's been a while since I'd first installed this and I forgot to check the troubleshooting section. I had installed a more recent python version already, but I don't think I'd set it to PATH, and I hadn't yet tried re-installing my copy of webui by deleting \repositories and \venv, which was, I think, causing it to stay stuck on the old 3.9 python setup.
I've got it running now.