Open etiennevee opened 1 year ago
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: 5ef669de080814067961f28357256e8fe27544f4
Installing requirements for CodeFormer
Traceback (most recent call last):
File "/Users/USERNAME/stable-diffusion-webui/launch.py", line 48, in
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
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
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: 5ef669de080814067961f28357256e8fe27544f4 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'" Runninggfortran -V
gave "[Errno 2] No such file or directory: 'gfortran'" Runningflang --version
gave "[Errno 2] No such file or directory: 'flang'" Runningflang -V
gave "[Errno 2] No such file or directory: 'flang'" Runningnvfortran --version
gave "[Errno 2] No such file or directory: 'nvfortran'" Runningnvfortran -V
gave "[Errno 2] No such file or directory: 'nvfortran'" Runningpgfortran --version
gave "[Errno 2] No such file or directory: 'pgfortran'" Runningpgfortran -V
gave "[Errno 2] No such file or directory: 'pgfortran'" Runningifort --version
gave "[Errno 2] No such file or directory: 'ifort'" Runningifort -V
gave "[Errno 2] No such file or directory: 'ifort'" Runningifx --version
gave "[Errno 2] No such file or directory: 'ifx'" Runningifx -V
gave "[Errno 2] No such file or directory: 'ifx'" Runningg95 --version
gave "[Errno 2] No such file or directory: 'g95'" Runningg95 -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.