Open Mithrae1 opened 6 months ago
Also this is what happens when I do a clean install:
Creating venv in directory E:\stable-diffusion\stable-diffusion-webui\venv using python "C:\Users\Aman2\AppData\Local\Programs\Python\Python310\python.exe"
venv "E:\stable-diffusion\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)]
Version: v1.9.4-1-g546cbb02
Commit hash: 546cbb0297c2e758c2f1bf59bd60bc75f85a5e4e
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121
Collecting torch==2.1.2
Using cached https://download.pytorch.org/whl/cu121/torch-2.1.2%2Bcu121-cp310-cp310-win_amd64.whl (2473.9 MB)
Collecting torchvision==0.16.2
Using cached https://download.pytorch.org/whl/cu121/torchvision-0.16.2%2Bcu121-cp310-cp310-win_amd64.whl (5.6 MB)
Collecting filelock
Using cached filelock-3.14.0-py3-none-any.whl (12 kB)
Collecting jinja2
Using cached jinja2-3.1.4-py3-none-any.whl (133 kB)
Collecting sympy
Using cached sympy-1.12.1-py3-none-any.whl (5.7 MB)
Collecting fsspec
Using cached fsspec-2024.5.0-py3-none-any.whl (316 kB)
Collecting typing-extensions
Using cached typing_extensions-4.12.0-py3-none-any.whl (37 kB)
Collecting networkx
Using cached networkx-3.3-py3-none-any.whl (1.7 MB)
Collecting requests
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Collecting pillow!=8.3.*,>=5.3.0
Using cached pillow-10.3.0-cp310-cp310-win_amd64.whl (2.5 MB)
Collecting numpy
Using cached numpy-1.26.4-cp310-cp310-win_amd64.whl (15.8 MB)
Collecting MarkupSafe>=2.0
Using cached https://download.pytorch.org/whl/MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl (17 kB)
Collecting charset-normalizer<4,>=2
Using cached charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl (100 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
Collecting idna<4,>=2.5
Using cached idna-3.7-py3-none-any.whl (66 kB)
Collecting urllib3<3,>=1.21.1
Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
Collecting mpmath<1.4.0,>=1.1.0
Using cached https://download.pytorch.org/whl/mpmath-1.3.0-py3-none-any.whl (536 kB)
Installing collected packages: mpmath, urllib3, typing-extensions, sympy, pillow, numpy, networkx, MarkupSafe, idna, fsspec, filelock, charset-normalizer, certifi, requests, jinja2, torch, torchvision
Successfully installed MarkupSafe-2.1.5 certifi-2024.2.2 charset-normalizer-3.3.2 filelock-3.14.0 fsspec-2024.5.0 idna-3.7 jinja2-3.1.4 mpmath-1.3.0 networkx-3.3 numpy-1.26.4 pillow-10.3.0 requests-2.32.3 sympy-1.12.1 torch-2.1.2+cu121 torchvision-0.16.2+cu121 typing-extensions-4.12.0 urllib3-2.2.1
[notice] A new release of pip available: 22.2.1 -> 24.0
[notice] To update, run: E:\stable-diffusion\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Installing clip
Traceback (most recent call last):
File "E:\stable-diffusion\stable-diffusion-webui\launch.py", line 48, in <module>
main()
File "E:\stable-diffusion\stable-diffusion-webui\launch.py", line 39, in main
prepare_environment()
File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 393, in prepare_environment
run_pip(f"install {clip_package}", "clip")
File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 143, in run_pip
return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 115, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "E:\stable-diffusion\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip --prefer-binary
Error code: 1
stdout: Collecting https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip
Using cached https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip (4.3 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting ftfy
Using cached ftfy-6.2.0-py3-none-any.whl (54 kB)
Collecting regex
Using cached regex-2024.5.15-cp310-cp310-win_amd64.whl (268 kB)
Collecting tqdm
Using cached tqdm-4.66.4-py3-none-any.whl (78 kB)
Requirement already satisfied: torch in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from clip==1.0) (2.1.2+cu121)
Requirement already satisfied: torchvision in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from clip==1.0) (0.16.2+cu121)
Collecting wcwidth<0.3.0,>=0.2.12
Using cached wcwidth-0.2.13-py2.py3-none-any.whl (34 kB)
Requirement already satisfied: sympy in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from torch->clip==1.0) (1.12.1)
Requirement already satisfied: filelock in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from torch->clip==1.0) (3.14.0)
Requirement already satisfied: fsspec in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from torch->clip==1.0) (2024.5.0)
Requirement already satisfied: networkx in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from torch->clip==1.0) (3.3)
Requirement already satisfied: typing-extensions in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from torch->clip==1.0) (4.12.0)
Requirement already satisfied: jinja2 in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from torch->clip==1.0) (3.1.4)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from torchvision->clip==1.0) (10.3.0)
Requirement already satisfied: requests in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from torchvision->clip==1.0) (2.32.3)
Requirement already satisfied: numpy in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from torchvision->clip==1.0) (1.26.4)
Collecting colorama
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Requirement already satisfied: MarkupSafe>=2.0 in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from jinja2->torch->clip==1.0) (2.1.5)
Requirement already satisfied: charset-normalizer<4,>=2 in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision->clip==1.0) (3.3.2)
Requirement already satisfied: certifi>=2017.4.17 in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision->clip==1.0) (2024.2.2)
Requirement already satisfied: urllib3<3,>=1.21.1 in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision->clip==1.0) (2.2.1)
Requirement already satisfied: idna<4,>=2.5 in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision->clip==1.0) (3.7)
Requirement already satisfied: mpmath<1.4.0,>=1.1.0 in e:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages (from sympy->torch->clip==1.0) (1.3.0)
Using legacy 'setup.py install' for clip, since package 'wheel' is not installed.
Installing collected packages: wcwidth, regex, ftfy, colorama, tqdm, clip
Running setup.py install for clip: started
Running setup.py install for clip: finished with status 'done'
Successfully installed clip-1.0 colorama-0.4.6 ftfy-6.2.0 regex-2024.5.15 tqdm-4.66.4 wcwidth-0.2.13
stderr:
[notice] A new release of pip available: 22.2.1 -> 24.0
[notice] To update, run: E:\stable-diffusion\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
I have upgraded pip to 24.0 many times after installing since it recommends me to do that at the end. I chose to ignore it this time while I ask for help.
Maybe you can install assets (and CLIP) manually, by git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets.git
to repositories/stable-diffusion-webui-assets and checkout to specified commit (the same as CLIP), check modules/launch_utils.py for more detail of installing dependency
Checklist
What happened?
I've been trying for many hours these couple days to just run the install in multiple ways. I've followed the steps carefully but I somehow end up with this weird hash error that I don't understand.
venv "E:\stable-diffusion\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)] Version: v1.9.4 Commit hash: feee37d75f1b168768014e4634dcb156ee649c05 Couldn't determine assets's hash: 6f7db241d2f8ba7457bac5ca9753331f0c266917, attempting autofix... Fetching all contents for 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 Unpacking objects: 100% (20/20), 132.68 KiB | 3.32 MiB/s, done. Pruning assets Enumerating objects: 20, done. Counting objects: 100% (20/20), done. Delta compression using up to 12 threads Compressing objects: 100% (18/18), done. Writing objects: 100% (20/20), done. Total 20 (delta 0), reused 20 (delta 0), pack-reused 0 (from 0) Traceback (most recent call last): File "E:\stable-diffusion\stable-diffusion-webui\launch.py", line 48, in
main()
File "E:\stable-diffusion\stable-diffusion-webui\launch.py", line 39, in main
prepare_environment()
File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 410, in prepare_environment
git_clone(assets_repo, repo_dir('stable-diffusion-webui-assets'), "assets", assets_commit_hash)
File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 177, in git_clone
current_hash = run_git(dir, name, 'rev-parse HEAD', None, f"Couldn't determine {name}'s hash: {commithash}", live=False).strip()
File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 167, in run_git
return run(f'"{git}" -C "{dir}" {command}', desc=desc, errdesc=errdesc, custom_env=custom_env, live=live)
File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 115, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't determine assets's hash: 6f7db241d2f8ba7457bac5ca9753331f0c266917.
Command: "git" -C "E:\stable-diffusion\stable-diffusion-webui\repositories\stable-diffusion-webui-assets" rev-parse HEAD
Error code: 1
stdout: 6f7db241d2f8ba7457bac5ca9753331f0c266917
Steps to reproduce the problem
What should have happened?
It should end with an url that's similar to an IP that I can paste into my browser to access A1111's SD webui
What browsers do you use to access the UI ?
No response
Sysinfo
-
Console logs
Additional information
No response