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]: Couldn't find python (launch.py and webui.py works well) #15810

Closed
3 of 6 tasks
RexGhidorah opened this issue May 16, 2024 · 3 comments
Closed
3 of 6 tasks

[Bug]: Couldn't find python (launch.py and webui.py works well) #15810

RexGhidorah opened this issue May 16, 2024 · 3 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@RexGhidorah
Copy link

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?

I know this is almost 100% a rookie error but I couldn't find any info of how to fix it.
I got my SD/Automatic1111 on D: disk and python is installed on C: disk, so when i try to launch the webui.bat it says python is not installed or something like that.
The most easy solutions would be installing Python directly on D:, but i want to know if there's a way to setup for running in the actual config...
Also, i got an error saying something about "xformers"? The info I found here in the github it's a bit old, so im not sure if its still up-to-date.

Steps to reproduce the problem

1.- I just click the webui.bat and the error ocurrs.
2.- When i click launch.py or webui.py and it works "well" (its a bit slow than before but it works)

What should have happened?

I'm 99% sure its because the installation path of Python, about the xformers thing i have no idea.

What browsers do you use to access the UI ?

Microsoft Edge

Sysinfo

sysinfo-2024-05-16-04-38.json

Console logs

------------ python files -----------------
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.9.3
Commit hash: <none>
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Loading weights [570c60965c] from D:\stable-diffusion-webui-1.9.3\models\Stable-diffusion\mfcgPaintjob_v20.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Creating model from config: D:\stable-diffusion-webui-1.9.3\repositories\generative-models\configs\inference\sd_xl_base.yaml
Startup time: 25.1s (prepare environment: 7.0s, import torch: 8.4s, import gradio: 2.5s, setup paths: 3.0s, initialize shared: 0.4s, other imports: 2.0s, load scripts: 0.9s, create ui: 0.4s, gradio launch: 0.5s).
Loading VAE weights specified in settings: D:\stable-diffusion-webui-1.9.3\models\VAE\sdxl_vae.safetensors
Applying attention optimization: Doggettx... done.
Model loaded in 21.1s (load weights from disk: 0.7s, create model: 0.8s, apply weights to model: 16.8s, apply half(): 0.2s, load VAE: 0.8s, move model to device: 0.3s, hijack: 0.2s, load textual inversion embeddings: 0.2s, calculate empty prompt: 1.1s).

--------- webui.bat -----------
Couldn't launch python

exit code: 9009

stderr:
No se encontr¾ Python; ejecuta sin argumentos para instalar desde Microsoft Store o deshabilita este acceso directo en Configuraci¾n > Administrar alias de ejecuci¾n de la aplicaci¾n.

Launch unsuccessful. Exiting.
Presione una tecla para continuar . . .

Additional information

No response

@RexGhidorah RexGhidorah added the bug-report Report of a bug, yet to be confirmed label May 16, 2024
@missionfloyd
Copy link
Collaborator

I got my SD/Automatic1111 on D: disk and python is installed on C: disk, so when i try to launch the webui.bat it says python is not installed or something like that.
The most easy solutions would be installing Python directly on D:, but i want to know if there's a way to setup for running in the actual config...

That's not the problem. When installing python, did you remember to check "Add to PATH"?
image

You could also try installing python form the windows store instead.
https://apps.microsoft.com/detail/9PJPW5LDXLZ5

Or you can try the release package. Unzip it and run update.bat then run.bat.

Also, i got an error saying something about "xformers"? The info I found here in the github it's a bit old, so im not sure if its still up-to-date.

You can ignore that.

@RexGhidorah
Copy link
Author

I did it, but i discovered that was something with the windows configuration.
Apparently, W11 has a thing that identifies apps for "your convenience" and since the python version is a bit old it marked as a "do not use". I just disabled that thing and now the webui works.
(The only problem now is that i have to upgrade my graphics card hahaha)

@RexGhidorah
Copy link
Author

RexGhidorah commented May 20, 2024 via email

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