Installing Stable Diffusion

I’m trying to install a webUI for OpenSUSE for Stable Diffusion (GitHub - AUTOMATIC1111/stable-diffusion-webui: Stable Diffusion web UI) and none of the webuis seem to work, I’ve tried a few, I looked online and couldn’t find any relevant results, here is my Error Message when I run the webui.sh:

Collecting lit (from pytorch-triton-rocm<2.1,>=2.0.0->torch==2.0.1+rocm5.4.2)
  Using cached https://download.pytorch.org/whl/lit-15.0.7.tar.gz (132 kB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      Looking in indexes: https://download.pytorch.org/whl/rocm5.4.2
      ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
      ERROR: No matching distribution found for setuptools>=40.8.0
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Traceback (most recent call last):
  File "/home/deadvey/git/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/home/deadvey/git/stable-diffusion-webui/launch.py", line 39, in main
    prepare_environment()
  File "/home/deadvey/git/stable-diffusion-webui/modules/launch_utils.py", line 352, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "/home/deadvey/git/stable-diffusion-webui/modules/launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "/home/deadvey/git/env/bin/python3" -m pip install torch==2.0.1+rocm5.4.2 torchvision==0.15.2+rocm5.4.2 --index-url https://download.pytorch.org/whl/rocm5.4.2
Error code: 1

If anyone else needs any information just ask.

1 Like

I’ve got SD running on my system here (also Tumbleweed), using Automatic1111’s webUI (I’ve also got ComfyUI working as well).

Can you show the entire output, including the command you typed to launch it?

Also, how did you install it - did you use git clone or download an archive from github and unzip it?

Oh wait, I actually found out how to make it work, I just installed the lit pip program manually rather than as part of the script, I’ll mark it as Solved lol

Thanks anyway for trying to help!

Glad you got it working! SD is a really fun tool to play with - as someone who has never had the ability to create visual art before, I’m having a blast with getting it to give form to ideas that have been stuck in my head for years. :smiley:

1 Like