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

[Bug]: Unable to start UI, first time launching webui-user.bat

Open teslashark opened this issue 2 years ago • 15 comments

Is there an existing issue for this?

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

What happened?

First time launching webui-user.bat after following installation instructions, fatal error occurred, please see console log.

Steps to reproduce the problem

  1. Go to installation folder E:\stable-diffusion-webui
  2. Press enter on webui-user.bat
  3. Wait

What should have happened?

Web UI successfully built

Commit where the problem happens

Unable to launch UI, Commit hash: 3715ece0adce7bf7c5e9c5ab3710b2fdc3848f39

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

None

List of extensions

None

Console logs

venv "E:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 3715ece0adce7bf7c5e9c5ab3710b2fdc3848f39
Installing clip
Traceback (most recent call last):
  File "E:\stable-diffusion-webui\launch.py", line 360, in <module>
    prepare_environment()
  File "E:\stable-diffusion-webui\launch.py", line 278, in prepare_environment
    run_pip(f"install {clip_package}", "clip")
  File "E:\stable-diffusion-webui\launch.py", line 137, 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 "E:\stable-diffusion-webui\launch.py", line 105, in run
    raise RuntimeError(message)
RuntimeError: Couldn't install clip.
Command: "E:\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 --prefer-binary
Error code: 1
stdout: Collecting git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
  Cloning https://github.com/openai/CLIP.git (to revision d50d76daa670286dd6cacf3bcd80b5e4823fc8e1) to c:\users\ggsha\appdata\local\temp\pip-req-build-o6chq2ap

stderr:   Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-o6chq2ap'
  fatal: unable to access 'https://github.com/openai/CLIP.git/': Failed to connect to github.com port 443 after 21063 ms: Couldn't connect to server
  error: subprocess-exited-with-error

  git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-o6chq2ap' 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/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-o6chq2ap' 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.



### Additional information
PIP is manually updated.

teslashark avatar Feb 19 '23 04:02 teslashark

if your country blocks access to github, you need vpn or another way around to access: https://github.com/openai/CLIP.git

ClashSAN avatar Feb 19 '23 05:02 ClashSAN

if your country blocks access to github, you need vpn or another way around to access: https://github.com/openai/CLIP.git

Is this a network issue? I'm already using a VPN/V2Ray. How should I access it? The instruction seems to be written for Ubuntu which I haven't used in years.

teslashark avatar Feb 19 '23 05:02 teslashark

https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7919#issuecomment-1435871895

I've tried to install it, but it doesn't seem to work:

venv "E:\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Commit hash: 3715ece0adce7bf7c5e9c5ab3710b2fdc3848f39 Installing clip Traceback (most recent call last): File "E:\stable-diffusion-webui\launch.py", line 360, in prepare_environment() File "E:\stable-diffusion-webui\launch.py", line 278, in prepare_environment run_pip(f"install {clip_package}", "clip") File "E:\stable-diffusion-webui\launch.py", line 137, 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 "E:\stable-diffusion-webui\launch.py", line 105, in run raise RuntimeError(message) RuntimeError: Couldn't install clip. Command: "E:\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 --prefer-binary Error code: 1 stdout: Collecting git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 Cloning https://github.com/openai/CLIP.git (to revision d50d76daa670286dd6cacf3bcd80b5e4823fc8e1) to c:\users\ggsha\appdata\local\temp\pip-req-build-td_dhj_5

stderr: Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-td_dhj_5' fatal: unable to access 'https://github.com/openai/CLIP.git/': Recv failure: Connection was reset error: subprocess-exited-with-error

git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-td_dhj_5' 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/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-td_dhj_5' 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.

teslashark avatar Feb 19 '23 06:02 teslashark

I've downloaded the CLIP zip to my computer, where can I just unzip it?

teslashark avatar Feb 19 '23 06:02 teslashark

webui-user.bat still wants to install CLIP even after I used pip install git+https://github.com/openai/CLIP.git to install it, and it says installation failed.

This has already happened:

