You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there
I've been trying for a couple days now to install the stable diffusion web ui on my Mac M1 but keep running into the same error when I run ./webui.sh command. I'm just an artist and not very familiar with coding so I'm not sure what all these error messages mean. I've made sure to update my python to 3.10 and have followed all the Apple Silicon instructions. If anyone could help or let me know what they think I would really appreciate it!
Here is the error message:
Installing gfpgan
Traceback (most recent call last):
File "/Users/williammacnamara/stable-diffusion-webui/launch.py", line 38, in
main()
File "/Users/williammacnamara/stable-diffusion-webui/launch.py", line 29, in main
prepare_environment()
File "/Users/williammacnamara/stable-diffusion-webui/modules/launch_utils.py", line 263, in prepare_environment
run_pip(f"install {gfpgan_package}", "gfpgan")
File "/Users/williammacnamara/stable-diffusion-webui/modules/launch_utils.py", line 124, 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/williammacnamara/stable-diffusion-webui/modules/launch_utils.py", line 101, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install gfpgan.
Command: "/Users/williammacnamara/stable-diffusion-webui/venv/bin/python3.10" -m pip install https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip --prefer-binary
Error code: 1
stdout: Collecting https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip
Using cached https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip (6.0 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting basicsr>=1.4.2
Using cached basicsr-1.4.2.tar.gz (172 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting facexlib>=0.2.5
Using cached facexlib-0.3.0-py3-none-any.whl (59 kB)
Collecting lmdb
Using cached lmdb-1.4.1.tar.gz (881 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: numpy in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (1.25.0)
Collecting opencv-python
Using cached opencv_python-4.7.0.72-cp37-abi3-macosx_11_0_arm64.whl (32.6 MB)
Collecting pyyaml
Using cached PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl (173 kB)
Collecting scipy
Using cached scipy-1.10.1.tar.gz (42.4 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
╰─> [40 lines of output]
The Meson build system
Version: 1.1.1
Source dir: /private/var/folders/cb/f0f0fxq956x4z29tgjkwq7gw0000gn/T/pip-install-dezrtuic/scipy_6b81740f00814d78a8bb989bfb1a6241
Build dir: /private/var/folders/cb/f0f0fxq956x4z29tgjkwq7gw0000gn/T/pip-install-dezrtuic/scipy_6b81740f00814d78a8bb989bfb1a6241/.mesonpy-yfwdn8m3/build
Build type: native build
Project name: SciPy
Project version: 1.10.1
C compiler for the host machine: cc (clang 12.0.5 "Apple clang version 12.0.5 (clang-1205.0.22.9)")
C linker for the host machine: cc ld64 650.9
C++ compiler for the host machine: c++ (clang 12.0.5 "Apple clang version 12.0.5 (clang-1205.0.22.9)")
C++ linker for the host machine: c++ ld64 650.9
Cython compiler for the host machine: cython (cython 0.29.35)
Host machine cpu family: aarch64
Host machine cpu: aarch64
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
Compiler for C supports arguments -Wno-incompatible-pointer-types: YES
Library m found: YES
Fortran compiler for the host machine: gfortran (gcc 13.1.0 "GNU Fortran (Homebrew GCC 13.1.0) 13.1.0")
Fortran linker for the host machine: gfortran ld64 650.9
Compiler for Fortran supports arguments -Wno-conversion: YES
Checking if "-Wl,--version-script" : links: NO
Program cython found: YES (/private/var/folders/cb/f0f0fxq956x4z29tgjkwq7gw0000gn/T/pip-build-env-be477uto/overlay/bin/cython)
Program python found: YES (/Users/williammacnamara/stable-diffusion-webui/venv/bin/python3.10)
Found pkg-config: /opt/homebrew/bin/pkg-config (0.29.2)
Program pythran found: YES (/private/var/folders/cb/f0f0fxq956x4z29tgjkwq7gw0000gn/T/pip-build-env-be477uto/overlay/bin/pythran)
Run-time dependency threads found: YES
Library npymath found: YES
Library npyrandom found: YES
Found CMake: /opt/homebrew/bin/cmake (3.26.4)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
../../scipy/meson.build:134:7: ERROR: Dependency "OpenBLAS" not found, tried pkgconfig, framework and cmake
A full log can be found at /private/var/folders/cb/f0f0fxq956x4z29tgjkwq7gw0000gn/T/pip-install-dezrtuic/scipy_6b81740f00814d78a8bb989bfb1a6241/.mesonpy-yfwdn8m3/build/meson-logs/meson-log.txt
+ meson setup --prefix=/Library/Frameworks/Python.framework/Versions/3.10 /private/var/folders/cb/f0f0fxq956x4z29tgjkwq7gw0000gn/T/pip-install-dezrtuic/scipy_6b81740f00814d78a8bb989bfb1a6241 /private/var/folders/cb/f0f0fxq956x4z29tgjkwq7gw0000gn/T/pip-install-dezrtuic/scipy_6b81740f00814d78a8bb989bfb1a6241/.mesonpy-yfwdn8m3/build --native-file=/private/var/folders/cb/f0f0fxq956x4z29tgjkwq7gw0000gn/T/pip-install-dezrtuic/scipy_6b81740f00814d78a8bb989bfb1a6241/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
[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.
[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: pip install --upgrade pip
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there
I've been trying for a couple days now to install the stable diffusion web ui on my Mac M1 but keep running into the same error when I run ./webui.sh command. I'm just an artist and not very familiar with coding so I'm not sure what all these error messages mean. I've made sure to update my python to 3.10 and have followed all the Apple Silicon instructions. If anyone could help or let me know what they think I would really appreciate it!
Here is the error message:
Installing gfpgan
Traceback (most recent call last):
File "/Users/williammacnamara/stable-diffusion-webui/launch.py", line 38, in
main()
File "/Users/williammacnamara/stable-diffusion-webui/launch.py", line 29, in main
prepare_environment()
File "/Users/williammacnamara/stable-diffusion-webui/modules/launch_utils.py", line 263, in prepare_environment
run_pip(f"install {gfpgan_package}", "gfpgan")
File "/Users/williammacnamara/stable-diffusion-webui/modules/launch_utils.py", line 124, 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/williammacnamara/stable-diffusion-webui/modules/launch_utils.py", line 101, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install gfpgan.
Command: "/Users/williammacnamara/stable-diffusion-webui/venv/bin/python3.10" -m pip install https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip --prefer-binary
Error code: 1
stdout: Collecting https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip
Using cached https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip (6.0 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting basicsr>=1.4.2
Using cached basicsr-1.4.2.tar.gz (172 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting facexlib>=0.2.5
Using cached facexlib-0.3.0-py3-none-any.whl (59 kB)
Collecting lmdb
Using cached lmdb-1.4.1.tar.gz (881 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: numpy in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (1.25.0)
Collecting opencv-python
Using cached opencv_python-4.7.0.72-cp37-abi3-macosx_11_0_arm64.whl (32.6 MB)
Collecting pyyaml
Using cached PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl (173 kB)
Collecting scipy
Using cached scipy-1.10.1.tar.gz (42.4 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
╰─> [40 lines of output]
The Meson build system
Version: 1.1.1
Source dir: /private/var/folders/cb/f0f0fxq956x4z29tgjkwq7gw0000gn/T/pip-install-dezrtuic/scipy_6b81740f00814d78a8bb989bfb1a6241
Build dir: /private/var/folders/cb/f0f0fxq956x4z29tgjkwq7gw0000gn/T/pip-install-dezrtuic/scipy_6b81740f00814d78a8bb989bfb1a6241/.mesonpy-yfwdn8m3/build
Build type: native build
Project name: SciPy
Project version: 1.10.1
C compiler for the host machine: cc (clang 12.0.5 "Apple clang version 12.0.5 (clang-1205.0.22.9)")
C linker for the host machine: cc ld64 650.9
C++ compiler for the host machine: c++ (clang 12.0.5 "Apple clang version 12.0.5 (clang-1205.0.22.9)")
C++ linker for the host machine: c++ ld64 650.9
Cython compiler for the host machine: cython (cython 0.29.35)
Host machine cpu family: aarch64
Host machine cpu: aarch64
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
Compiler for C supports arguments -Wno-incompatible-pointer-types: YES
Library m found: YES
Fortran compiler for the host machine: gfortran (gcc 13.1.0 "GNU Fortran (Homebrew GCC 13.1.0) 13.1.0")
Fortran linker for the host machine: gfortran ld64 650.9
Compiler for Fortran supports arguments -Wno-conversion: YES
Checking if "-Wl,--version-script" : links: NO
Program cython found: YES (/private/var/folders/cb/f0f0fxq956x4z29tgjkwq7gw0000gn/T/pip-build-env-be477uto/overlay/bin/cython)
Program python found: YES (/Users/williammacnamara/stable-diffusion-webui/venv/bin/python3.10)
Found pkg-config: /opt/homebrew/bin/pkg-config (0.29.2)
Program pythran found: YES (/private/var/folders/cb/f0f0fxq956x4z29tgjkwq7gw0000gn/T/pip-build-env-be477uto/overlay/bin/pythran)
Run-time dependency threads found: YES
Library npymath found: YES
Library npyrandom found: YES
Found CMake: /opt/homebrew/bin/cmake (3.26.4)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
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.
[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: pip install --upgrade pip
Beta Was this translation helpful? Give feedback.
All reactions