Installing SD on mac ventura 13.5 #12208
Unanswered
oxidizer05
asked this question in
Q&A
Replies: 1 comment 1 reply
-
same problem! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Installing gfpgan
Traceback (most recent call last):
File "/Users/nastusa/stable-diffusion-webui/launch.py", line 39, in
main()
File "/Users/nastusa/stable-diffusion-webui/launch.py", line 30, in main
prepare_environment()
File "/Users/nastusa/stable-diffusion-webui/modules/launch_utils.py", line 320, in prepare_environment
run_pip(f"install {gfpgan_package}", "gfpgan")
File "/Users/nastusa/stable-diffusion-webui/modules/launch_utils.py", line 136, 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/nastusa/stable-diffusion-webui/modules/launch_utils.py", line 113, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install gfpgan.
Command: "/Users/nastusa/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-cp310-cp310-macosx_11_0_x86_64.whl (101 kB)
Requirement already satisfied: numpy in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (1.25.1)
Collecting opencv-python
Using cached opencv_python-4.8.0.74-cp37-abi3-macosx_10_16_x86_64.whl (54.6 MB)
Collecting pyyaml
Using cached PyYAML-6.0.1-cp310-cp310-macosx_10_9_x86_64.whl (189 kB)
Collecting scipy
Using cached scipy-1.11.1-cp310-cp310-macosx_10_9_x86_64.whl (37.2 MB)
Collecting tb-nightly
Using cached tb_nightly-2.14.0a20230730-py3-none-any.whl (5.5 MB)
Requirement already satisfied: torch>=1.7 in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (2.0.1)
Requirement already satisfied: torchvision in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (0.15.2)
Collecting tqdm
Using cached tqdm-4.65.0-py3-none-any.whl (77 kB)
Collecting yapf
Using cached yapf-0.40.1-py3-none-any.whl (250 kB)
Collecting addict
Using cached addict-2.4.0-py3-none-any.whl (3.8 kB)
Collecting future
Using cached future-0.18.3.tar.gz (840 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: Pillow in ./venv/lib/python3.10/site-packages (from basicsr>=1.4.2->gfpgan==1.3.5) (10.0.0)
Requirement already satisfied: requests in ./venv/lib/python3.10/site-packages (from basicsr>=1.4.2->gfpgan==1.3.5) (2.31.0)
Collecting scikit-image
Using cached scikit_image-0.21.0-cp310-cp310-macosx_10_9_x86_64.whl (13.0 MB)
Collecting numba
Using cached numba-0.57.1-cp310-cp310-macosx_10_9_x86_64.whl (2.5 MB)
Collecting filterpy
Using cached filterpy-1.4.5.zip (177 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: sympy in ./venv/lib/python3.10/site-packages (from torch>=1.7->gfpgan==1.3.5) (1.12)
Requirement already satisfied: jinja2 in ./venv/lib/python3.10/site-packages (from torch>=1.7->gfpgan==1.3.5) (3.1.2)
Requirement already satisfied: networkx in ./venv/lib/python3.10/site-packages (from torch>=1.7->gfpgan==1.3.5) (3.1)
Requirement already satisfied: typing-extensions in ./venv/lib/python3.10/site-packages (from torch>=1.7->gfpgan==1.3.5) (4.7.1)
Requirement already satisfied: filelock in ./venv/lib/python3.10/site-packages (from torch>=1.7->gfpgan==1.3.5) (3.12.2)
Collecting google-auth-oauthlib<1.1,>=0.5
Using cached google_auth_oauthlib-1.0.0-py2.py3-none-any.whl (18 kB)
Collecting grpcio>=1.48.2
Using cached grpcio-1.56.2-cp310-cp310-macosx_12_0_universal2.whl (8.8 MB)
Collecting markdown>=2.6.8
Using cached Markdown-3.4.4-py3-none-any.whl (94 kB)
Collecting werkzeug>=1.0.1
Using cached Werkzeug-2.3.6-py3-none-any.whl (242 kB)
Collecting protobuf>=3.19.6
Using cached protobuf-4.23.4-cp37-abi3-macosx_10_9_universal2.whl (400 kB)
Collecting google-auth<3,>=1.6.3
Using cached google_auth-2.22.0-py2.py3-none-any.whl (181 kB)
Requirement already satisfied: setuptools>=41.0.0 in ./venv/lib/python3.10/site-packages (from tb-nightly->gfpgan==1.3.5) (65.5.0)
Collecting tensorboard-data-server<0.8.0,>=0.7.0
Using cached tensorboard_data_server-0.7.1-py3-none-macosx_10_9_x86_64.whl (4.8 MB)
Collecting wheel>=0.26
Using cached wheel-0.41.0-py3-none-any.whl (64 kB)
Collecting absl-py>=0.4
Using cached absl_py-1.4.0-py3-none-any.whl (126 kB)
Collecting platformdirs>=3.5.1
Using cached platformdirs-3.10.0-py3-none-any.whl (17 kB)
Collecting importlib-metadata>=6.6.0
Using cached importlib_metadata-6.8.0-py3-none-any.whl (22 kB)
Collecting tomli>=2.0.1
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting six>=1.9.0
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pyasn1-modules>=0.2.1
Using cached pyasn1_modules-0.3.0-py2.py3-none-any.whl (181 kB)
Collecting rsa<5,>=3.1.4
Using cached rsa-4.9-py3-none-any.whl (34 kB)
Collecting urllib3<2.0
Using cached urllib3-1.26.16-py2.py3-none-any.whl (143 kB)
Collecting cachetools<6.0,>=2.0.0
Using cached cachetools-5.3.1-py3-none-any.whl (9.3 kB)
Collecting requests-oauthlib>=0.7.0
Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting zipp>=0.5
Using cached zipp-3.16.2-py3-none-any.whl (7.2 kB)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.10/site-packages (from requests->basicsr>=1.4.2->gfpgan==1.3.5) (2023.7.22)
Requirement already satisfied: idna<4,>=2.5 in ./venv/lib/python3.10/site-packages (from requests->basicsr>=1.4.2->gfpgan==1.3.5) (3.4)
Requirement already satisfied: charset-normalizer<4,>=2 in ./venv/lib/python3.10/site-packages (from requests->basicsr>=1.4.2->gfpgan==1.3.5) (3.2.0)
Requirement already satisfied: MarkupSafe>=2.1.1 in ./venv/lib/python3.10/site-packages (from werkzeug>=1.0.1->tb-nightly->gfpgan==1.3.5) (2.1.3)
Collecting matplotlib
Using cached matplotlib-3.7.2-cp310-cp310-macosx_10_12_x86_64.whl (7.4 MB)
Collecting numpy
Using cached numpy-1.24.4-cp310-cp310-macosx_10_9_x86_64.whl (19.8 MB)
Collecting llvmlite<0.41,>=0.40.0dev0
Using cached llvmlite-0.40.1-cp310-cp310-macosx_10_9_x86_64.whl (30.4 MB)
Collecting PyWavelets>=1.1.1
Using cached PyWavelets-1.4.1-cp310-cp310-macosx_10_13_x86_64.whl (4.4 MB)
Collecting tifffile>=2022.8.12
Using cached tifffile-2023.7.18-py3-none-any.whl (221 kB)
Collecting imageio>=2.27
Using cached imageio-2.31.1-py3-none-any.whl (313 kB)
Collecting packaging>=21
Using cached packaging-23.1-py3-none-any.whl (48 kB)
Collecting lazy_loader>=0.2
Using cached lazy_loader-0.3-py3-none-any.whl (9.1 kB)
Requirement already satisfied: mpmath>=0.19 in ./venv/lib/python3.10/site-packages (from sympy->torch>=1.7->gfpgan==1.3.5) (1.3.0)
Collecting pyasn1<0.6.0,>=0.4.6
Using cached pyasn1-0.5.0-py2.py3-none-any.whl (83 kB)
Collecting oauthlib>=3.0.0
Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB)
Collecting fonttools>=4.22.0
Using cached fonttools-4.41.1-cp310-cp310-macosx_10_9_x86_64.whl (2.2 MB)
Collecting contourpy>=1.0.1
Using cached contourpy-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl (243 kB)
Collecting python-dateutil>=2.7
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting cycler>=0.10
Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting pyparsing<3.1,>=2.3.1
Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting kiwisolver>=1.0.1
Using cached kiwisolver-1.4.4-cp310-cp310-macosx_10_9_x86_64.whl (65 kB)
Installing collected packages: lmdb, addict, zipp, wheel, werkzeug, urllib3, tqdm, tomli, tensorboard-data-server, six, pyyaml, pyparsing, pyasn1, protobuf, platformdirs, packaging, oauthlib, numpy, markdown, llvmlite, lazy_loader, kiwisolver, grpcio, future, fonttools, cycler, cachetools, absl-py, tifffile, scipy, rsa, PyWavelets, python-dateutil, pyasn1-modules, opencv-python, numba, importlib-metadata, imageio, contourpy, yapf, scikit-image, requests-oauthlib, matplotlib, google-auth, google-auth-oauthlib, filterpy, tb-nightly, facexlib, basicsr, gfpgan
Attempting uninstall: urllib3
Found existing installation: urllib3 2.0.4
Uninstalling urllib3-2.0.4:
Successfully uninstalled urllib3-2.0.4
Attempting uninstall: numpy
Found existing installation: numpy 1.25.1
Uninstalling numpy-1.25.1:
Successfully uninstalled numpy-1.25.1
Running setup.py install for future: started
Running setup.py install for future: finished with status 'done'
Running setup.py install for filterpy: started
Running setup.py install for filterpy: finished with status 'done'
Running setup.py install for basicsr: started
Running setup.py install for basicsr: finished with status 'error'
stderr: DEPRECATION: future is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
DEPRECATION: filterpy is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
DEPRECATION: basicsr is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
error: subprocess-exited-with-error
× Running setup.py install for basicsr did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
/Users/nastusa/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/private/var/folders/hr/rsc9b5bn5nb1q9wdw16wmrk40000gp/T/pip-install-nprrlh3v/basicsr_97f65d48b9424f33b8b54255c4604a15/setup.py", line 147, in
setup(
File "/Users/nastusa/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/init.py", line 86, in setup
_install_setup_requires(attrs)
File "/Users/nastusa/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/init.py", line 80, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/Users/nastusa/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/dist.py", line 875, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/Users/nastusa/stable-diffusion-webui/venv/lib/python3.10/site-packages/pkg_resources/init.py", line 789, in resolve
dist = best[req.key] = env.best_match(
File "/Users/nastusa/stable-diffusion-webui/venv/lib/python3.10/site-packages/pkg_resources/init.py", line 1075, in best_match
return self.obtain(req, installer)
File "/Users/nastusa/stable-diffusion-webui/venv/lib/python3.10/site-packages/pkg_resources/init.py", line 1087, in obtain
return installer(requirement)
File "/Users/nastusa/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/dist.py", line 945, in fetch_build_egg
return fetch_build_egg(self, req)
File "/Users/nastusa/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/installer.py", line 87, in fetch_build_egg
wheel.install_as_egg(dist_location)
File "/Users/nastusa/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/wheel.py", line 110, in install_as_egg
self._install_as_egg(destination_eggdir, zf)
File "/Users/nastusa/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/wheel.py", line 118, in _install_as_egg
self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
File "/Users/nastusa/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/wheel.py", line 162, in _convert_metadata
os.rename(dist_info, egg_info)
OSError: [Errno 66] Directory not empty: '/private/var/folders/hr/rsc9b5bn5nb1q9wdw16wmrk40000gp/T/pip-install-nprrlh3v/basicsr_97f65d48b9424f33b8b54255c4604a15/.eggs/Cython-3.0.0-py3.10-macosx-10.9-universal2.egg/Cython-3.0.0.dist-info' -> '/private/var/folders/hr/rsc9b5bn5nb1q9wdw16wmrk40000gp/T/pip-install-nprrlh3v/basicsr_97f65d48b9424f33b8b54255c4604a15/.eggs/Cython-3.0.0-py3.10-macosx-10.9-universal2.egg/EGG-INFO'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> basicsr
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Beta Was this translation helpful? Give feedback.
All reactions