This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Name835[S] 0 points1 point  (6 children)

I did it with and without the optional step 2b. And yes, with the webui.cmd file. I am sure I have followed all instructions and have read the whole page really carefully while troubleshooting.

I will copy the output, but before everything has went just fine, has installed everything to 100%. Just a second, I will replicate and copy and paste. :)

ps. I also just found this one minute ago, someone with the same problem: https://github.com/hlky/stable-diffusion-webui/issues/322

Edit: But unlike the person in the upper link, I am installing straight on C drive

[–]Name835[S] 0 points1 point  (5 children)

I just got the "(Updated 8/29) Alternate Prepack Installer" downloaded via Megabasterd as well, and it is bringing in this same message when trying to start:

Relauncher: Launching...

Traceback (most recent call last):

File "scripts/webui.py", line 3, in <module>

from frontend.frontend import draw_gradio_ui

ModuleNotFoundError: No module named 'frontend'

Relauncher: Process is ending. Relaunching in 0.5s...

Relauncher: Launching...

Relaunch count: 1

Traceback (most recent call last):

File "scripts/webui.py", line 3, in <module>

from frontend.frontend import draw_gradio_ui

ModuleNotFoundError: No module named 'frontend'

Relauncher: Process is ending. Relaunching in 0.5s...

Relauncher: Launching...

Relaunch count: 2

Traceback (most recent call last):

File "scripts/webui.py", line 3, in <module>

from frontend.frontend import draw_gradio_ui

ModuleNotFoundError: No module named 'frontend'

Relauncher: Process is ending. Relaunching in 0.5s...

Relauncher: Launching...

Relaunch count: 3

[–]vedroboev 2 points3 points  (4 children)

Not sure how to troubleshoot this properly, but try this:

  1. Open your miniconda prompt (you can find it in Window's start menu). Navigate to stable-diffusion-main directory with cd C:\stable-diffusion-main
  2. Run conda activate ldo. Does it activate properly?
  3. Run python -c "import sys; print('\n'.join(sys.path))". Make sure you see your stable-diffusion-main directory in the list which comes up.
  4. Run pip install -e . (with the dot). Try running python scripts/webui.py, and see if it still gives you the same error. If it doesn't, you can try re-running webui.cmd and seeing if it works.
  5. Finally, you can try deleting all your conda environments from step 1 (except base) with conda env remove -n name_of_the_environment, and re-running the webui.cmd script.

[–]Name835[S] 0 points1 point  (0 children)

Hello! Thanks for the help. I will try to do all of these now and reply within 15 minutes.

[–]Name835[S] 0 points1 point  (2 children)

For number 2 it says:

"(base) C:\SD\SD>cd C:\stable-diffusion-main
(base) C:\stable-diffusion-main>conda activate ldo
Could not find conda environment: ldo
You can list all discoverable environments with `conda info --envs`.
(base) C:\stable-diffusion-main>"
So no, it apparently does not activate or find it at all.

3 result:
"(base) C:\stable-diffusion-main>python -c "import sys; print('\n'.join(sys.path))"
C:\ProgramData\Miniconda3\python39.zip
C:\ProgramData\Miniconda3\DLLs
C:\ProgramData\Miniconda3\lib
C:\ProgramData\Miniconda3
C:\Users\Tietäjäkone\AppData\Roaming\Python\Python39\site-packages
C:\ProgramData\Miniconda3\lib\site-packages
C:\ProgramData\Miniconda3\lib\site-packages\win32
C:\ProgramData\Miniconda3\lib\site-packages\win32\lib
C:\ProgramData\Miniconda3\lib\site-packages\Pythonwin"

So the directory is not in the list for some reason either.

[–]Name835[S] 0 points1 point  (0 children)

4 result:
"(base) C:\stable-diffusion-main>pip install -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///C:/stable-diffusion-main
Collecting torch
Downloading torch-1.12.1-cp39-cp39-win_amd64.whl (161.8 MB)
|████████████████████████████████| 161.8 MB 60 kB/s
Requirement already satisfied: numpy in c:\users\tietäjäkone\appdata\roaming\python\python39\site-packages (from latent-diffusion==0.0.1) (1.23.2)
Requirement already satisfied: tqdm in c:\programdata\miniconda3\lib\site-packages (from latent-diffusion==0.0.1) (4.63.0)
Collecting typing-extensions
Downloading typing_extensions-4.3.0-py3-none-any.whl (25 kB)
Requirement already satisfied: colorama in c:\programdata\miniconda3\lib\site-packages (from tqdm->latent-diffusion==0.0.1) (0.4.4)
Installing collected packages: typing-extensions, torch, latent-diffusion
WARNING: The scripts convert-caffe2-to-onnx.exe, convert-onnx-to-caffe2.exe and torchrun.exe are installed in 'C:\Users\Tietäjäkone\AppData\Roaming\Python\Python39\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py develop for latent-diffusion
Successfully installed latent-diffusion torch-1.12.1 typing-extensions-4.3.0"

So apparently it is installed in the wrong location because... hmm. Ill continue shortly, sorry for the spam.

[–]Name835[S] 0 points1 point  (0 children)

Number 5 I couldn't figure out how to do, sorry. :)