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: Unable to create venv in directory, exit Code 3. #7358

Closed
1 task done
abver090 opened this issue Jan 29, 2023 · 8 comments
Closed
1 task done

Bug: Unable to create venv in directory, exit Code 3. #7358

abver090 opened this issue Jan 29, 2023 · 8 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@abver090
Copy link

Is there an existing issue for this?

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

What happened?

image
This is a Windows 10 64-bit. This error keeps poping up whenever I tried to load the .bat file for the first time. I tried

  • Removing the spaces in between the folders the stable-diffusion-webui is stored within
  • Running the .bat using Admin privilages

But these just didn't work! Is there any way I can fix this error?

Steps to reproduce the problem

Just start up webui-user.bat.

What should have happened?

The .bat would have loaded up normally and began downloading all the essentials.

Commit where the problem happens

cmd

What platforms do you use to access the UI ?

No response

What browsers do you use to access the UI ?

No response

Command Line Arguments

No

List of extensions

No

Console logs

Creating venv in directory D:\Stable_Diffusion\testing_for_the_last_time\stable-diffusion-webui\venv using python "C:\Users\└эфЁхщ\AppData\Local\Programs\Python\Python310\python.exe"
Unable to create venv in directory "D:\Stable_Diffusion\testing_for_the_last_time\stable-diffusion-webui\venv"

exit code: 3

stderr:
Системе не удается найти указанный путь.

Launch unsuccessful. Exiting.

Additional information

No response

@abver090 abver090 added the bug-report Report of a bug, yet to be confirmed label Jan 29, 2023
@mezotaken
Copy link
Collaborator

mezotaken commented Jan 29, 2023

I think it cannot locate the python because of this └эфЁхщ
The easier solution would be to install python in some folder that doesnt have username in its path.
Сбитая кодировка русского в консоли пробрасывается в путь почему-то.

@abver090
Copy link
Author

abver090 commented Jan 29, 2023

I think it cannot locate the python because of this └эфЁхщ The easier solution would be to install python in some folder that doesnt have username in it's path. Сбитая кодировка русского в консоли пробрасывается в путь почему-то.

So download Python in a folder that isn't in Cyrilic?
Also, I do have another question. Where are the essentials going to be installed? To the insal directory of Stable Diffusion or C: drive? If the latter, then things could go ugly because my PC might not recognize my Cyrilic.

@mezotaken
Copy link
Collaborator

mezotaken commented Jan 29, 2023

Yes, but it's more of a workaround than a solution.
Most of the dependencies will be installed in stable-diffusion-webui/venv, but some transformers models will be at C:\Users\<USERNAME>\.cache\huggingface\transformers, but i think there will be no problems with them because it's not implemented by this repo.

@mezotaken
Copy link
Collaborator

Also you can try specifying your python directory in webui-user.bat directly in cyrilic like this:
set PYTHON="C:\Users\<USERNAME>\AppData\Local\Programs\Python\Python310\python.exe" it might just work.

@abver090
Copy link
Author

It works! Thanks!

@mezotaken
Copy link
Collaborator

mezotaken commented Jan 29, 2023

for /f "delims=" %%i in ('CALL %PYTHON% -c "import sys; print(sys.executable)"') do set PYTHON_FULLNAME="%%i"

Probably some unescaped characters in this line cause the issue.

@dalemadman
Copy link

Reinstall Python in custom install mode with no cyrillic names in path.
For example C:\Python

@doughmonteiro
Copy link

Reinstall Python in custom install mode with no cyrillic names in path. For example C:\Python

It solved my problem!

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

4 participants