C:\Users\ggsha>pip install git+https://github.com/openai/CLIP.git Collecting git+https://github.com/openai/CLIP.git Cloning https://github.com/openai/CLIP.git to c:\users\ggsha\appdata\local\temp\pip-req-build-2xy14pfb Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-2xy14pfb' Resolved https://github.com/openai/CLIP.git to commit 3702849800aa56e2223035bccd1c6ef91c704ca8 Preparing metadata (setup.py) ... done Requirement already satisfied: ftfy in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from clip==1.0) (6.1.1) Requirement already satisfied: regex in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from clip==1.0) (2022.10.31) Requirement already satisfied: tqdm in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from clip==1.0) (4.64.1) Requirement already satisfied: torch in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from clip==1.0) (1.13.1+cu117) Requirement already satisfied: torchvision in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from clip==1.0) (0.14.1+cu117) Requirement already satisfied: wcwidth>=0.2.5 in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from ftfy->clip==1.0) (0.2.6) Requirement already satisfied: typing-extensions in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from torch->clip==1.0) (4.5.0) Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from torchvision->clip==1.0) (9.4.0) Requirement already satisfied: requests in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from torchvision->clip==1.0) (2.28.2) Requirement already satisfied: numpy in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from torchvision->clip==1.0) (1.24.2) Requirement already satisfied: colorama in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from tqdm->clip==1.0) (0.4.6) Requirement already satisfied: idna<4,>=2.5 in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from requests->torchvision->clip==1.0) (3.4) Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from requests->torchvision->clip==1.0) (1.26.14) Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from requests->torchvision->clip==1.0) (3.0.1) Requirement already satisfied: certifi>=2017.4.17 in c:\users\ggsha\appdata\local\programs\python\python310\lib\site-packages (from requests->torchvision->clip==1.0) (2022.12.7) Building wheels for collected packages: clip Building wheel for clip (setup.py) ... done Created wheel for clip: filename=clip-1.0-py3-none-any.whl size=1369454 sha256=1fea1cc82b96cd44713ad8266edf421f481e328605280074f07f22bb9bf5f31f Stored in directory: C:\Users\ggsha\AppData\Local\Temp\pip-ephem-wheel-cache-rzi6ztl5\wheels\da\2b\4c\d6691fa9597aac8bb85d2ac13b112deb897d5b50f5ad9a37e4 Successfully built clip Installing collected packages: clip Successfully installed clip-1.0

However it's not recognized:

venv "E:\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Commit hash: 3715ece0adce7bf7c5e9c5ab3710b2fdc3848f39 Installing clip Traceback (most recent call last): File "E:\stable-diffusion-webui\launch.py", line 360, in prepare_environment() File "E:\stable-diffusion-webui\launch.py", line 278, in prepare_environment run_pip(f"install {clip_package}", "clip") File "E:\stable-diffusion-webui\launch.py", line 137, 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 "E:\stable-diffusion-webui\launch.py", line 105, in run raise RuntimeError(message) RuntimeError: Couldn't install clip. Command: "E:\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 --prefer-binary Error code: 1 stdout: Collecting git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 Cloning https://github.com/openai/CLIP.git (to revision d50d76daa670286dd6cacf3bcd80b5e4823fc8e1) to c:\users\ggsha\appdata\local\temp\pip-req-build-wqueftri

stderr: Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-wqueftri' fatal: unable to access 'https://github.com/openai/CLIP.git/': Recv failure: Connection was reset error: subprocess-exited-with-error

git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-wqueftri' 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/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-wqueftri' did not run successfully. exit code: 128

See above for output.

teslashark avatar Feb 19 '23 07:02 teslashark

I just find a way that can solve my problem.

run cmd

Use the git config command to query the proxy and cancel the proxy

View agent:

git config --global http.proxy

Display the existing http proxy information:

http://127.0.0.1:8888

Cancel proxy: git config --global --unset http.proxy

the original webpage is : https://blog.csdn.net/lvmengzou/article/details/119350664

Tinydada avatar Feb 19 '23 11:02 Tinydada

I just find a way that can solve my problem.

run cmd

Use the git config command to query the proxy and cancel the proxy

View agent:

git config --global http.proxy

Display the existing http proxy information:

http://127.0.0.1:8888

