AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.97k stars 26.95k forks source link

[Bug]: Tried to install the program but failed on Arch Linux! #13164

Open iDarknessSam opened 1 year ago

iDarknessSam commented 1 year ago

Is there an existing issue for this?

What happened?

I tried to install the program on Arch Linux, however when I tried to execute ./webui.sh and in the "build dependecies" part fail to complete showing an error instead, here is my computer spec:

Intel Core i5 7400 12 GB of RAM RX 580 with 8 GB of VRAM Arch Linux

Steps to reproduce the problem

  1. Open the terminal on the program folder
  2. Execute the webui.sh on the terminal
  3. Wait until the problem happens

What should have happened?

It should install normally

Sysinfo

[dark@LinuxPC stable-diffusion-webui-1.6.0]$ python3 launch.py --dump-sysinfo Traceback (most recent call last): File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/modules/script_loading.py", line 26, in preload_extensions module = load_module(preload_script) File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/modules/script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/extensions-builtin/LDSR/preload.py", line 2, in from modules import paths File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/modules/paths.py", line 34, in assert sd_path is not None, f"Couldn't find Stable Diffusion in any of: {possible_sd_paths}" AssertionError: Couldn't find Stable Diffusion in any of: ['/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/repositories/stable-diffusion-stability-ai', '.', '/run/media/dark/MeusDados/AI']

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/launch.py", line 48, in main() File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/launch.py", line 29, in main filename = launch_utils.dump_sysinfo() File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/modules/launch_utils.py", line 440, in dump_sysinfo from modules import sysinfo File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/modules/sysinfo.py", line 13, in from modules import paths_internal, timer, shared, extensions, errors File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/modules/shared.py", line 5, in from modules import shared_cmd_options, shared_gradio_themes, options, shared_items, sd_models_types File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/modules/shared_cmd_options.py", line 10, in script_loading.preload_extensions(extensions_builtin_dir, parser) File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/modules/script_loading.py", line 31, in preload_extensions errors.report(f"Error running preload() for {preload_script}", exc_info=True) File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/modules/errors.py", line 29, in report record_exception() File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/modules/errors.py", line 18, in record_exception exception_records.append(sysinfo.format_exception(e, tb)) AttributeError: partially initialized module 'modules.sysinfo' has no attribute 'format_exception' (most likely due to a circular import) [dark@LinuxPC stable-diffusion-webui-1.6.0]$ ./webui.sh --dump-sysinfo

################################################################ Install script for stable-diffusion + Web UI Tested on Debian 11 (Bullseye) ################################################################

################################################################ Running on dark user ################################################################

################################################################ Create and activate python venv ################################################################

################################################################ Launching launch.py... ################################################################ Using TCMalloc: libtcmalloc_minimal.so.4 Traceback (most recent call last): File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/launch.py", line 48, in main() File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/launch.py", line 29, in main filename = launch_utils.dump_sysinfo() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/modules/launch_utils.py", line 440, in dump_sysinfo from modules import sysinfo File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/modules/sysinfo.py", line 9, in import psutil ModuleNotFoundError: No module named 'psutil'

I tried to generate the file but it seens that I cannot

What browsers do you use to access the UI ?

Brave

Console logs

[dark@LinuxPC stable-diffusion-webui-1.6.0]$ ./webui.sh

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on dark user
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc_minimal.so.4
Python 3.11.5 (main, Aug 28 2023, 20:02:58) [GCC 13.2.1 20230801]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Installing torch and torchvision
Looking in indexes: https://download.pytorch.org/whl/rocm5.4.2
Collecting torch==2.0.1+rocm5.4.2
  Using cached https://download.pytorch.org/whl/rocm5.4.2/torch-2.0.1%2Brocm5.4.2-cp311-cp311-linux_x86_64.whl (1536.4 MB)
Collecting torchvision==0.15.2+rocm5.4.2
  Using cached https://download.pytorch.org/whl/rocm5.4.2/torchvision-0.15.2%2Brocm5.4.2-cp311-cp311-linux_x86_64.whl (62.4 MB)
Collecting filelock (from torch==2.0.1+rocm5.4.2)
  Using cached https://download.pytorch.org/whl/filelock-3.9.0-py3-none-any.whl (9.7 kB)
Collecting typing-extensions (from torch==2.0.1+rocm5.4.2)
  Using cached https://download.pytorch.org/whl/typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Collecting sympy (from torch==2.0.1+rocm5.4.2)
  Using cached https://download.pytorch.org/whl/sympy-1.11.1-py3-none-any.whl (6.5 MB)
Collecting networkx (from torch==2.0.1+rocm5.4.2)
  Using cached https://download.pytorch.org/whl/networkx-3.0-py3-none-any.whl (2.0 MB)
Collecting jinja2 (from torch==2.0.1+rocm5.4.2)
  Using cached https://download.pytorch.org/whl/Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting pytorch-triton-rocm<2.1,>=2.0.0 (from torch==2.0.1+rocm5.4.2)
  Using cached https://download.pytorch.org/whl/pytorch_triton_rocm-2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (78.4 MB)
Collecting numpy (from torchvision==0.15.2+rocm5.4.2)
  Using cached https://download.pytorch.org/whl/numpy-1.24.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
Collecting requests (from torchvision==0.15.2+rocm5.4.2)
  Using cached https://download.pytorch.org/whl/requests-2.28.1-py3-none-any.whl (62 kB)
Collecting pillow!=8.3.*,>=5.3.0 (from torchvision==0.15.2+rocm5.4.2)
  Using cached https://download.pytorch.org/whl/Pillow-9.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB)
Collecting cmake (from pytorch-triton-rocm<2.1,>=2.0.0->torch==2.0.1+rocm5.4.2)
  Using cached https://download.pytorch.org/whl/cmake-3.25.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.7 MB)
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 "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/launch.py", line 39, in main
    prepare_environment()
  File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/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 "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/modules/launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/venv/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
[dark@LinuxPC stable-diffusion-webui-1.6.0]$ python3 launch.py 
fatal: not a git repository (or any parent up to mount point /run/media/dark)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /run/media/dark)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Python 3.10.6 (main, Sep  4 2023, 00:30:01) [GCC 13.2.1 20230801]
Version: 1.6.0
Commit hash: <none>
Traceback (most recent call last):
  File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/launch.py", line 48, in <module>
    main()
  File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/launch.py", line 39, in main
    prepare_environment()
  File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/modules/launch_utils.py", line 356, in prepare_environment
    raise RuntimeError(
RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

Additional information

I tried to execute both webui.sh and launch.py, I didn't get to make the webui to use the correct python version but the launch.py I did to use the correct one.

Please, someone help on this, I literally trying to make this thing to work for days..if someone help me I'll be glad!

iDarknessSam commented 1 year ago

well...I finally make the webui to use the correct python version and now seems fine, problem is...every time I open it an error message appeares that I don't have enought VRAM...I need to make some optimizations or something?

[dark@LinuxPC stable-diffusion-webui-1.6.0]$ ./webui.sh

################################################################ Install script for stable-diffusion + Web UI Tested on Debian 11 (Bullseye) ################################################################

################################################################ Running on dark user ################################################################

################################################################ Create and activate python venv ################################################################

################################################################ Launching launch.py... ################################################################ Using TCMalloc: libtcmalloc_minimal.so.4 Python 3.10.6 (main, Sep 4 2023, 00:30:01) [GCC 13.2.1 20230801] Version: v1.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 Launching Web UI with arguments: --lowram --medvram --precision full --no-half --always-batch-cond-uncond

no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. Loading weights [073209b80b] from /run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/models/Stable-diffusion/fluffyrock-576-704-832-960-1088-lion-low-lr-e125-terminal-snr-vpred-e98.safetensors Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Startup time: 89.9s (prepare environment: 49.2s, import torch: 17.8s, import gradio: 7.2s, setup paths: 5.8s, initialize shared: 0.7s, other imports: 6.6s, setup codeformer: 0.9s, setup gfpgan: 0.4s, load scripts: 0.9s, initialize extra networks: 0.1s, create ui: 0.7s, gradio launch: 0.5s). QObject::moveToThread: Current thread (0x5588235be710) is not the object's thread (0x5588235be870). Cannot move to target thread (0x5588235be710)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

/usr/bin/xdg-open, linha 634: 28590 Abortado (imagem do núcleo gravada)kde-open${KDE_SESSION_VERSION} "$1"

ClashSAN commented 1 year ago

Try these settings: --opt-sub-quad-attention --lowvram

(lowram and lowvram are very different) With the autodownloaded sd1.5 model.

I'm not sure what the error is, you might need to try installation on Ubuntu and download Amd pro drivers.

And If it works, can you try sdxl? using "TAESD" in settings.

iDarknessSam commented 1 year ago

Try these settings: --opt-sub-quad-attention --lowvram

(lowram and lowvram are very different) With the autodownloaded sd1.5 model.

I'm not sure what the error is, you might need to try installation on Ubuntu and download Amd pro drivers.

And If it works, can you try sdxl? using "TAESD" in settings.

well..I tried to use these command lines that you said me to use and is still crashing for me..also, using the program on Arch Linux is problematic? and what are sdxl and sd1.5 exactly?

[dark@LinuxPC stable-diffusion-webui-1.6.0]$ ./webui.sh

################################################################ Install script for stable-diffusion + Web UI Tested on Debian 11 (Bullseye) ################################################################

################################################################ Running on dark user ################################################################

################################################################ Create and activate python venv ################################################################

################################################################ Launching launch.py... ################################################################ Using TCMalloc: libtcmalloc_minimal.so.4 Python 3.10.6 (main, Sep 4 2023, 00:30:01) [GCC 13.2.1 20230801] Version: v1.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 Launching Web UI with arguments: --opt-sub-quad-attention --lowvram --precision full --no-half --always-batch-cond-uncond no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. Loading weights [073209b80b] from /run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/models/Stable-diffusion/fluffyrock-576-704-832-960-1088-lion-low-lr-e125-terminal-snr-vpred-e98.safetensors Creating model from config: /run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/configs/v1-inference.yaml Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Startup time: 57.0s (prepare environment: 2.2s, import torch: 16.6s, import gradio: 10.0s, setup paths: 8.7s, initialize shared: 0.8s, other imports: 9.2s, setup codeformer: 1.0s, setup gfpgan: 0.3s, load scripts: 1.0s, load upscalers: 0.2s, initialize extra networks: 4.2s, create ui: 1.8s, gradio launch: 0.8s). QObject::moveToThread: Current thread (0x564af0940710) is not the object's thread (0x564af0940870). Cannot move to target thread (0x564af0940710)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

/usr/bin/xdg-open, linha 634: 26710 Abortado (imagem do núcleo gravada)kde-open${KDE_SESSION_VERSION} "$1"

iDarknessSam commented 1 year ago

alright, for some reason when I try to execute it my primary disk get completely full

ClashSAN commented 1 year ago

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

This part looks like your arch Linux system is missing something (or it may be python 3.10 was manually installed incorrectly/missing a few things)

If you build/install pyenv, and make an venv for the ui

cd stable-diffusion-webui

sudo pacman -S pyenv
pyenv install 3.10.6
pyenv local 3.10.6

python -m venv

you should be able to load the ui.

alright, for some reason when I try to execute it my primary disk get completely full

Reserve 20gb or more, 50gb is a good amount.

iDarknessSam commented 1 year ago

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

This part looks like your arch Linux system is missing something (or it may be python 3.10 was manually installed incorrectly/missing a few things)

If you build/install pyenv, and make an venv for the ui

cd stable-diffusion-webui

sudo pacman -S pyenv
pyenv install 3.10.6
pyenv local 3.10.6

python -m venv

you should be able to load the ui.

alright, for some reason when I try to execute it my primary disk get completely full

Reserve 20gb or more, 50gb is a good amount.

well..I actually installed the Python 3.10.6, but I need to do this command here on the terminal so I can make the webui to load into this specific python version, in case this one:

eval "$(pyenv init -)"

However, when I try to open the webui after all of that this problem happens and I can't do nothing.. also, I installed the program in my second HDD, not my primary SSD....so even that I need to reserve more space on my SSD even if the program is installed on my HDD? this is why is causing this problem?

also I tried to run the command "python -m venv" but for me it happens this:

[dark@LinuxPC stable-diffusion-webui-1.6.0]$ pyenv local 3.10.6 [dark@LinuxPC stable-diffusion-webui-1.6.0]$ python -m venv usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear] [--upgrade] [--without-pip] [--prompt PROMPT] [--upgrade-deps] ENV_DIR [ENV_DIR ...]

ClashSAN commented 1 year ago

