stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Access Denied - Couldn't launch python - exit code: 1
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
- Clone git's repo
- Open webui-user
- Install all dependencies and run the models
- Open localhost and use the UI
- Close (or not) the browser
- Close the cmd prompt that installed all dependencies
- Try Open webui-user to get the localhost UI running again
- 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.
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.
I have no clue why this was the issue, but your solution did it for me @julienmellerin so thank you!!
it's good idea man!)
You have to install python with enviroment variables !
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!!!
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
I'm getting this too, does anyone know?
me too, i can't do "python --version" in Command, acssess is denied keep coming up
try this : https://www.squash.io/how-to-fix-no-module-named-pip-error/