Cancel proxy: git config --global --unset http.proxy

the original webpage is : https://blog.csdn.net/lvmengzou/article/details/119350664

I've tried this, doesn't seem to change anything - still unable to download and my Vray uses 1:10809

teslashark avatar Feb 19 '23 12:02 teslashark

do you have solve this problem? I have meet this problem too.

feipiefei avatar Feb 19 '23 17:02 feipiefei

I just find a way that can solve my problem. run cmd Use the git config command to query the proxy and cancel the proxy View agent: git config --global http.proxy Display the existing http proxy information: http://127.0.0.1:8888 Cancel proxy: git config --global --unset http.proxy the original webpage is : https://blog.csdn.net/lvmengzou/article/details/119350664

I've tried this, doesn't seem to change anything - still unable to download and my Vray uses 1:10809

I've do this too, but doesn`t work

feipiefei avatar Feb 19 '23 17:02 feipiefei

i encounter same problem

Installing clip Traceback (most recent call last): File "/Users/chen/stable-diffusion-webui/launch.py", line 360, in prepare_environment() File "/Users/chen/stable-diffusion-webui/launch.py", line 278, in prepare_environment run_pip(f"install {clip_package}", "clip") File "/Users/chen/stable-diffusion-webui/launch.py", line 137, 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 "/Users/chen/stable-diffusion-webui/launch.py", line 105, in run raise RuntimeError(message) RuntimeError: Couldn't install clip. Command: "/Users/chen/opt/anaconda3/envs/sd/bin/python" -m pip install git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 --prefer-binary Error code: 1 stdout: Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 Cloning https://github.com/openai/CLIP.git (to revision d50d76daa670286dd6cacf3bcd80b5e4823fc8e1) to /private/var/folders/1j/bv65qv9155v_4t9x56l03xpr0000gn/T/pip-req-build-jcbdirgl

stderr: Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git /private/var/folders/1j/bv65qv9155v_4t9x56l03xpr0000gn/T/pip-req-build-jcbdirgl fatal: 无法访问 'https://github.com/openai/CLIP.git/':LibreSSL SSL_read: error:02FFF03C:system library:func(4095):Operation timed out, errno 60 warning: 克隆成功,但是检出失败。 您可以通过 'git status' 检查哪些已被检出,然后使用命令 'git restore --source=HEAD :/' 重试

error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git /private/var/folders/1j/bv65qv9155v_4t9x56l03xpr0000gn/T/pip-req-build-jcbdirgl 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/openai/CLIP.git /private/var/folders/1j/bv65qv9155v_4t9x56l03xpr0000gn/T/pip-req-build-jcbdirgl 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.

HaHa-LC avatar Feb 24 '23 14:02 HaHa-LC

set proxy to your local V2ray server, git config --global http.proxy http://127.0.0.1:<v2ray_port>

JohnJAS avatar Mar 03 '23 16:03 JohnJAS

我遇到了同样的问题,这是一个访问github超时的问题,我已经解决了。 是因为你虽然你可以在浏览器通过代理访问了github,但是你的git并没有通过代理,所以你需要让你的git通过你的代理的端口访问github才行。 首先你需要找到你访问浏览器所用的代理URL和端口号,这个具体方法是 win+R,输入regedit,打开HKEY_CURRENT_USER,打开SOFTWARE,打开MICROSOFT,打开windows,打开currentversion,打开internet setting,复制其中proxyserver中的数据值,例如我的是127.0.0.1.7890,然后win+R中,输入CMD,键入git config --global http.proxy http://127.0.0.1.7890 ,把其中我的ULR和端口号换成你自己的,然后回车看一下有没有输出。有的话就可以了

tj620 avatar Mar 05 '23 15:03 tj620

感谢,终于找到方法了,确实是这个原因的,成功了

javcin avatar Mar 09 '23 07:03 javcin

git config --global http.proxy

it works to me! just need to config the proxy port

liangchaob avatar Apr 05 '23 17:04 liangchaob

Easy fix all you have to do is re-install python but instead of recommended installation, go to custom installation and check the box on install for all users,

cruzyxd avatar Jun 20 '23 21:06 cruzyxd