stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: Installing gfpgan error 安装gfpgan出错

Open starsfalldown opened this issue 3 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

venv "C:\Users\小行星坠落StarFallDown\Desktop\stable-diffusion-webui-master\venv\Scripts\Python.exe" Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] Commit hash: Installing gfpgan Traceback (most recent call last): File "C:\Users\小行星坠落StarFallDown\Desktop\stable-diffusion-webui-master\launch.py", line 251, in prepare_enviroment() File "C:\Users\小行星坠落StarFallDown\Desktop\stable-diffusion-webui-master\launch.py", line 175, in prepare_enviroment run_pip(f"install {gfpgan_package}", "gfpgan") File "C:\Users\小行星坠落StarFallDown\Desktop\stable-diffusion-webui-master\launch.py", line 63, 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 "C:\Users\小行星坠落StarFallDown\Desktop\stable-diffusion-webui-master\launch.py", line 34, in run raise RuntimeError(message) RuntimeError: Couldn't install gfpgan. Command: "C:\Users\小行星坠落StarFallDown\Desktop\stable-diffusion-webui-master\venv\Scripts\python.exe" -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 c:\users\С׹starfalldown\appdata\local\temp\pip-req-build-8a5qa_r_

stderr: Running command git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 'C:\Users\С׹StarFallDown\AppData\Local\Temp\pip-req-build-8a5qa_r_' fatal: unable to access 'https://github.com/TencentARC/GFPGAN.git/': Failed to connect to github.com port 443 after 2086 ms: Connection refused error: subprocess-exited-with-error

git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 'C:\Users\С׹StarFallDown\AppData\Local\Temp\pip-req-build-8a5qa_r_' did not run successfully. exit code: 128

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 'C:\Users\С׹StarFallDown\AppData\Local\Temp\pip-req-build-8a5qa_r_' did not run successfully. exit code: 128

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip available: 22.2.2 -> 22.3.1 [notice] To update, run: C:\Users\С׹StarFallDown\Desktop\stable-diffusion-webui-master\venv\Scripts\python.exe -m pip install --upgrade pip

请按任意键继续. . .

Steps to reproduce the problem

open the webui-user.bat,and output error. 打开webui-user.bat后输出了这些错误 具体看上面

What should have happened?

正常打开 correct open

Commit where the problem happens

cmd/terminal

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

No response

Additional information, context and logs

No response

starsfalldown avatar Nov 11 '22 10:11 starsfalldown

求求大佬解答 PLEASE help me!!!

starsfalldown avatar Nov 11 '22 10:11 starsfalldown

Failed to connect to github.com port 443 after 2086 ms: Connection refused

This would indicate you have a networking issue. If you are accessing via a VPN, i would suggest turning it off and trying again. Also, i would also suggest doing a git pull in the root directory of stable-diffusion-webui to make sure you have the most up to date version.

askmyteapot avatar Nov 11 '22 10:11 askmyteapot

Please try to ask questions in English. For network issue, please refer to https://draw.dianas.cyou/install/WebUi/Troubleshoot/ 请尽量以英文提问,关于网络问题,请参考 https://draw.dianas.cyou/install/WebUi/Troubleshoot/ 。如果你看不懂或者不会处理,请使用别人打包好的版本吧。

dtlnor avatar Nov 11 '22 13:11 dtlnor

I have VPN installed. I have turned on the TUN mode of clash, but the error still occurs. (I re-cloned the repo)

starsfalldown avatar Nov 15 '22 13:11 starsfalldown

I have VPN installed. I have turned on the TUN mode of clash, but the error still occurs. (I re-cloned the repo)

Try to set git proxy to your vpn.

dtlnor avatar Nov 16 '22 02:11 dtlnor

I sovled! I'm using clash for windows, so we need to set git proxy in Terminal git config --global http.proxy http://127.0.0.1:7890

lililili2587 avatar Jan 28 '23 05:01 lililili2587

Please try to ask questions in English. For network issue, please refer to https://draw.dianas.cyou/install/WebUi/Troubleshoot/ 请尽量以英文提问,关于网络问题,请参考 https://draw.dianas.cyou/install/WebUi/Troubleshoot/ 。如果你看不懂或者不会处理,请使用别人打包好的版本吧。

用中文有什么问题?

Saicat avatar Mar 26 '23 06:03 Saicat

I sovled! I'm using clash for windows, so we need to set git proxy in Terminal git config --global http.proxy http://127.0.0.1:7890

Nice, it works. Config https proxy at the same time could be much better.

git config --global https.proxy http://127.0.0.1:your_port_number

epicmars avatar May 21 '23 12:05 epicmars