AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.58k stars 26.89k forks source link

[Bug]: Cant runLaunching Web UI with arguments: Press any key to continue... #8868

Open KlassSims opened 1 year ago

KlassSims commented 1 year ago

Is there an existing issue for this?

What happened?

I run webui-user.bat , and the bug appear venv "C:\Stable dif\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2 Installing requirements for Web UI Launching Web UI with arguments: Press any key to continue...

Steps to reproduce the problem

  1. Run webui-user.bat

What should have happened?

I run webui-user.bat , and the bug appear venv "C:\Stable dif\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2 Installing requirements for Web UI Launching Web UI with arguments: Press any key to continue... I tried reinstalling the program, deleting the venv folder and still can't run.In launch.py I put only this commandline_args = os.environ.get('COMMANDLINE_ARGS', "--skip-torch-cuda-test") because I have an AMD video card.

Commit where the problem happens

Cant run it

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

commandline_args = os.environ.get('COMMANDLINE_ARGS', "--skip-torch-cuda-test")

List of extensions

No

Console logs

venv "C:\Stable dif\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
Installing requirements for Web UI
Launching Web UI with arguments:
Press any key to continue...

Additional information

No response

temeglyph commented 1 year ago

I'm having the same issue as above.

temeglyph commented 1 year ago

Yeah, Restart your PC. It fixed my issue. It was something going on with Python atm so when I restarted my PC it got fixed.

KlassSims commented 1 year ago

Yeah, Restart your PC. It fixed my issue. It was something going on with Python atm so when I restarted my PC it got fixed.

it didn't help me

missionfloyd commented 1 year ago

commandline_args = os.environ.get('COMMANDLINE_ARGS', "--skip-torch-cuda-test")

Commandline arguments go in webui-user.bat What you've done there is set the default value if the COMMANDLINE_ARGS environment variable doesn't exist.

ShadeQuester commented 1 year ago

Same problem:

venv "G:\WebUi\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)]
Commit hash: 5ab7f213bec2f816f9c5644becb32eb72c8ffb89
Installing requirements
Launching Web UI with arguments: --skip-torch-cuda-test
Press any key to continue . . .

Then nothing happens

DCBlackV commented 1 year ago

having the same problem with a new AMD card

reinstalled everything, even different version of python, but cant get it to work. Anyone found a solution somewhere?

//Update:

found the culprit, so for anyone reading this with the same issue:

I had an Nvidia card before, and although uninstalling their drivers via control panel, there were remnants... I noticed during webui startup, that it still said "detecting nvidia". I forced directml via startup argument (--backend option), but it still wouldn't work. Decided to do a thorough driver cleanup via DDU driver uninstall util, scrubbing the registry.

Afterwards made another clean install of automatic1111 and voila, I finally got past the launch

oscargch commented 5 months ago

The way I identified the problem was by going to the Windows Event Viewer.

I found that python.exe was crashing, it was pointing to a particular .dll file

This .dll file was part of the Microsoft Visual C++ Redistributable

I updated this using the x64 version and it has not crashed since.

The version of that .dll file that came with the PC from the strart seemed to be crashing python.exe

https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version