stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Outdated Installation Instructions for WSL or other error when Installing with WSL
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
after following the instructions in the wiki for installing with WSL I first encounter this error when running "python webui.py" as the instructions say. This error then goes away when I follow this issue: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13191 , and git clone https://github.com/Stability-AI/generative-models.git in /repositories.
python webui.py
Warning: Stable Diffusion XL not found at path /home/user/stable-diffusion-webui/repositories/generative-models/sgm
Warning: k_diffusion not found at path /home/user/stable-diffusion-webui/repositories/k-diffusion/k_diffusion/sampling.py
Traceback (most recent call last):
File "/home/user/stable-diffusion-webui/webui.py", line 13, in
Then once I fix that error I get this when trying to run python webui.py:
python webui.py
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
Warning: k_diffusion not found at path /home/user/stable-diffusion-webui/repositories/k-diffusion/k_diffusion/sampling.py
Traceback (most recent call last):
File "/home/user/stable-diffusion-webui/webui.py", line 13, in
Steps to reproduce the problem
- follow instructions on wiki for installing with WSL
- run python webui.py
What should have happened?
successful launch of the webui
Sysinfo
RTX 3080 32gb RAM WSL 2, tried with on both Arch linux and ubuntu distributions.
What browsers do you use to access the UI ?
Google Chrome
Console logs
when I run pip install -U numpy --prefer-binary I also get the pip dependency resolver error but I'm not sure if that's responsible for any of the issues or not.
Requirement already satisfied: numpy in /home/user/anaconda3/envs/automatic/lib/python3.10/site-packages (1.23.5)
Collecting numpy
Downloading numpy-1.26.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 7.2 MB/s eta 0:00:00
Installing collected packages: numpy
Attempting uninstall: numpy
Found existing installation: numpy 1.23.5
Uninstalling numpy-1.23.5:
Successfully uninstalled numpy-1.23.5
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
numba 0.58.0 requires numpy<1.26,>=1.21, but you have numpy 1.26.0 which is incompatible.
Additional information
No response
I met the same problem, following the WSL2 steps.
ModuleNotFoundError: No module named 'pytorch_lightning.utilities.distributed'
can be solved if you downgrade pytorch_lightning to 1.9.4 as is required in requirements_versions.txt. However, a new problem emerges that
ModuleNotFoundError: No module named 'taming'
Have you tried installing CUDA on Windows now? Because I also encountered a similar issue, but following the official documentation and installing CUDA on Windows first resolved the problem.
Have you tried installing CUDA on Windows now? Because I also encountered a similar issue, but following the official documentation and installing CUDA on Windows first resolved the problem.
Do you mean Cuda Toolkit for WSL?
Have you tried installing CUDA on Windows now? Because I also encountered a similar issue, but following the official documentation and installing CUDA on Windows first resolved the problem.
Do you mean Cuda Toolkit for WSL?
https://docs.nvidia.cn/cuda/wsl-user-guide/index.html#getting-started-with-cuda-on-wsl-2
I followed the instructions to install it.
https://docs.nvidia.cn/cuda/wsl-user-guide/index.html#getting-started-with-cuda-on-wsl-2
I followed the instructions to install it.
This did not work for me. Getting the same error as above (sgm issue, resolved by #13191 followed by more errors). Upon seeing the additional errors, I gave up on that approach of incrementally solving each error, since it means there's something wrong with my installation.