There have been issues before with installation on secondary drives. It should take 13gb, you can delete the whole folder later after confirming that isn't the issue.

ClashSAN commented 1 year ago

python -m venv venv

iDarknessSam commented 1 year ago

Screenshot_20230915_024155

Alright...I unistalled the folder of the program and installed it again on my HDD, changed the Python to the 3.10.6 and then I did the command "python -m venv venv" to create a venv folder for the program...however, even will all of this the program don't respond to nothing and don't show any sign of life..

[dark@LinuxPC stable-diffusion-webui-1.6.0]$ eval "$(pyenv init -)" [dark@LinuxPC stable-diffusion-webui-1.6.0]$ python --version Python 3.10.6 [dark@LinuxPC stable-diffusion-webui-1.6.0]$ python -m venv venv [dark@LinuxPC stable-diffusion-webui-1.6.0]$ ./webui.sh

################################################################ Install script for stable-diffusion + Web UI Tested on Debian 11 (Bullseye) ################################################################

################################################################ Running on dark user ################################################################

################################################################ Create and activate python venv ################################################################

################################################################ Launching launch.py... ################################################################ Using TCMalloc: libtcmalloc_minimal.so.4 Python 3.10.6 (main, Sep 4 2023, 00:30:01) [GCC 13.2.1 20230801] Version: v1.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 Launching Web UI with arguments: --opt-sub-quad-attention --lowvram --precision full --no-half --always-batch-cond-uncond no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. Loading weights [6ce0161689] from /run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors Creating model from config: /run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/configs/v1-inference.yaml Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Startup time: 47.3s (prepare environment: 15.7s, import torch: 11.8s, import gradio: 3.9s, setup paths: 4.1s, initialize shared: 0.3s, other imports: 6.0s, setup codeformer: 0.5s, setup gfpgan: 0.2s, load scripts: 0.9s, initialize extra networks: 1.8s, create ui: 0.9s, gradio launch: 1.4s, add APIs: 0.3s). QObject::moveToThread: Current thread (0x55a01af94710) is not the object's thread (0x55a01af94870). Cannot move to target thread (0x55a01af94710)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

/usr/bin/xdg-open, linha 634: 24680 Abortado (imagem do núcleo gravada)kde-open${KDE_SESSION_VERSION} "$1" Applying attention optimization: sub-quadratic... done.

@ClashSAN

ClashSAN commented 1 year ago

The issue shown is a system issue, if your arch system is missing this, I would check and fullfill the missing system package requirements. https://stackoverflow.com/questions/59809703/could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found#60119659

You can try an Debian based environment through various container environments as well, which should work fine with Ubuntu 22.04.

Sojiro84 commented 1 year ago

I hope it's okay to use this thread as well, seeing as my error is the same. I am on Arch, KDE Plasma. Furthermore, I have the required packages installed and when I do “pip list” I can see that “setuptools” is at version 68.0.0.

I have run the following command:

wget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh

And after chmod +x and running it, the installation fails at:

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/sojiro/Downloads/stable-diffusion-webui/launch.py", line 48, in <module>
main()
File "/home/sojiro/Downloads/stable-diffusion-webui/launch.py", line 39, in main
prepare_environment()
File "/home/sojiro/Downloads/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/sojiro/Downloads/stable-diffusion-webui/modules/launch_utils.py", line 115, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "/home/sojiro/Downloads/stable-diffusion-webui/venv/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

Anyone an idea how to fix this?

xcom169 commented 1 year ago

Same issue with Looking in indexes: https://download.pytorch.org/whl/rocm5.4.2

PeeK1e commented 1 year ago

For me it seems to fix the issue when I explicitly install and update wheel and pip in the venv:

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui && cd stable-diffusion-webui
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip wheel

# then just run the webui
./webui.sh
iDarknessSam commented 1 year ago

(venv) [dark@LinuxPC stable-diffusion-webui-1.6.0]$ ./webui.sh

################################################################ Install script for stable-diffusion + Web UI Tested on Debian 11 (Bullseye) ################################################################

################################################################ Running on dark user ################################################################

################################################################ python venv already activate or run without venv: /home/dark/Área de trabalho/stable-diffusion-webui-1.6.0/venv ################################################################

