stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: cannot start, running webui-user.bat does nothing

Open user4302 opened this issue 8 months ago • 12 comments

Is there an existing issue for this?

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

What happened?

  1. i clone the project
  2. i run webui-user.bat
  3. a cmd terminal opens, and closes immediately
  4. nothing happens

Steps to reproduce the problem

  1. i clone the project
  2. i run webui-user.bat
  3. a cmd terminal opens, and closes immediately
  4. nothing happens

What should have happened?

the app should have downloaded any requirements and started up

Sysinfo

i cant start WebUI, so i trued adding the argument nothing is generated anywhere

i tried this .\webui-user.bat --dump-sysinfo

as well as this in the file

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=dump-sysinfo

call webui.bat

What browsers do you use to access the UI ?

Brave

Console logs

n/a

Additional information

python --version Python 3.10.5

win10 pro

user4302 avatar Nov 28 '23 08:11 user4302

im gonna try out this https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs#windows-method-1

user4302 avatar Nov 28 '23 09:11 user4302

cmd terminal opens, and closes immediately

I wrote a guide to allow you to see the issue, see wiki https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Troubleshooting#run-webui-userbat-but-the-window-immediately-closes

w-e-w avatar Nov 28 '23 15:11 w-e-w

I also had this issue, but resolved it by manually setting PYTHON path in webui-user.bat file.

cxruan avatar Nov 29 '23 22:11 cxruan

I also had this issue, but resolved it by manually setting PYTHON path in webui-user.bat file.

if that's the case then it's most likely is caused by you did not check Add to PATH option when instaling python

w-e-w avatar Nov 29 '23 22:11 w-e-w

I also had this issue, but resolved it by manually setting PYTHON path in webui-user.bat file.

if that's the case then it's most likely is caused by you did not check Add to PATH option when instaling python

BTW I used pyenv as my python version manager, not sure if that's relevant in the context

cxruan avatar Nov 29 '23 22:11 cxruan

You might also try using Stability Matrix which allows you to install A1111, as well as other packages with a single click.

https://github.ink/LykosAI/StabilityMatrix

drdancm avatar Nov 29 '23 23:11 drdancm

you might wanna list your hardwares. BTW, it works good for me on intel+nvidia with windows 11 pro

FelixJiang1998 avatar Nov 30 '23 02:11 FelixJiang1998

I also had this issue, but resolved it by manually setting PYTHON path in webui-user.bat file.

if that's the case then it's most likely is caused by you did not check Add to PATH option when instaling python

:o That could be it.

I used pyenv-wincro install python. And running puthonin any terminal works. But I'm guessing there's some odd issue anyway

user4302 avatar Nov 30 '23 13:11 user4302

I also had this issue, but resolved it by manually setting PYTHON path in webui-user.bat file.

if that's the case then it's most likely is caused by you did not check Add to PATH option when instaling python

BTW I used pyenv as my python version manager, not sure if that's relevant in the context

That might be a factor. Cos I use pyenv as well

user4302 avatar Nov 30 '23 13:11 user4302

im gonna try out this https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs#windows-method-1

I was able to get it work by using this

user4302 avatar Nov 30 '23 13:11 user4302

If you are using pyenv then you can find the python path using the command pyenv which python. The results should look like this:

...>pyenv which python
C:\Users\me\...\versions\3.10.6\python.exe

Then update the webui-user.bat like so

set PYTHON="<whatever was printed by pyenv which command>"

keshav-c avatar Mar 30 '24 06:03 keshav-c

I had the same issue and solved it. Thanks for the tips!

First I opened cmd and ran "start webui-user.bat", it said that it cannot find python.

Then I added the path manually to the bat file: PYTHON=C:\Users\Administrator\AppData\Local\Programs\Python\Python310\python.exe

Then I ran it in cmd again, but still the same issue.

Then I ran cmd as administrator, typed in "start webui-user.bat", and it worked! You know it works when it takes a long time before the installation is complete.

colinstringer avatar Apr 02 '24 06:04 colinstringer