lshqqytiger / stable-diffusion-webui-amdgpu

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

[Bug]: can't open file 'launch.py' #306

Closed MoravianLion closed 8 months ago

MoravianLion commented 8 months ago

Is there an existing issue for this?

What happened?

After initial installation, without any errors, when trying to launch it for the first time via webui-user.bat, I'm receiving following error

`'webui.bat' is not recognized as an internal or external command, operable program or batch file.

Current directory: C:\Users\MoravianLion

Command to be executed: "C:\WINDOWS\system32\cmd.exe" /C "C:\Program Files\stable_diffusion\webui\stable-diffusion-webui-directml\webui-user.bat"

ConEmuC: Root process was alive less than 10 sec, ExitCode=1. Press Enter or Esc to close console...`

Then when I tried to execute only webui.bat, this happened:

venv "C:\Program Files\stable_diffusion\webui\stable-diffusion-webui-directml\venv\Scripts\Python.exe" C:\Program Files\stable_diffusion\webui\stable-diffusion-webui-directml\venv\Scripts\Python.exe: can't open file 'launch.py': [Errno 2] No such file or directory Press any key to continue . . .

Can anyone advise?

Steps to reproduce the problem

After initial installation, without any errors, when trying to launch it for the first time via webui-user.bat, I'm receiving following error

`'webui.bat' is not recognized as an internal or external command, operable program or batch file.

Current directory: C:\Users\MoravianLion

Command to be executed: "C:\WINDOWS\system32\cmd.exe" /C "C:\Program Files\stable_diffusion\webui\stable-diffusion-webui-directml\webui-user.bat"

ConEmuC: Root process was alive less than 10 sec, ExitCode=1. Press Enter or Esc to close console...`

Then when I tried to execute only webui.bat, this happened:

venv "C:\Program Files\stable_diffusion\webui\stable-diffusion-webui-directml\venv\Scripts\Python.exe" C:\Program Files\stable_diffusion\webui\stable-diffusion-webui-directml\venv\Scripts\Python.exe: can't open file 'launch.py': [Errno 2] No such file or directory Press any key to continue . . .

What should have happened?

Should launch for the first time.

Was following this guy

Sysinfo

I wish I could do that.

What browsers do you use to access the UI ?

Google Chrome

Console logs

No console, no logs.

Additional information

No response

MoravianLion commented 8 months ago

Even though I had Python 3.10.6 installed, the installation took into consideration 3.6 and caused this error.