################################################################ Launching launch.py... ################################################################ Using TCMalloc: libtcmalloc_minimal.so.4 Python 3.10.6 (main, Sep 4 2023, 00:30:01) [GCC 13.2.1 20230801] Version: v1.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 Traceback (most recent call last): File "/home/dark/Área de trabalho/stable-diffusion-webui-1.6.0/stable-diffusion-webui/launch.py", line 48, in main() File "/home/dark/Área de trabalho/stable-diffusion-webui-1.6.0/stable-diffusion-webui/launch.py", line 39, in main prepare_environment() File "/home/dark/Área de trabalho/stable-diffusion-webui-1.6.0/stable-diffusion-webui/modules/launch_utils.py", line 356, in prepare_environment raise RuntimeError( RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check (venv) [dark@LinuxPC stable-diffusion-webui-1.6.0]$

now i'm having this problem here

PeeK1e commented 1 year ago

Please use (tripple-)backticks ( ` ) to format code and CLI output.

This looks like you GPU might not be supported(?) Have you tried the suggested option?

xcom169 commented 1 year ago

I tried. It worked

On Sat, 14 Oct 2023, 17:25 Ryuko, @.***> wrote:

Please use backticks ( ` ) to format code and CLI output.

This looks like you GPU might not be supported(?) Have you tried the suggested option?

— Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13164#issuecomment-1762966170, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEH2G2WJ3FEMNI6CVATTGB3X7KVH7AVCNFSM6AAAAAA4RJLRTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRSHE3DMMJXGA . You are receiving this because you commented.Message ID: @.***>

iDarknessSam commented 1 year ago

Please use (tripple-)backticks ( ` ) to format code and CLI output.

This looks like you GPU might not be supported(?) Have you tried the suggested option?

My GPU is an RX 580 with 8 GB of VRAM, I have a friend with the same GPU who tried to install it on Windows and it worked normally, but for me for some reason I can't and now I'm having a new error here..

[dark@LinuxPC stable-diffusion-webui-1.6.0]$ ./webui.sh 

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on dark user
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc_minimal.so.4
Python 3.10.6 (main, Sep  4 2023, 00:30:01) [GCC 13.2.1 20230801]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Launching Web UI with arguments: 
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Calculating sha256 for /home/dark/Área de trabalho/stable-diffusion-webui-1.6.0/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors: Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 11.3s (prepare environment: 3.4s, import torch: 3.7s, import gradio: 0.9s, setup paths: 0.9s, other imports: 0.7s, setup codeformer: 0.1s, load scripts: 0.7s, create ui: 0.6s, gradio launch: 0.2s).
QObject::moveToThread: Current thread (0x556d6b508710) is not the object's thread (0x556d6b508870).
Cannot move to target thread (0x556d6b508710)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/dark/Área de trabalho/stable-diffusion-webui-1.6.0/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

/usr/bin/xdg-open, linha 634:  6111 Abortado                (imagem do núcleo gravada)kde-open${KDE_SESSION_VERSION} "$1"
6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa
Loading weights [6ce0161689] from /home/dark/Área de trabalho/stable-diffusion-webui-1.6.0/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Creating model from config: /home/dark/Área de trabalho/stable-diffusion-webui-1.6.0/stable-diffusion-webui/configs/v1-inference.yaml
./webui.sh, linha 255:  6074 Falha de segmentação  (imagem do núcleo gravada)"${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"
PeeK1e commented 1 year ago

I couldn't find your GPU in the architecture list

It seems it is not supported. At least to my research it is an Polaris20 GPU which is not listed there.

From the log it also seems that QT can't load the platform module, which you would need to set.

iDarknessSam commented 1 year ago

I couldn't find your GPU in the architecture list

It seems it is not supported. At least to my research it is an Polaris20 GPU which is not listed there.

From the log it also seems that QT can't load the platform module, which you would need to set.

So in this case why my friend that have the same spec as my PC installed successfully the program on Windows? this problem only happens on Linux?

also how I can fix these issues of QT? there are any fix that I can do to fix this problem?

FinecoFinit commented 11 months ago

@PeeK1e, Arch Linux has gfx803 in PGKBUILD

urucoder commented 11 months ago

for solving the Qt error, remove the file at stable-diffusion-webui-1.6.0/stable-diffusion-webui/venv/lib/python3.10/site-packages/cv2/qt/plugins/platforms/libqxcb.so. This worked for me in Arch Linux and QT 5