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
Commit Hash <none> Couldn't determine Stable Diffusion's hash #2247
Comments
Did we possibly download the zip file and put it there rather than using git to clone the repository? |
I have tried both, downloading zip and cloning the repository and still receive this error at what seems like the final step, nothing auto installs in one go, I have to close terminal for each repository and then finally run into this error. It's been two months and I still have not been able to run this. I thought waiting for updates would solve my problem. Creating venv in directory venv using python "C:\Program Files\Python310\python.exe" stderr: WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available. Press any key to continue . . . |
I download the zip file and put it on repository fold manually, then I encounter the same error logs but except the last 3 lines different: Error code: 128 it works for me after deleting all five hash argument below, (I think it is because if you download the file manually somehow have a different commit hash compared to git_clone, so delete these hash argument to disable the commit hash check) stable-diffusion-webui/launch.py Lines 96 to 100 in 494afcc
|
Reopen or create new issue if the problem is still present. |
Upgrade ur git to 2.x version. |
Try adding directory location that git.exe is into your PATH via environment variables menu. First press Start menu and search for "Git.exe". Right click and press Open file location. Then copy the location from the address bar at the top of the File explorer. Now go back into start menu and Search "variables" and select "Edit System Environment Variables". select "Environment Variables..." Then scroll down to PATH and press edit. Select "New...". Paste the directory you copy from before into the input box. Press ok. This should solve your problem. |
venv "C:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)]
Commit hash:
Traceback (most recent call last):
File "C:\stable-diffusion-webui\launch.py", line 164, in
prepare_enviroment()
File "C:\stable-diffusion-webui\launch.py", line 139, in prepare_enviroment
git_clone("https://github.com/CompVis/stable-diffusion.git", repo_dir('stable-diffusion'), "Stable Diffusion", stable_diffusion_commit_hash)
File "C:\stable-diffusion-webui\launch.py", line 74, in git_clone
current_hash = run(f'"{git}" -C {dir} rev-parse HEAD', None, f"Couldn't determine {name}'s hash: {commithash}").strip()
File "C:\stable-diffusion-webui\launch.py", line 32, in run
raise RuntimeError(message)
RuntimeError: Couldn't determine Stable Diffusion's hash: 69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc.
Command: "git" -C repositories\stable-diffusion rev-parse HEAD
Error code: 1
stdout: 69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc
stderr:
Press any key to continue . . .
The text was updated successfully, but these errors were encountered: