AUTOMATIC1111 / stable-diffusion-webui

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

not able to run webui-user.bat #1110

Closed ojao117 closed 1 year ago

ojao117 commented 2 years ago

Whenever i try to run webui-user.bat the promp appear and says: "unable to create venv in directory venv

exit code: 3

system could not find the specified path"

and then closes when o click

I followed this tutorial: https://stablediffusionguides.carrd.co/#one and I had enabled the PATH when installing python.

After I have done every thing I should start to downloading and installing everything to run stable diffusion, when i run webui-user.bat

Desktop (please complete the following information):

edersoncsouza commented 2 years ago

O problema é que seu usuário é acentuado e o BAT se perde... Como alternativa dá para acessar o diretório onde ficou seu webui.bat através do prompt de comando e rodar manualmente a linha: "C:\Users\\AppData\Local\Programs\Python\Python310\python.exe" -m venv venv >tmp/stdout.txt 2>tmp/stderr.txt

Alternativamente poderia tentar abrir o arquivo webui.bat no bloco de notas e salvar em formato ANSI, depois tentar rodá-lo.

gaqs commented 2 years ago

I found the solution. Add on the second line of webui.bat after @echo off

chcp 28591

Hope can help you :D

ww-project commented 1 year ago

I tried gags option and didn't work. I still get an error message (see attachment). As for the other solution above. 2nd choice didn't work, and not sure I understand (sorry newbie here...) how to exactly do the first option. Could someone elaborate, or is my issue something different altogether?

Translated text from edersoncsouza: The problem is that your user is accented and the BAT is lost... As an alternative, you can access the directory where your webui.bat was located through the command prompt and manually run the line: "C:\Users\AppData\Local\Programs\Python\Py ai-sd-error-message01 thon310\python.exe" -m venv venv >tmp/stdout.txt 2>tmp/stderr.txt

Hilellasry commented 1 year ago

I have also tried all the solutions above but none of them work

HPPinata commented 1 year ago

@ojao117 a solution has been found in a seperate issue. This should be closed.

chekoopa commented 1 year ago

I'll also signalboost a quick manual workaround: python -m venv venv (given you're using default settings and have a Python in PATH).