Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubleshooting at installing Stable Diffusion #327

Open
etiennevee opened this issue Sep 19, 2023 · 2 comments
Open

Troubleshooting at installing Stable Diffusion #327

etiennevee opened this issue Sep 19, 2023 · 2 comments

Comments

@etiennevee
Copy link

hey guys,

First of all, I'm not a tech guy at all. So excuse me if my language is very simple in this message.
Note also that I tried for 8 hours yesterday to solve my issue going through the internet. I uninstalled everything including python and stable-diffusion to reinstall everything after. My python version is 3.10.6.

I tried to install stable diffusion and when I'm doing the last step of the process in the terminal:

cd stable-diffusion-webui/
./webui.sh

When I do this command, here is what I receive: (note that for anonymous reason I remove my username to USERNAME)

I would appreciate your help ! Thanks

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

################################################################
Running on USERNAME user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

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

################################################################
Launching launch.py...
################################################################
Python 3.10.13 (main, Aug 24 2023, 22:25:01) [Clang 13.0.0 (clang-1300.0.29.30)]
Version: v1.6.0
Commit hash: 5ef669d
Installing requirements for CodeFormer
Traceback (most recent call last):
File "/Users/USERNAME/stable-diffusion-webui/launch.py", line 48, in
main()
File "/Users/USERNAME/stable-diffusion-webui/launch.py", line 39, in main
prepare_environment()
File "/Users/USERNAME/stable-diffusion-webui/modules/launch_utils.py", line 389, in prepare_environment
run_pip(f"install -r "{os.path.join(repo_dir('CodeFormer'), 'requirements.txt')}"", "requirements for CodeFormer")
File "/Users/USERNAME/stable-diffusion-webui/modules/launch_utils.py", line 138, 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 "/Users/USERNAME/stable-diffusion-webui/modules/launch_utils.py", line 115, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install requirements for CodeFormer.
Command: "/Users/USERNAME/stable-diffusion-webui/venv/bin/python3.10" -m pip install -r "/Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt" --prefer-binary
Error code: 1
stdout: Collecting addict (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 1))
Using cached addict-2.4.0-py3-none-any.whl (3.8 kB)
Collecting future (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 2))
Using cached future-0.18.3.tar.gz (840 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 lmdb (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 3))
Using cached lmdb-1.4.1.tar.gz (881 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'
Requirement already satisfied: numpy in ./venv/lib/python3.10/site-packages (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 4)) (1.26.0)
Collecting opencv-python (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 5))
Obtaining dependency information for opencv-python from https://files.pythonhosted.org/packages/32/a6/4321f0f30ee11d6d85f49251d417f4e885fe7638b5ac50b7e3c80cccf141/opencv_python-4.8.0.76-cp37-abi3-macosx_11_0_arm64.whl.metadata
Using cached opencv_python-4.8.0.76-cp37-abi3-macosx_11_0_arm64.whl.metadata (19 kB)
Requirement already satisfied: Pillow in ./venv/lib/python3.10/site-packages (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 6)) (10.0.1)
Requirement already satisfied: pyyaml in ./venv/lib/python3.10/site-packages (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 7)) (6.0.1)
Requirement already satisfied: requests in ./venv/lib/python3.10/site-packages (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 8)) (2.31.0)
Collecting scikit-image (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 9))
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): still running...
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting scipy (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 10))
Using cached scipy-1.11.2.tar.gz (56.0 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
╰─> [43 lines of output]

  • meson setup /private/var/folders/hh/ch4zx9617_s8r52k3dgxqcj00000gn/T/pip-install-xs4rfpyy/scipy_6c398efb352246e28abc782ffb31d37d /private/var/folders/hh/ch4zx9617_s8r52k3dgxqcj00000gn/T/pip-install-xs4rfpyy/scipy_6c398efb352246e28abc782ffb31d37d/.mesonpy-b856wlfx/build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/private/var/folders/hh/ch4zx9617_s8r52k3dgxqcj00000gn/T/pip-install-xs4rfpyy/scipy_6c398efb352246e28abc782ffb31d37d/.mesonpy-b856wlfx/build/meson-python-native-file.ini
    The Meson build system
    Version: 1.2.1
    Source dir: /private/var/folders/hh/ch4zx9617_s8r52k3dgxqcj00000gn/T/pip-install-xs4rfpyy/scipy_6c398efb352246e28abc782ffb31d37d
    Build dir: /private/var/folders/hh/ch4zx9617_s8r52k3dgxqcj00000gn/T/pip-install-xs4rfpyy/scipy_6c398efb352246e28abc782ffb31d37d/.mesonpy-b856wlfx/build
    Build type: native build
    Project name: SciPy
    Project version: 1.11.2
    C compiler for the host machine: cc (clang 13.0.0 "Apple clang version 13.0.0 (clang-1300.0.29.30)")
    C linker for the host machine: cc ld64 711
    C++ compiler for the host machine: c++ (clang 13.0.0 "Apple clang version 13.0.0 (clang-1300.0.29.30)")
    C++ linker for the host machine: c++ ld64 711
    Cython compiler for the host machine: cython (cython 0.29.36)
    Host machine cpu family: aarch64
    Host machine cpu: aarch64
    Program python found: YES (/Users/USERNAME/stable-diffusion-webui/venv/bin/python3.10)
    Found pkg-config: /opt/homebrew/bin/pkg-config (0.29.2)
    Run-time dependency python found: YES 3.10
    Program cython found: YES (/private/var/folders/hh/ch4zx9617_s8r52k3dgxqcj00000gn/T/pip-build-env-mwkwhdq9/overlay/bin/cython)
    Compiler for C supports arguments -Wno-unused-but-set-variable: NO
    Compiler for C supports arguments -Wno-unused-function: YES
    Compiler for C supports arguments -Wno-conversion: YES
    Compiler for C supports arguments -Wno-misleading-indentation: YES
    Library m found: YES

    ../../meson.build:82:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
    The following exception(s) were encountered:
    Running gfortran --version gave "[Errno 2] No such file or directory: 'gfortran'"
    Running gfortran -V gave "[Errno 2] No such file or directory: 'gfortran'"
    Running flang --version gave "[Errno 2] No such file or directory: 'flang'"
    Running flang -V gave "[Errno 2] No such file or directory: 'flang'"
    Running nvfortran --version gave "[Errno 2] No such file or directory: 'nvfortran'"
    Running nvfortran -V gave "[Errno 2] No such file or directory: 'nvfortran'"
    Running pgfortran --version gave "[Errno 2] No such file or directory: 'pgfortran'"
    Running pgfortran -V gave "[Errno 2] No such file or directory: 'pgfortran'"
    Running ifort --version gave "[Errno 2] No such file or directory: 'ifort'"
    Running ifort -V gave "[Errno 2] No such file or directory: 'ifort'"
    Running ifx --version gave "[Errno 2] No such file or directory: 'ifx'"
    Running ifx -V gave "[Errno 2] No such file or directory: 'ifx'"
    Running g95 --version gave "[Errno 2] No such file or directory: 'g95'"
    Running g95 -V gave "[Errno 2] No such file or directory: 'g95'"

    A full log can be found at /private/var/folders/hh/ch4zx9617_s8r52k3dgxqcj00000gn/T/pip-install-xs4rfpyy/scipy_6c398efb352246e28abc782ffb31d37d/.mesonpy-b856wlfx/build/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.

@etiennevee
Copy link
Author

UPDATE:

Last login: Wed Sep 20 10:20:43 on ttys002
➜ ~ cd stable-diffusion-webui/
➜ stable-diffusion-webui git:(master) ✗ ./webui.sh

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

################################################################
Running on USERNAME user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

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

################################################################
Launching launch.py...
################################################################
Python 3.10.13 (main, Aug 24 2023, 22:25:01) [Clang 13.0.0 (clang-1300.0.29.30)]
Version: v1.6.0
Commit hash: 5ef669d
Installing requirements for CodeFormer
Traceback (most recent call last):
File "/Users/USERNAME/stable-diffusion-webui/launch.py", line 48, in
main()
File "/Users/USERNAME/stable-diffusion-webui/launch.py", line 39, in main
prepare_environment()
File "/Users/USERNAME/stable-diffusion-webui/modules/launch_utils.py", line 389, in prepare_environment
run_pip(f"install -r "{os.path.join(repo_dir('CodeFormer'), 'requirements.txt')}"", "requirements for CodeFormer")
File "/Users/USERNAME/stable-diffusion-webui/modules/launch_utils.py", line 138, 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 "/Users/USERNAME/stable-diffusion-webui/modules/launch_utils.py", line 115, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install requirements for CodeFormer.
Command: "/Users/USERNAME/stable-diffusion-webui/venv/bin/python3.10" -m pip install -r "/Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt" --prefer-binary
Error code: 1
stdout: Collecting addict (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 1))
Using cached addict-2.4.0-py3-none-any.whl (3.8 kB)
Collecting future (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 2))
Using cached future-0.18.3-py3-none-any.whl
Collecting lmdb (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 3))
Using cached lmdb-1.4.1.tar.gz (881 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'
Requirement already satisfied: numpy in ./venv/lib/python3.10/site-packages (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 4)) (1.26.0)
Collecting opencv-python (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 5))
Obtaining dependency information for opencv-python from https://files.pythonhosted.org/packages/32/a6/4321f0f30ee11d6d85f49251d417f4e885fe7638b5ac50b7e3c80cccf141/opencv_python-4.8.0.76-cp37-abi3-macosx_11_0_arm64.whl.metadata
Using cached opencv_python-4.8.0.76-cp37-abi3-macosx_11_0_arm64.whl.metadata (19 kB)
Requirement already satisfied: Pillow in ./venv/lib/python3.10/site-packages (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 6)) (10.0.1)
Requirement already satisfied: pyyaml in ./venv/lib/python3.10/site-packages (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 7)) (6.0.1)
Requirement already satisfied: requests in ./venv/lib/python3.10/site-packages (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 8)) (2.31.0)
Collecting scikit-image (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 9))
Obtaining dependency information for scikit-image from https://files.pythonhosted.org/packages/e0/f7/0ec3a2fbed785259176eb2eee7b254fc68c653028907602231cc8ba09da0/scikit_image-0.21.0-cp310-cp310-macosx_12_0_arm64.whl.metadata
Using cached scikit_image-0.21.0-cp310-cp310-macosx_12_0_arm64.whl.metadata (14 kB)
Collecting scipy (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 10))
Obtaining dependency information for scipy from https://files.pythonhosted.org/packages/63/b9/0344b60e7c577eb637785841222fde8ef7928ec4797be1a34ca39bfe31dc/scipy-1.11.2-cp310-cp310-macosx_12_0_arm64.whl.metadata
Using cached scipy-1.11.2-cp310-cp310-macosx_12_0_arm64.whl.metadata (100 kB)
Collecting tb-nightly (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Obtaining dependency information for tb-nightly from https://files.pythonhosted.org/packages/17/c5/a8578ad562dfb13320e33bd97b35b85fc8fe0986346367fe972bb1eae195/tb_nightly-2.15.0a20230920-py3-none-any.whl.metadata
Downloading tb_nightly-2.15.0a20230920-py3-none-any.whl.metadata (1.8 kB)
Requirement already satisfied: torch>=1.7.1 in ./venv/lib/python3.10/site-packages (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 12)) (2.0.1)
Requirement already satisfied: torchvision in ./venv/lib/python3.10/site-packages (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 13)) (0.15.2)
Requirement already satisfied: tqdm in ./venv/lib/python3.10/site-packages (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 14)) (4.66.1)
Collecting yapf (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 15))
Obtaining dependency information for yapf from https://files.pythonhosted.org/packages/23/75/c374517c09e31bf22d3b3f156d73e0f38d08e29b2afdd607cef5f1e10aa9/yapf-0.40.1-py3-none-any.whl.metadata
Using cached yapf-0.40.1-py3-none-any.whl.metadata (35 kB)
Collecting lpips (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 16))
Using cached lpips-0.1.4-py3-none-any.whl (53 kB)
Collecting gdown (from -r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 17))
Using cached gdown-4.7.1-py3-none-any.whl (15 kB)
Requirement already satisfied: charset-normalizer<4,>=2 in ./venv/lib/python3.10/site-packages (from requests->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 8)) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in ./venv/lib/python3.10/site-packages (from requests->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 8)) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./venv/lib/python3.10/site-packages (from requests->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 8)) (2.0.4)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.10/site-packages (from requests->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 8)) (2023.7.22)
Requirement already satisfied: networkx>=2.8 in ./venv/lib/python3.10/site-packages (from scikit-image->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 9)) (3.1)
Collecting imageio>=2.27 (from scikit-image->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 9))
Obtaining dependency information for imageio>=2.27 from https://files.pythonhosted.org/packages/eb/21/662994d78d8623055f8ffa91838e28f04b2a34bd5d8d6dbc6c7573285ed6/imageio-2.31.3-py3-none-any.whl.metadata
Using cached imageio-2.31.3-py3-none-any.whl.metadata (4.6 kB)
Collecting tifffile>=2022.8.12 (from scikit-image->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 9))
Obtaining dependency information for tifffile>=2022.8.12 from https://files.pythonhosted.org/packages/36/06/b5408ce5edf09a3ee0ee531dadb2afc85ffb7624515b223b226b4a45a1d2/tifffile-2023.9.18-py3-none-any.whl.metadata
Using cached tifffile-2023.9.18-py3-none-any.whl.metadata (30 kB)
Collecting PyWavelets>=1.1.1 (from scikit-image->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 9))
Using cached PyWavelets-1.4.1-cp310-cp310-macosx_11_0_arm64.whl (4.3 MB)
Requirement already satisfied: packaging>=21 in ./venv/lib/python3.10/site-packages (from scikit-image->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 9)) (23.1)
Collecting lazy_loader>=0.2 (from scikit-image->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 9))
Obtaining dependency information for lazy_loader>=0.2 from https://files.pythonhosted.org/packages/a1/c3/65b3814e155836acacf720e5be3b5757130346670ac454fee29d3eda1381/lazy_loader-0.3-py3-none-any.whl.metadata
Using cached lazy_loader-0.3-py3-none-any.whl.metadata (4.3 kB)
Collecting absl-py>=0.4 (from tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Obtaining dependency information for absl-py>=0.4 from https://files.pythonhosted.org/packages/01/e4/dc0a1dcc4e74e08d7abedab278c795eef54a224363bb18f5692f416d834f/absl_py-2.0.0-py3-none-any.whl.metadata
Using cached absl_py-2.0.0-py3-none-any.whl.metadata (2.3 kB)
Collecting grpcio>=1.48.2 (from tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Obtaining dependency information for grpcio>=1.48.2 from https://files.pythonhosted.org/packages/b6/0a/66519bd357b93daeb5c1d6cb3fe7e974308f3b19be05b443e932787ae2c4/grpcio-1.58.0-cp310-cp310-macosx_12_0_universal2.whl.metadata
Using cached grpcio-1.58.0-cp310-cp310-macosx_12_0_universal2.whl.metadata (4.0 kB)
Collecting google-auth<3,>=1.6.3 (from tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Obtaining dependency information for google-auth<3,>=1.6.3 from https://files.pythonhosted.org/packages/9d/44/5a992cb9d7bf8aaae73bc5adaf721ad08731c9d00c1c17999a8691404b0c/google_auth-2.23.0-py2.py3-none-any.whl.metadata
Using cached google_auth-2.23.0-py2.py3-none-any.whl.metadata (4.2 kB)
Collecting google-auth-oauthlib<1.1,>=0.5 (from tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Using cached google_auth_oauthlib-1.0.0-py2.py3-none-any.whl (18 kB)
Collecting markdown>=2.6.8 (from tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Obtaining dependency information for markdown>=2.6.8 from https://files.pythonhosted.org/packages/1a/b5/228c1cdcfe138f1a8e01ab1b54284c8b83735476cb22b6ba251656ed13ad/Markdown-3.4.4-py3-none-any.whl.metadata
Using cached Markdown-3.4.4-py3-none-any.whl.metadata (6.9 kB)
Requirement already satisfied: protobuf<4.24,>=3.19.6 in ./venv/lib/python3.10/site-packages (from tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11)) (3.20.0)
Requirement already satisfied: setuptools>=41.0.0 in ./venv/lib/python3.10/site-packages (from tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11)) (68.1.2)
Collecting six>1.9 (from tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting tensorboard-data-server<0.8.0,>=0.7.0 (from tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Obtaining dependency information for tensorboard-data-server<0.8.0,>=0.7.0 from https://files.pythonhosted.org/packages/da/61/6e9ff8258422d287eec718872fb71e05324356722ab658c8afda25f51539/tensorboard_data_server-0.7.1-py3-none-any.whl.metadata
Using cached tensorboard_data_server-0.7.1-py3-none-any.whl.metadata (1.1 kB)
Collecting werkzeug>=1.0.1 (from tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Obtaining dependency information for werkzeug>=1.0.1 from https://files.pythonhosted.org/packages/9b/59/a7c32e3d8d0e546a206e0552a2c04444544f15c1da4a01df8938d20c6ffc/werkzeug-2.3.7-py3-none-any.whl.metadata
Using cached werkzeug-2.3.7-py3-none-any.whl.metadata (4.1 kB)
Collecting wheel>=0.26 (from tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Obtaining dependency information for wheel>=0.26 from https://files.pythonhosted.org/packages/b8/8b/31273bf66016be6ad22bb7345c37ff350276cfd46e389a0c2ac5da9d9073/wheel-0.41.2-py3-none-any.whl.metadata
Using cached wheel-0.41.2-py3-none-any.whl.metadata (2.2 kB)
Requirement already satisfied: filelock in ./venv/lib/python3.10/site-packages (from torch>=1.7.1->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 12)) (3.12.4)
Requirement already satisfied: typing-extensions in ./venv/lib/python3.10/site-packages (from torch>=1.7.1->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 12)) (4.8.0)
Requirement already satisfied: sympy in ./venv/lib/python3.10/site-packages (from torch>=1.7.1->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 12)) (1.12)
Requirement already satisfied: jinja2 in ./venv/lib/python3.10/site-packages (from torch>=1.7.1->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 12)) (3.1.2)
Collecting importlib-metadata>=6.6.0 (from yapf->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 15))
Obtaining dependency information for importlib-metadata>=6.6.0 from https://files.pythonhosted.org/packages/cc/37/db7ba97e676af155f5fcb1a35466f446eadc9104e25b83366e8088c9c926/importlib_metadata-6.8.0-py3-none-any.whl.metadata
Using cached importlib_metadata-6.8.0-py3-none-any.whl.metadata (5.1 kB)
Collecting platformdirs>=3.5.1 (from yapf->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 15))
Obtaining dependency information for platformdirs>=3.5.1 from https://files.pythonhosted.org/packages/14/51/fe5a0d6ea589f0d4a1b97824fb518962ad48b27cd346dcdfa2405187997a/platformdirs-3.10.0-py3-none-any.whl.metadata
Using cached platformdirs-3.10.0-py3-none-any.whl.metadata (11 kB)
Collecting tomli>=2.0.1 (from yapf->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 15))
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting beautifulsoup4 (from gdown->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 17))
Using cached beautifulsoup4-4.12.2-py3-none-any.whl (142 kB)
Collecting cachetools<6.0,>=2.0.0 (from google-auth<3,>=1.6.3->tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Obtaining dependency information for cachetools<6.0,>=2.0.0 from https://files.pythonhosted.org/packages/a9/c9/c8a7710f2cedcb1db9224fdd4d8307c9e48cbddc46c18b515fefc0f1abbe/cachetools-5.3.1-py3-none-any.whl.metadata
Using cached cachetools-5.3.1-py3-none-any.whl.metadata (5.2 kB)
Collecting pyasn1-modules>=0.2.1 (from google-auth<3,>=1.6.3->tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Using cached pyasn1_modules-0.3.0-py2.py3-none-any.whl (181 kB)
Collecting rsa<5,>=3.1.4 (from google-auth<3,>=1.6.3->tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Using cached rsa-4.9-py3-none-any.whl (34 kB)
Collecting urllib3<3,>=1.21.1 (from requests->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 8))
Obtaining dependency information for urllib3<3,>=1.21.1 from https://files.pythonhosted.org/packages/c5/05/c214b32d21c0b465506f95c4f28ccbcba15022e000b043b72b3df7728471/urllib3-1.26.16-py2.py3-none-any.whl.metadata
Using cached urllib3-1.26.16-py2.py3-none-any.whl.metadata (48 kB)
Collecting requests-oauthlib>=0.7.0 (from google-auth-oauthlib<1.1,>=0.5->tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting zipp>=0.5 (from importlib-metadata>=6.6.0->yapf->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 15))
Obtaining dependency information for zipp>=0.5 from https://files.pythonhosted.org/packages/d9/66/48866fc6b158c81cc2bfecc04c480f105c6040e8b077bc54c634b4a67926/zipp-3.17.0-py3-none-any.whl.metadata
Using cached zipp-3.17.0-py3-none-any.whl.metadata (3.7 kB)
Requirement already satisfied: MarkupSafe>=2.1.1 in ./venv/lib/python3.10/site-packages (from werkzeug>=1.0.1->tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11)) (2.1.3)
Collecting soupsieve>1.2 (from beautifulsoup4->gdown->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 17))
Obtaining dependency information for soupsieve>1.2 from https://files.pythonhosted.org/packages/4c/f3/038b302fdfbe3be7da016777069f26ceefe11a681055ea1f7817546508e3/soupsieve-2.5-py3-none-any.whl.metadata
Using cached soupsieve-2.5-py3-none-any.whl.metadata (4.7 kB)
Collecting PySocks!=1.5.7,>=1.5.6 (from requests->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 8))
Using cached PySocks-1.7.1-py3-none-any.whl (16 kB)
Requirement already satisfied: mpmath>=0.19 in ./venv/lib/python3.10/site-packages (from sympy->torch>=1.7.1->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 12)) (1.3.0)
Collecting pyasn1<0.6.0,>=0.4.6 (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Using cached pyasn1-0.5.0-py2.py3-none-any.whl (83 kB)
Collecting oauthlib>=3.0.0 (from requests-oauthlib>=0.7.0->google-auth-oauthlib<1.1,>=0.5->tb-nightly->-r /Users/USERNAME/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 11))
Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB)
Using cached opencv_python-4.8.0.76-cp37-abi3-macosx_11_0_arm64.whl (33.1 MB)
Using cached scikit_image-0.21.0-cp310-cp310-macosx_12_0_arm64.whl (12.4 MB)
Using cached scipy-1.11.2-cp310-cp310-macosx_12_0_arm64.whl (29.6 MB)
Downloading tb_nightly-2.15.0a20230920-py3-none-any.whl (5.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.5/5.5 MB 1.6 MB/s eta 0:00:00
Using cached yapf-0.40.1-py3-none-any.whl (250 kB)
Using cached absl_py-2.0.0-py3-none-any.whl (130 kB)
Using cached google_auth-2.23.0-py2.py3-none-any.whl (181 kB)
Using cached grpcio-1.58.0-cp310-cp310-macosx_12_0_universal2.whl (9.5 MB)
Using cached imageio-2.31.3-py3-none-any.whl (313 kB)
Using cached importlib_metadata-6.8.0-py3-none-any.whl (22 kB)
Using cached lazy_loader-0.3-py3-none-any.whl (9.1 kB)
Using cached Markdown-3.4.4-py3-none-any.whl (94 kB)
Using cached platformdirs-3.10.0-py3-none-any.whl (17 kB)
Using cached tensorboard_data_server-0.7.1-py3-none-any.whl (2.4 kB)
Using cached tifffile-2023.9.18-py3-none-any.whl (222 kB)
Using cached urllib3-1.26.16-py2.py3-none-any.whl (143 kB)
Using cached werkzeug-2.3.7-py3-none-any.whl (242 kB)
Using cached wheel-0.41.2-py3-none-any.whl (64 kB)
Using cached cachetools-5.3.1-py3-none-any.whl (9.3 kB)
Using cached soupsieve-2.5-py3-none-any.whl (36 kB)
Using cached zipp-3.17.0-py3-none-any.whl (7.4 kB)
Building wheels for collected packages: lmdb
Building wheel for lmdb (pyproject.toml): started
Building wheel for lmdb (pyproject.toml): finished with status 'error'
Failed to build lmdb

stderr: error: subprocess-exited-with-error

× Building wheel for lmdb (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
patching file lmdb.h
patching file mdb.c
py-lmdb: Using bundled liblmdb with py-lmdb patches; override with LMDB_FORCE_SYSTEM=1 or LMDB_PURE=1.
py-lmdb: Using CPython extension; override with LMDB_FORCE_CFFI=1.
running bdist_wheel
running build
running build_py
creating build/lib.macosx-11-arm64-cpython-310
creating build/lib.macosx-11-arm64-cpython-310/lmdb
copying lmdb/cffi.py -> build/lib.macosx-11-arm64-cpython-310/lmdb
copying lmdb/init.py -> build/lib.macosx-11-arm64-cpython-310/lmdb
copying lmdb/_config.py -> build/lib.macosx-11-arm64-cpython-310/lmdb
copying lmdb/tool.py -> build/lib.macosx-11-arm64-cpython-310/lmdb
copying lmdb/main.py -> build/lib.macosx-11-arm64-cpython-310/lmdb
running build_ext
building 'cpython' extension
creating build/temp.macosx-11-arm64-cpython-310
creating build/temp.macosx-11-arm64-cpython-310/build
creating build/temp.macosx-11-arm64-cpython-310/build/lib
creating build/temp.macosx-11-arm64-cpython-310/lmdb
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Ilib/py-lmdb -Ibuild/lib -I/Users/USERNAME/stable-diffusion-webui/venv/include -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c build/lib/mdb.c -o build/temp.macosx-11-arm64-cpython-310/build/lib/mdb.o -DHAVE_PATCHED_LMDB=1 -UNDEBUG -w
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lmdb
ERROR: Could not build wheels for lmdb, which is required to install pyproject.toml-based projects

@bhanuj10
Copy link

Hi @etiennevee i am not a mac user but i'll tell you my suggestions

By seeing the last lines i noticed that you have not installed xcode it's like some command line tool for mac

xcode-select --version

Use this in your terminal to check whether xcode is installed or not. ^

If it shows the version then fine its installed. Run the below line to reset xcode configuration

sudo xcode-select --reset

If not run the below code :

xcode-select --install

After this you can try running the webui.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants