lllyasviel / lllyasviel/stable-diffusion-webui-forge
Error when attempting to install forge on Linux (Manjaro Plasma KDE)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
I get the following error when trying to install forge in Manjaro Plasma KDE:
> ################################################################
> Repo already cloned, using it as install directory
> ################################################################
>
> ################################################################
> Create and activate python venv
> ################################################################
> Requirement already satisfied: pip in ./venv/lib/python3.12/site-packages (24.2)
> Collecting pip
> Using cached pip-24.3.1-py3-none-any.whl.metadata (3.7 kB)
> Using cached pip-24.3.1-py3-none-any.whl (1.8 MB)
> Installing collected packages: pip
> Attempting uninstall: pip
> Found existing installation: pip 24.2
> Uninstalling pip-24.2:
> Successfully uninstalled pip-24.2
> Successfully installed pip-24.3.1
>
> ################################################################
> Launching launch.py...
> ################################################################
> glibc version is 2.40
> Check TCMalloc: libtcmalloc_minimal.so.4
> ./webui.sh: line 258: bc: command not found
> ./webui.sh: line 258: [: -eq: unary operator expected
> libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/usr/lib/libtcmalloc_minimal.so.4
> =============================================================================================
> INCOMPATIBLE PYTHON VERSION
>
> This program is tested with 3.10.6 Python, but you have 3.12.7.
> If you encounter an error with "RuntimeError: Couldn't install torch." message,
> or any other error regarding unsuccessful package (library) installation,
> please downgrade (or upgrade) to the latest version of 3.10 Python
> and delete current Python and "venv" folder in WebUI's directory.
>
> You can download 3.10 Python from here: https://www.python.org/downloads/release/python-3106/
>
>
>
> Use --skip-python-version-check to suppress this warning.
> =============================================================================================
> Python 3.12.7 (main, Oct 1 2024, 11:15:50) [GCC 14.2.1 20240910]
> Version: f2.0.1v1.10.1-previous-635-gf5330788
> Commit hash: f53307881bfd824dbdce6ac0d4bba04d9a74ab36
> Installing torch and torchvision
> Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121
> Collecting torch==2.3.1
> Using cached https://download.pytorch.org/whl/cu121/torch-2.3.1%2Bcu121-cp312-cp312-linux_x86_64.whl (780.9 MB)
> Collecting torchvision==0.18.1
> Using cached https://download.pytorch.org/whl/cu121/torchvision-0.18.1%2Bcu121-cp312-cp312-linux_x86_64.whl (7.0 MB)
> Collecting filelock (from torch==2.3.1)
> Using cached filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
> Collecting typing-extensions>=4.8.0 (from torch==2.3.1)
> Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
> Collecting sympy (from torch==2.3.1)
> Using cached sympy-1.13.3-py3-none-any.whl.metadata (12 kB)
> Collecting networkx (from torch==2.3.1)
> Using cached networkx-3.4.2-py3-none-any.whl.metadata (6.3 kB)
> Collecting jinja2 (from torch==2.3.1)
> Using cached jinja2-3.1.5-py3-none-any.whl.metadata (2.6 kB)
> Collecting fsspec (from torch==2.3.1)
> Using cached fsspec-2024.12.0-py3-none-any.whl.metadata (11 kB)
> Collecting nvidia-cuda-nvrtc-cu12==12.1.105 (from torch==2.3.1)
> Using cached https://download.pytorch.org/whl/cu121/nvidia_cuda_nvrtc_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (23.7 MB)
> Collecting nvidia-cuda-runtime-cu12==12.1.105 (from torch==2.3.1)
> Using cached https://download.pytorch.org/whl/cu121/nvidia_cuda_runtime_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (823 kB)
> Collecting nvidia-cuda-cupti-cu12==12.1.105 (from torch==2.3.1)
> Using cached https://download.pytorch.org/whl/cu121/nvidia_cuda_cupti_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (14.1 MB)
> Collecting nvidia-cudnn-cu12==8.9.2.26 (from torch==2.3.1)
> Using cached https://download.pytorch.org/whl/cu121/nvidia_cudnn_cu12-8.9.2.26-py3-none-manylinux1_x86_64.whl (731.7 MB)
> Collecting nvidia-cublas-cu12==12.1.3.1 (from torch==2.3.1)
> Using cached https://download.pytorch.org/whl/cu121/nvidia_cublas_cu12-12.1.3.1-py3-none-manylinux1_x86_64.whl (410.6 MB)
> Collecting nvidia-cufft-cu12==11.0.2.54 (from torch==2.3.1)
> Using cached https://download.pytorch.org/whl/cu121/nvidia_cufft_cu12-11.0.2.54-py3-none-manylinux1_x86_64.whl (121.6 MB)
> Collecting nvidia-curand-cu12==10.3.2.106 (from torch==2.3.1)
> Using cached https://download.pytorch.org/whl/cu121/nvidia_curand_cu12-10.3.2.106-py3-none-manylinux1_x86_64.whl (56.5 MB)
> Collecting nvidia-cusolver-cu12==11.4.5.107 (from torch==2.3.1)
> Using cached https://download.pytorch.org/whl/cu121/nvidia_cusolver_cu12-11.4.5.107-py3-none-manylinux1_x86_64.whl (124.2 MB)
> Collecting nvidia-cusparse-cu12==12.1.0.106 (from torch==2.3.1)
> Using cached https://download.pytorch.org/whl/cu121/nvidia_cusparse_cu12-12.1.0.106-py3-none-manylinux1_x86_64.whl (196.0 MB)
> Collecting nvidia-nccl-cu12==2.20.5 (from torch==2.3.1)
> Using cached https://download.pytorch.org/whl/cu121/nvidia_nccl_cu12-2.20.5-py3-none-manylinux2014_x86_64.whl (176.2 MB)
> Collecting nvidia-nvtx-cu12==12.1.105 (from torch==2.3.1)
> Using cached https://download.pytorch.org/whl/cu121/nvidia_nvtx_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (99 kB)
> Collecting numpy (from torchvision==0.18.1)
> Using cached numpy-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (62 kB)
> Collecting pillow!=8.3.*,>=5.3.0 (from torchvision==0.18.1)
> Using cached pillow-11.0.0-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (9.1 kB)
> Collecting nvidia-nvjitlink-cu12 (from nvidia-cusolver-cu12==11.4.5.107->torch==2.3.1)
> Using cached nvidia_nvjitlink_cu12-12.6.85-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl.metadata (1.5 kB)
> Collecting MarkupSafe>=2.0 (from jinja2->torch==2.3.1)
> Using cached MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB)
> Collecting mpmath<1.4,>=1.1.0 (from sympy->torch==2.3.1)
> Using cached https://download.pytorch.org/whl/mpmath-1.3.0-py3-none-any.whl (536 kB)
> Using cached pillow-11.0.0-cp312-cp312-manylinux_2_28_x86_64.whl (4.4 MB)
> Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
> Using cached filelock-3.16.1-py3-none-any.whl (16 kB)
> Using cached fsspec-2024.12.0-py3-none-any.whl (183 kB)
> Using cached jinja2-3.1.5-py3-none-any.whl (134 kB)
> Using cached networkx-3.4.2-py3-none-any.whl (1.7 MB)
> Using cached numpy-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.1 MB)
> Using cached sympy-1.13.3-py3-none-any.whl (6.2 MB)
> Using cached MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23 kB)
> Using cached nvidia_nvjitlink_cu12-12.6.85-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (19.7 MB)
> Installing collected packages: mpmath, typing-extensions, sympy, pillow, nvidia-nvtx-cu12, nvidia-nvjitlink-cu12, nvidia-nccl-cu12, nvidia-curand-cu12, nvidia-cufft-cu12, nvidia-cuda-runtime-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-cupti-cu12, nvidia-cublas-cu12, numpy, networkx, MarkupSafe, fsspec, filelock, nvidia-cusparse-cu12, nvidia-cudnn-cu12, jinja2, nvidia-cusolver-cu12, torch, torchvision
> Successfully installed MarkupSafe-3.0.2 filelock-3.16.1 fsspec-2024.12.0 jinja2-3.1.5 mpmath-1.3.0 networkx-3.4.2 numpy-2.2.1 nvidia-cublas-cu12-12.1.3.1 nvidia-cuda-cupti-cu12-12.1.105 nvidia-cuda-nvrtc-cu12-12.1.105 nvidia-cuda-runtime-cu12-12.1.105 nvidia-cudnn-cu12-8.9.2.26 nvidia-cufft-cu12-11.0.2.54 nvidia-curand-cu12-10.3.2.106 nvidia-cusolver-cu12-11.4.5.107 nvidia-cusparse-cu12-12.1.0.106 nvidia-nccl-cu12-2.20.5 nvidia-nvjitlink-cu12-12.6.85 nvidia-nvtx-cu12-12.1.105 pillow-11.0.0 sympy-1.13.3 torch-2.3.1+cu121 torchvision-0.18.1+cu121 typing-extensions-4.12.2
> Installing clip
> Installing open_clip
> Cloning assets into /opt/stable-diffusion-webui-forge/repositories/stable-diffusion-webui-assets...
> Cloning into '/opt/stable-diffusion-webui-forge/repositories/stable-diffusion-webui-assets'...
> remote: Enumerating objects: 20, done.
> remote: Counting objects: 100% (20/20), done.
> remote: Compressing objects: 100% (18/18), done.
> remote: Total 20 (delta 0), reused 20 (delta 0), pack-reused 0 (from 0)
> Receiving objects: 100% (20/20), 132.70 KiB | 554.00 KiB/s, done.
> Cloning huggingface_guess into /opt/stable-diffusion-webui-forge/repositories/huggingface_guess...
> Cloning into '/opt/stable-diffusion-webui-forge/repositories/huggingface_guess'...
> remote: Enumerating objects: 51, done.
> remote: Counting objects: 100% (51/51), done.
> remote: Compressing objects: 100% (38/38), done.
> remote: Total 51 (delta 29), reused 30 (delta 13), pack-reused 0 (from 0)
> Receiving objects: 100% (51/51), 36.58 KiB | 7.32 MiB/s, done.
> Resolving deltas: 100% (29/29), done.
> Cloning google_blockly into /opt/stable-diffusion-webui-forge/repositories/google_blockly_prototypes...
> Cloning into '/opt/stable-diffusion-webui-forge/repositories/google_blockly_prototypes'...
> remote: Enumerating objects: 62, done.
> remote: Counting objects: 100% (62/62), done.
> remote: Compressing objects: 100% (58/58), done.
> remote: Total 62 (delta 11), reused 52 (delta 1), pack-reused 0 (from 0)
> Receiving objects: 100% (62/62), 1.69 MiB | 1.54 MiB/s, done.
> Resolving deltas: 100% (11/11), done.
> Cloning BLIP into /opt/stable-diffusion-webui-forge/repositories/BLIP...
> Cloning into '/opt/stable-diffusion-webui-forge/repositories/BLIP'...
> remote: Enumerating objects: 277, done.
> remote: Counting objects: 100% (183/183), done.
> remote: Compressing objects: 100% (46/46), done.
> remote: Total 277 (delta 145), reused 137 (delta 137), pack-reused 94 (from 1)
> Receiving objects: 100% (277/277), 7.04 MiB | 3.27 MiB/s, done.
> Resolving deltas: 100% (152/152), done.
> Installing requirements
> Traceback (most recent call last):
> File "/opt/stable-diffusion-webui-forge/launch.py", line 54, in
> main()
> File "/opt/stable-diffusion-webui-forge/launch.py", line 42, in main
> prepare_environment()
> File "/opt/stable-diffusion-webui-forge/modules/launch_utils.py", line 476, in prepare_environment
> run_pip(f"install -r \"{requirements_file}\"", "requirements")
> File "/opt/stable-diffusion-webui-forge/modules/launch_utils.py", line 153, in run_pip
> return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/opt/stable-diffusion-webui-forge/modules/launch_utils.py", line 125, in run
> raise RuntimeError("\n".join(error_bits))
> RuntimeError: Couldn't install requirements.
> Command: "/opt/stable-diffusion-webui-forge/venv/bin/python" -m pip install -r "requirements_versions.txt" --prefer-binary
> Error code: 1
> stdout: Collecting setuptools==69.5.1 (from -r requirements_versions.txt (line 1))
> Using cached setuptools-69.5.1-py3-none-any.whl.metadata (6.2 kB)
> Collecting GitPython==3.1.32 (from -r requirements_versions.txt (line 2))
> Using cached GitPython-3.1.32-py3-none-any.whl.metadata (10.0 kB)
> Collecting Pillow==9.5.0 (from -r requirements_versions.txt (line 3))
> Using cached Pillow-9.5.0.tar.gz (50.5 MB)
> Installing build dependencies: started
> Installing build dependencies: finished with status 'done'
> Getting requirements to build wheel: started
> Getting requirements to build wheel: finished with status 'done'
> Preparing metadata (pyproject.toml): started
> Preparing metadata (pyproject.toml): finished with status 'done'
> Collecting accelerate==0.21.0 (from -r requirements_versions.txt (line 4))
> Using cached accelerate-0.21.0-py3-none-any.whl.metadata (17 kB)
> Collecting blendmodes==2022 (from -r requirements_versions.txt (line 5))
> Using cached blendmodes-2022-py3-none-any.whl.metadata (12 kB)
> Collecting clean-fid==0.1.35 (from -r requirements_versions.txt (line 6))
> Using cached clean_fid-0.1.35-py3-none-any.whl.metadata (36 kB)
> Collecting diskcache==5.6.3 (from -r requirements_versions.txt (line 7))
> Using cached diskcache-5.6.3-py3-none-any.whl.metadata (20 kB)
> Collecting einops==0.4.1 (from -r requirements_versions.txt (line 8))
> Using cached einops-0.4.1-py3-none-any.whl.metadata (10 kB)
> Collecting facexlib==0.3.0 (from -r requirements_versions.txt (line 9))
> Using cached facexlib-0.3.0-py3-none-any.whl.metadata (4.6 kB)
> Collecting fastapi==0.104.1 (from -r requirements_versions.txt (line 10))
> Using cached fastapi-0.104.1-py3-none-any.whl.metadata (24 kB)
> Collecting gradio==4.40.0 (from -r requirements_versions.txt (line 11))
> Using cached gradio-4.40.0-py3-none-any.whl.metadata (15 kB)
> Collecting httpcore==0.15 (from -r requirements_versions.txt (line 12))
> Using cached httpcore-0.15.0-py3-none-any.whl.metadata (15 kB)
> Collecting inflection==0.5.1 (from -r requirements_versions.txt (line 13))
> Using cached inflection-0.5.1-py2.py3-none-any.whl.metadata (1.7 kB)
> Collecting jsonmerge==1.8.0 (from -r requirements_versions.txt (line 14))
> Using cached jsonmerge-1.8.0.tar.gz (26 kB)
> Installing build dependencies: started
> Installing build dependencies: finished with status 'done'
> Getting requirements to build wheel: started
> Getting requirements to build wheel: finished with status 'done'
> Preparing metadata (pyproject.toml): started
> Preparing metadata (pyproject.toml): finished with status 'done'
> Collecting kornia==0.6.7 (from -r requirements_versions.txt (line 15))
> Using cached kornia-0.6.7-py2.py3-none-any.whl.metadata (12 kB)
> Collecting lark==1.1.2 (from -r requirements_versions.txt (line 16))
> Using cached lark-1.1.2-py2.py3-none-any.whl.metadata (1.7 kB)
> Collecting numpy==1.26.2 (from -r requirements_versions.txt (line 17))
> Using cached numpy-1.26.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
> Collecting omegaconf==2.2.3 (from -r requirements_versions.txt (line 18))
> Using cached omegaconf-2.2.3-py3-none-any.whl.metadata (3.9 kB)
> Collecting open-clip-torch==2.20.0 (from -r requirements_versions.txt (line 19))
> Using cached open_clip_torch-2.20.0-py3-none-any.whl.metadata (46 kB)
> Collecting piexif==1.1.3 (from -r requirements_versions.txt (line 20))
> Using cached piexif-1.1.3-py2.py3-none-any.whl.metadata (3.7 kB)
> Requirement already satisfied: protobuf==3.20.0 in ./venv/lib/python3.12/site-packages (from -r requirements_versions.txt (line 21)) (3.20.0)
> Collecting psutil==5.9.5 (from -r requirements_versions.txt (line 22))
> Using cached psutil-5.9.5-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (21 kB)
> Collecting pytorch_lightning==1.9.4 (from -r requirements_versions.txt (line 23))
> Using cached pytorch_lightning-1.9.4-py3-none-any.whl.metadata (22 kB)
> Collecting resize-right==0.0.2 (from -r requirements_versions.txt (line 24))
> Using cached resize_right-0.0.2-py3-none-any.whl.metadata (551 bytes)
> Collecting safetensors==0.4.2 (from -r requirements_versions.txt (line 25))
> Using cached safetensors-0.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.8 kB)
> Collecting scikit-image==0.21.0 (from -r requirements_versions.txt (line 26))
> Using cached scikit_image-0.21.0.tar.gz (22.7 MB)
> Installing build dependencies: started
> Installing build dependencies: finished with status 'done'
> Getting requirements to build wheel: started
> Getting requirements to build wheel: finished with status 'done'
> Installing backend dependencies: started
> Installing backend dependencies: finished with status 'done'
> Preparing metadata (pyproject.toml): started
> Preparing metadata (pyproject.toml): finished with status 'error'
>
> stderr: error: subprocess-exited-with-error
>
> × Preparing metadata (pyproject.toml) did not run successfully.
> │ exit code: 1
> ╰─> [20 lines of output]
> + meson setup /tmp/pip-install-qt1g6th6/scikit-image_6695f73d50f54e7ea89f66dfb675fb23 /tmp/pip-install-qt1g6th6/scikit-image_6695f73d50f54e7ea89f66dfb675fb23/.mesonpy-wgze_os4 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-qt1g6th6/scikit-image_6695f73d50f54e7ea89f66dfb675fb23/.mesonpy-wgze_os4/meson-python-native-file.ini
> The Meson build system
> Version: 1.6.1
> Source dir: /tmp/pip-install-qt1g6th6/scikit-image_6695f73d50f54e7ea89f66dfb675fb23
> Build dir: /tmp/pip-install-qt1g6th6/scikit-image_6695f73d50f54e7ea89f66dfb675fb23/.mesonpy-wgze_os4
> Build type: native build
> Project name: scikit-image
> Project version: 0.21.0
>
> ../meson.build:1:0: ERROR: Unknown compiler(s): [['cc'], ['gcc'], ['clang'], ['nvc'], ['pgcc'], ['icc'], ['icx']]
> The following exception(s) were encountered:
> Running `cc --version` gave "[Errno 2] No such file or directory: 'cc'"
> Running `gcc --version` gave "[Errno 2] No such file or directory: 'gcc'"
> Running `clang --version` gave "[Errno 2] No such file or directory: 'clang'"
> Running `nvc --version` gave "[Errno 2] No such file or directory: 'nvc'"
> Running `pgcc --version` gave "[Errno 2] No such file or directory: 'pgcc'"
> Running `icc --version` gave "[Errno 2] No such file or directory: 'icc'"
> Running `icx --version` gave "[Errno 2] No such file or directory: 'icx'"
>
> A full log can be found at /tmp/pip-install-qt1g6th6/scikit-image_6695f73d50f54e7ea89f66dfb675fb23/.mesonpy-wgze_os4/meson-logs/meson-log.txt
> [end of output]
>
> note: This error originates from a subprocess, and is likely not a problem with pip.
> error: metadata-generation-failed
>
> × Encountered error while generating package metadata.
> ╰─> See above for output.
>
> note: This is an issue with the package mentioned above, not pip.
> hint: See above for details.
I am no idea what the issue is or how to fix it. Any guidance would be much appreciated.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the installation on Manjaro using the reported Python 3.12.7 environment, starting with webui.sh line 258 and the traceback in launch.py, modules/launch_utils.py, and requirements_versions.txt. Check the missing bc message and the Pillow 9.5.0 dependency failure; done means the requirements installation completes without the reported RuntimeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python, pytorch
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100