Hello,

I’ve been having trouble getting Stable Diffusion to run on Arch. I bought a 7900 XTX a couple weeks ago to get away from NVIDIA, one thing I really liked to do was mess around in Stable Diffusion, but for some reason I can’t seem to get it working. I followed the guide on their page, but I think it may be outdated:

https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs#install-on-amd-and-arch-linux

When I do ‘pip install -r requirements.txt’, it fails halfway through installing:

https://paste.debian.net/1317412

Not sure what to do from here, any help is appreciated!

  • pavunkissa
    link
    fedilink
    English
    arrow-up
    11
    ·
    7 months ago

    The problem, I believe, is that stable diffusion presently only supports Python 3.10, but Arch ships 3.12, and some of the dependencies aren’t compatible with the newer version. Here’s what I did to get it working on Arch + AMD 7800XT GPU.

    1. Install python310 package from AUR
    2. Manually create the virtualenv for stable diffusion with python3.10 -m venv venv (in stable diffusion root directory)

    This should be enough for the dependencies to install correctly. To get GPU acceleration to work, I also had to add this environment variable: HSA_OVERRIDE_GFX_VERSION=11.0.0 (Not sure if this is needed or if the value is same for 7900 XTX)

    • vaionko
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      7 months ago

      I had python problems on Fedora and Nvidia. In addition to installing python 3.10, I needed to change the python command in webui.sh from python to python3.10

      • ffhein@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        7 months ago

        Perhaps you weren’t using venv? If you do, it ought to create aliases to both python and python3 to the correct binary