Repository: stable-diffusion-webui
Issue: [Bug]: Tried to install the program but failed on Arch Linux!
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### 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 "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", 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 <module>
    from modules import paths
  File "/run/media/dark/MeusDados/AI/stable-diffusion-webui-1.6.0/modules/paths.py", line 34, in <module>
    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 <module>
    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 <module>
    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 <module>
    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 <module>
    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 <module>
    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 <module>
    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

```Shell
[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!