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

[Bug]: calling `%PYTHON%` in webui.bat stops the execution of the rest of the script.

Open RalkeyOfficial opened this issue 7 months ago • 0 comments

Checklist

  • [X] The issue exists after disabling all extensions
  • [X] The issue exists on a clean installation of webui
  • [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • [X] The issue exists in the current version of the webui
  • [X] The issue has not been reported before recently
  • [ ] The issue has been reported before but has not been fixed yet

What happened?

The first line where %PYTHON% is called stops the execution of the rest of the script. This happens with any usage of %PYTHON%.

image

You can test this by putting echo before and after the %PYTHON% call

image

You can test this further by running PYTHON --version and doing the same test

image

Steps to reproduce the problem

  1. Install Python 3.10.6 via pyenv-win.
  2. Get the latest version of webui, latest is commit feee37d on master branch.
  3. Set version 3.10.6 as the local version (pyenv local 3.10.6).
  4. Try to launch webui
  5. (optional) run the tests I did above.

What should have happened?

WebUI should have launched as expected.

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

not available

Console logs

none

Additional information

Python 3.10.6 is installed via pyenv-win.

RalkeyOfficial avatar Jul 03 '24 13:07 RalkeyOfficial