Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: RuntimeError: Couldn't clone Stable Diffusion. <v1.10.0-RC> #16171

Open
3 of 6 tasks
nitinmukesh opened this issue Jul 8, 2024 · 6 comments
Open
3 of 6 tasks
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@nitinmukesh
Copy link

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

WebUI failed to install

Steps to reproduce the problem

Download https://github.com/AUTOMATIC1111/stable-diffusion-webui/tree/v1.10.0-RC

Run WebUI.bat to install

What should have happened?

The installation should complete and launch the WebUI

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

python launch.py --dump-sysinfo
Traceback (most recent call last):
File "C:\tut\stable-diffusion-webui-1.10.0-RC\launch.py", line 48, in
main()
File "C:\tut\stable-diffusion-webui-1.10.0-RC\launch.py", line 29, in main
filename = launch_utils.dump_sysinfo()
File "C:\tut\stable-diffusion-webui-1.10.0-RC\modules\launch_utils.py", line 473, in dump_sysinfo
from modules import sysinfo
File "C:\tut\stable-diffusion-webui-1.10.0-RC\modules\sysinfo.py", line 8, in
import psutil
ModuleNotFoundError: No module named 'psutil'

Console logs

venv "C:\tut\stable-diffusion-webui-1.10.0-RC\venv\Scripts\Python.exe"
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.10.0
Commit hash: <none>
Cloning Stable Diffusion into C:\tut\stable-diffusion-webui-1.10.0-RC\repositories\stable-diffusion-stability-ai...
Cloning into 'C:\tut\stable-diffusion-webui-1.10.0-RC\repositories\stable-diffusion-stability-ai'...
remote: Enumerating objects: 580, done.
remote: Counting objects: 100% (571/571), done.
remote: Compressing objects: 100% (304/304), done.
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 11592 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Traceback (most recent call last):
  File "C:\tut\stable-diffusion-webui-1.10.0-RC\launch.py", line 48, in <module>
    main()
  File "C:\tut\stable-diffusion-webui-1.10.0-RC\launch.py", line 39, in main
    prepare_environment()
  File "C:\tut\stable-diffusion-webui-1.10.0-RC\modules\launch_utils.py", line 411, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "C:\tut\stable-diffusion-webui-1.10.0-RC\modules\launch_utils.py", line 191, in git_clone
    run(f'"{git}" clone --config core.filemode=false "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}", live=True)
  File "C:\tut\stable-diffusion-webui-1.10.0-RC\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't clone Stable Diffusion.
Command: "git" clone --config core.filemode=false "https://github.com/Stability-AI/stablediffusion.git" "C:\tut\stable-diffusion-webui-1.10.0-RC\repositories\stable-diffusion-stability-ai"
Error code: 128
Press any key to continue . . .

Additional information

N. A.

@nitinmukesh nitinmukesh added the bug-report Report of a bug, yet to be confirmed label Jul 8, 2024
@nitinmukesh
Copy link
Author

This issue is not observed in stable release v1.9.4

Installing clip
Installing open_clip
Cloning assets into C:\tut\stable-diffusion-webui\repositories\stable-diffusion-webui-assets...
Cloning into 'C:\tut\stable-diffusion-webui\repositories\stable-diffusion-webui-assets'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 20 (delta 0), reused 20 (delta 0), pack-reused 0
Receiving objects: 100% (20/20), 132.70 KiB | 2.65 MiB/s, done.
Cloning Stable Diffusion into C:\tut\stable-diffusion-webui\repositories\stable-diffusion-stability-ai...
Cloning into 'C:\tut\stable-diffusion-webui\repositories\stable-diffusion-stability-ai'...
remote: Enumerating objects: 580, done.
remote: Counting objects: 100% (571/571), done.
remote: Compressing objects: 100% (304/304), done.
remote: Total 580 (delta 278), reused 448 (delta 249), pack-reused 9
Receiving objects: 100% (580/580), 73.44 MiB | 11.76 MiB/s, done.
Resolving deltas: 100% (278/278), done.
Cloning Stable Diffusion XL into C:\tut\stable-diffusion-webui\repositories\generative-models...
Cloning into 'C:\tut\stable-diffusion-webui\repositories\generative-models'...
remote: Enumerating objects: 941, done.
remote: Total 941 (delta 0), reused 0 (delta 0), pack-reused 941
Receiving objects: 100% (941/941), 43.85 MiB | 10.52 MiB/s, done.
Resolving deltas: 100% (489/489), done.
Cloning K-diffusion into C:\tut\stable-diffusion-webui\repositories\k-diffusion...
Cloning into 'C:\tut\stable-diffusion-webui\repositories\k-diffusion'...
remote: Enumerating objects: 1345, done.
remote: Counting objects: 100% (646/646), done.
remote: Compressing objects: 100% (86/86), done.
remote: Total 1345 (delta 604), reused 561 (delta 560), pack-reused 699
Receiving objects: 100% (1345/1345), 239.07 KiB | 2.23 MiB/s, done.
Resolving deltas: 100% (944/944), done.
Cloning BLIP into C:\tut\stable-diffusion-webui\repositories\BLIP...
Cloning into 'C:\tut\stable-diffusion-webui\repositories\BLIP'...
remote: Enumerating objects: 277, done.
remote: Counting objects: 100% (165/165), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 277 (delta 137), reused 136 (delta 135), pack-reused 112
Receiving objects: 100% (277/277), 7.03 MiB | 11.27 MiB/s, done.
Resolving deltas: 100% (152/152), done.
Installing requirements

@viking1304
Copy link
Contributor

viking1304 commented Jul 8, 2024

I don't know if what you are trying can be done.

As a workaround, try to clone the repository and switch branch:

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
git switch dev

EDIT: I apologize, the development branch is called dev.

@w-e-w w-e-w mentioned this issue Jul 8, 2024
4 tasks
@future-dreams
Copy link

RuntimeError: Couldn't clone Stable Diffusion.

I also have this problem,the console gives the following prompt command:
"git" clone --config core.filemode=false "https://github.com/Stability-AI/generative-models.git" "E:\stable-diffusion-webui\repositories\generative-models"
After executing it, I found that it can install requirements normally.hope it helps you
image

@Hosseinrashedi72
Copy link

Capture
Hello, sorry, can anyone guide me to fix this error during the installation of stable diffusion, the error that came to me.
RuntimeError: Couldn't clone Stable Diffusion. How can I solve this? I would be grateful if someone could guide me. Thanks.

@HotChocut
Copy link

I was able to fix this by reinstalling git.

@Livaking
Copy link

i tried reinstalling git and downloading 1.94 , does not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

6 participants