Replies: 2 comments 4 replies
-
UPDATE -- it's working now.
|
Beta Was this translation helpful? Give feedback.
4 replies
-
Same issue here, installation gfpgam only worked after explicitly using python3.10 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have got errors during installation on Linux. Which happens both in auto or manual way of the install.
I'm on Fedora 37, and python 3.11.1 through dnf.
It seems like it is limited to python version <3.11?
Anyone has similar experience?
`################################################################
Create and activate python venv
################################################################
################################################################
Launching launch.py...
################################################################
Python 3.11.1 (main, Jan 6 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)]
Commit hash: c98cb0f
Installing torch and torchvision
Installing gfpgan
Traceback (most recent call last):
File "/home/eric/stable-diffusion-webui/launch.py", line 316, in
prepare_environment()
File "/home/eric/stable-diffusion-webui/launch.py", line 231, in prepare_environment
run_pip(f"install {gfpgan_package}", "gfpgan")
File "/home/eric/stable-diffusion-webui/launch.py", line 97, in run_pip
return run(f'"{python}" -m pip {args} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/eric/stable-diffusion-webui/launch.py", line 65, in run
raise RuntimeError(message)
RuntimeError: Couldn't install gfpgan.
Command: "/home/eric/stable-diffusion-webui/venv/bin/python3" -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 --prefer-binary
Error code: 1
stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to /tmp/pip-req-build-b8_15f1z
Resolved https://github.com/TencentARC/GFPGAN.git to commit 8d2447a2d918f8eba5a4a01463fd48e45126a379
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.2.5-py3-none-any.whl (59 kB)
Collecting lmdb
Using cached lmdb-1.4.0.tar.gz (881 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: numpy in ./venv/lib64/python3.11/site-packages (from gfpgan==1.3.5) (1.24.1)
Collecting opencv-python
Using cached opencv_python-4.7.0.68-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (61.8 MB)
Collecting pyyaml
Using cached PyYAML-6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB)
Collecting scipy
Using cached scipy-1.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.1 MB)
Collecting tb-nightly
Using cached tb_nightly-2.12.0a20230120-py3-none-any.whl (5.6 MB)
Requirement already satisfied: torch>=1.7 in ./venv/lib64/python3.11/site-packages (from gfpgan==1.3.5) (1.13.1)
Requirement already satisfied: torchvision in ./venv/lib64/python3.11/site-packages (from gfpgan==1.3.5) (0.2.0)
Collecting tqdm
Using cached tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
Collecting yapf
Using cached yapf-0.32.0-py2.py3-none-any.whl (190 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/lib64/python3.11/site-packages (from basicsr>=1.4.2->gfpgan==1.3.5) (9.4.0)
Collecting requests
Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting scikit-image
Using cached scikit-image-0.19.3.tar.gz (22.2 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 filterpy
Using cached filterpy-1.4.5.zip (177 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting numba
Using cached numba-0.56.4.tar.gz (2.4 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
stderr: Running command git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git /tmp/pip-req-build-b8_15f1z
Running command git rev-parse -q --verify 'sha^8d2447a2d918f8eba5a4a01463fd48e45126a379'
Running command git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379
Running command git checkout -q 8d2447a2d918f8eba5a4a01463fd48e45126a379
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-sxic9qi_/numba_231196202e60414393502798b5c7cc6e/setup.py", line 51, in
guard_py_ver()
File "/tmp/pip-install-sxic9qi/numba_231196202e60414393502798b5c7cc6e/setup.py", line 48, in _guard_py_ver
raise RuntimeError(msg.format(cur_py, min_py, max_py))
RuntimeError: Cannot install on Python version 3.11.1; only versions >=3.7,<3.11 are supported.
[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.2.2 -> 22.3.1
[notice] To update, run: pip install --upgrade pip
`
Beta Was this translation helpful? Give feedback.
All reactions