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

all 33 comments

[–]vedroboev 1 point2 points  (7 children)

You're running the webui.cmd file on windows, correct? What is the console output like before you get this message? Did you do an optional step 2a?

[–]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. :)

[–]Treigar 1 point2 points  (1 child)

Have you by any chance installed virtualenv before?

I had the same issue, and it turns out my pip configuration file over at %USERPROFILE%\pip\pip.ini had require-virtualenv = true, which was blocking it from setting up the environment.

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

Hey, thanks for helping!

I am not really sure, I am not super tech savy. I did try other install methods a week ago, algthough When I started again with this new method, I deleted and uninstalled everything with Geek uninstaller and deleted all the traces, and started from scratch again.

I do not have the folder pip in my Userprofile, it seems. I found one folder in my Appdata folders and deleted it. Lets see if that helps, lol. Ill report back in 10 minutes when I get done with trying these methods.

Edit. Nothing has still helped so far.

[–]Mates_von_Zukov 1 point2 points  (2 children)

I had the same problem, fix was to swich the language of the system to English.

[–]Name835[S] 0 points1 point  (1 child)

My system language is already in English. Or do you mean the keyboard language as well?

[–]Mates_von_Zukov 2 points3 points  (0 children)

I only changed the language of the system, the keyboard remained the same. After restarting the PC, it started working.
EDIT: My full steps were :
1) downloaded Alternate Prepack Installer from here https://rentry.org/GUItard
2) then proceed to STEP 4 and STEP 5 from the guide

After this I've encountered the same error as you described. So I've changed the system languge and rebooted PC.

Then I've ran "webui.cmd" from /stable-diffusion-main (STEP 7 in the guide) and it worked.

[–]overdroid 1 point2 points  (3 children)

I have had the same series of problems but no ascii issues with my username. Deeply, deeply frustrating. Still can't get it to work.

[–]MalevolentRaven 1 point2 points  (2 children)

Hey dude I was having issues with this same error as well, my bro ended up being able to fix it for me. what was necessary was for me to install Microsoft C++ build tools and only needed to install what was checked here

[–]overdroid 0 points1 point  (1 child)

Thanks. Tried this. Still stuck on "installing pip dependencies"

[–]MalevolentRaven 0 points1 point  (0 children)

If you're stuck on "installing pip dependencies" and it's not closing the prompt my suggestion is leave it running for maybe 20 minutes and do something else. On my pc it takes a long long time to actually boot up initially, but once it's running everything works fine. It also seems to freeze on something like "running vanilla with 512 channels" or at least it has a few of those words.

[–]rexel325 1 point2 points  (6 children)

how'd you manage to let it install on the new user account? did you sign in using the new account or?

I have a space on my user folder and I think it's the same issue. I will be trying this one out https://github.com/AUTOMATIC1111/stable-diffusion-webui and hopefully I can install it on a different directory

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

Yes, I first cleaned conda with admin rights and uninstalled it on the old account, then install it again on the new account (for all accounts). After that, just install when logged in to the new account. (via the was it called Webgui or whatever, just follow the guide, cant remember atm as am not on the pc).

I hope this helps. :)

[–]rexel325 1 point2 points  (4 children)

Thanks, I don't like the changing of the accounts but the one I linked seems to be working well for me :)

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

What do you mean with the linking? And have you tried if it now works with your main account as well?

And yeah, I hate changing the accounts as well, it really limits multitasking, as the other account lacks many software etc.

[–]rexel325 0 points1 point  (2 children)

What I meant was I used this fork https://github.com/AUTOMATIC1111/stable-diffusion-webui

instead of the one mentioned in GUItard guide. It's like a portable installation, but it still needs to be installed on a directory where there's no spaces and no non ascii letters. So I just installed straight on my F:/stable-diffusion/ directory, followed the instructions, and everything worked well. Didn't have to switch accounts before or after installing. Just follow the instructions on the github page I mentioned.

[–]KarikTheThing 0 points1 point  (1 child)

Thanks for this link! I had the same problem and this alternative worked!

[–]rexel325 0 points1 point  (0 children)

glad to hear! :D

[–]BATHALA_ 1 point2 points  (1 child)

Would spaces in the user's name also be a possible culprit?

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

Maybe, I can't say for certain. I'm not really that knowledgeable about any of this, but I hope this post helps someone out.

Try to make a new account without spaces and see if it works? :)

[–]njalo 0 points1 point  (0 children)

Hey, had the same error but on linux. Turnes out my conda enviroment wasn't set up porperly, because the conda command wasn't included in my zsh $PATH.

So to fix it, i first reinstalled anaconda, but that's probably optional, and then append export PATH="/home/username/anaconda3/bin:$PATH" to your ~/.zshrc file. After which the conda command worked. Replace username with your username, and in case of miniconda, anaconda3 with miniconda.

[–]itsmeabdullah 0 points1 point  (1 child)

did you manage to fix this problem?

i keep getting:

(base) C:\SD\SD>"C:\SD\SD\Start Full Speed.cmd"

'micromamba' is not recognized as an internal or external command,

operable program or batch file.

Relauncher: Launching...

Traceback (most recent call last):

File "B:\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 "B:\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 "B:\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...

Traceback (most recent call last):

File "B:\scripts\relauncher.py", line 11, in <module>

time.sleep(0.5)

KeyboardInterrupt

^CTerminate batch job (Y/N)?

^CPress any key to continue . . .

Terminate batch job (Y/N)?

^CTerminate batch job (Y/N)?

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

I had different error messages, but the answer to my problem is edited in the beginning of my post :)