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

[Bug]: Access Denied - Couldn't launch python - exit code: 1

Open faynercosta opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

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

What happened?

When I run the webui-user.bat for the first time it works perfectly and I'm able to access the UI via localhost. However, when I close the command prompt, the next time I try to execute the webui-user.bat, it won't run again.

It just displays Access Denied: Error Code 1.

The only way to get it working again is to clone the repo from scratch and then run it for the first time, so that it reinstall everything and gets the localhost up again.

Steps to reproduce the problem

  1. Clone git's repo
  2. Open webui-user
  3. Install all dependencies and run the models
  4. Open localhost and use the UI
  5. Close (or not) the browser
  6. Close the cmd prompt that installed all dependencies
  7. Try Open webui-user to get the localhost UI running again
  8. Error reproduced on the cmd prompt

What should have happened?

Should have ran the localhost so that I be able to use the UI

Commit where the problem happens

python: 3.10.6  •  torch: 1.13.1+cu117  •  xformers: N/A  •  gradio: 3.16.2  •  commit: a9fed7c3  •  checkpoint: 6ce0161689

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

No

List of extensions

None

Console logs

Acess denied.
Couldn't launch python

exit code: 1

Additional information

There are a few people recently trying to figure out the fix for the same issue both at reddit and stackoverflow. When we figure it out I'll assist them.

faynercosta avatar Mar 20 '23 16:03 faynercosta

Hello,

I get the same issue and solved it by moving the 'stable-diffusion-webui' folder in a shorter path.

Was in F:\Users\UserName\Documents\StableDiffusion\stable-diffusion-webui Moved to F:\stable-diffusion-webui

Let me know if this works on your side.

julienmellerin avatar Mar 26 '23 07:03 julienmellerin

I have no clue why this was the issue, but your solution did it for me @julienmellerin so thank you!!

DanielGS7 avatar Apr 06 '23 15:04 DanielGS7

it's good idea man!)

artisc1 avatar Apr 12 '23 10:04 artisc1

You have to install python with enviroment variables !

doctorbinsibar avatar Apr 22 '23 08:04 doctorbinsibar

Hello,

I get the same issue and solved it by moving the 'stable-diffusion-webui' folder in a shorter path.

Was in F:\Users\UserName\Documents\StableDiffusion\stable-diffusion-webui Moved to F:\stable-diffusion-webui

Let me know if this works on your side.

it works with me!!!

mayort12 avatar Apr 26 '23 05:04 mayort12

Hello,

I get the same issue and solved it by moving the 'stable-diffusion-webui' folder in a shorter path.

Was in F:\Users\UserName\Documents\StableDiffusion\stable-diffusion-webui Moved to F:\stable-diffusion-webui

Let me know if this works on your side.

Thanks ! its working for me too as well with your trick. interresting

nlourme avatar May 03 '23 00:05 nlourme

I'm getting this too, does anyone know?

KMGmodder4600 avatar Sep 05 '23 06:09 KMGmodder4600

me too, i can't do "python --version" in Command, acssess is denied keep coming up

COWEYE avatar Feb 05 '24 13:02 COWEYE

try this : https://www.squash.io/how-to-fix-no-module-named-pip-error/

demodrone avatar Feb 26 '24 18:02 demodrone