Skip to content
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]: calling %PYTHON% in webui.bat stops the execution of the rest of the script. #16139

Open
4 of 6 tasks
RalkeyOfficial opened this issue Jul 3, 2024 · 1 comment
Open
4 of 6 tasks
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@RalkeyOfficial
Copy link

RalkeyOfficial commented Jul 3, 2024

Checklist

  • The issue exists after disabling all extensions
  • 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
  • The issue exists in the current version of the webui
  • 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 RalkeyOfficial added the bug-report Report of a bug, yet to be confirmed label Jul 3, 2024
@brackson
Copy link

brackson commented Jul 12, 2024

Had this experience too. I solved it by installing 3.10.6 through pyenv, creating a venv folder in the base of stable-diffusion-webui, activating it, then running webui.bat. There's definitely a cleaner way to do this.

Using Windows 11 Pro, pyenv==3.1.1

E:\AI_Stuff\stable-diffusion-webui> pyenv install 3.10.6
...
E:\AI_Stuff\stable-diffusion-webui> pyenv local 3.10.6
E:\AI_Stuff\stable-diffusion-webui> python -m venv venv
E:\AI_Stuff\stable-diffusion-webui> venv\Scripts\activate.bat
(venv) E:\AI_Stuff\stable-diffusion-webui> webui.bat
venv "E:\AI_Stuff\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.4
Commit hash: feee37d75f1b168768014e4634dcb156ee649c05
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants