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

[Bug]: ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE

Open deniga opened this issue 10 months 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?

I had 1 months ago no problem running StableDiffusionA1111 but when i tried to update. I even tried to delete venv and to reinstall Automatic1111 but got the same error I got this error when i wanted to run webui.bat

Steps to reproduce the problem

1.Just starting the webui.bat file 2.error

What should have happened?

It should have installed torch=2.0.1 and torchvision but the hashes are everytime wrong. And then the other modules.

Sysinfo

E:\Program Files (x86)\stable-diffusion-webui-A1111Github>webui.bat --dump-sysinfo venv "E:\Program Files (x86)\stable-diffusion-webui-A1111Github\venv\Scripts\Python.exe" Traceback (most recent call last): File "E:\Program Files (x86)\stable-diffusion-webui-A1111Github\launch.py", line 48, in main() File "E:\Program Files (x86)\stable-diffusion-webui-A1111Github\launch.py", line 29, in main filename = launch_utils.dump_sysinfo() File "E:\Program Files (x86)\stable-diffusion-webui-A1111Github\modules\launch_utils.py", line 440, in dump_sysinfo from modules import sysinfo File "E:\Program Files (x86)\stable-diffusion-webui-A1111Github\modules\sysinfo.py", line 9, in import psutil ModuleNotFoundError: No module named 'psutil'

What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome, Other

Console logs

Creating venv in directory E:\Program Files (x86)\stable-diffusion-webui-A1111Github\venv using python "C:\Users\xxxxx\AppData\Local\Programs\Python\Python310\python.exe"
venv "E:\Program Files (x86)\stable-diffusion-webui-A1111Github\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.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118
Collecting torch==2.0.1
  Using cached https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-win_amd64.whl (2619.1 MB)
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    torch==2.0.1 from https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-win_amd64.whl#sha256=f58d75619bc96e4322343c030b893613701caa2d6db8017155da226c14171335:
        Expected sha256 f58d75619bc96e4322343c030b893613701caa2d6db8017155da226c14171335
             Got        d2504b3d1cb4485cf564d037658d137427d508d268467d876ae269ab776fd414


[notice] A new release of pip available: 22.2.1 -> 23.2.1
[notice] To update, run: E:\Program Files (x86)\stable-diffusion-webui-A1111Github\venv\Scripts\python.exe -m pip install --upgrade pip
Traceback (most recent call last):
  File "E:\Program Files (x86)\stable-diffusion-webui-A1111Github\launch.py", line 48, in <module>
    main()
  File "E:\Program Files (x86)\stable-diffusion-webui-A1111Github\launch.py", line 39, in main
    prepare_environment()
  File "E:\Program Files (x86)\stable-diffusion-webui-A1111Github\modules\launch_utils.py", line 352, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "E:\Program Files (x86)\stable-diffusion-webui-A1111Github\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "E:\Program Files (x86)\stable-diffusion-webui-A1111Github\venv\Scripts\python.exe" -m pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118
Error code: 1

Additional information

It started to happen when i updated the extensions I tried to reinstall python and deleteing other versions of python

deniga avatar Oct 12 '23 19:10 deniga

I had the same problem

li-zeyuan avatar Jan 29 '24 02:01 li-zeyuan

Is there an update on this or a workaround? I tried freshly installing today on windows 11 with the correct version of python, etc. with this same issue. I dug around the folders / code to see if I could "replace the hash" as the error suggested, but it seems that specific hash is not stored anywhere...a logic error in the hash generation maybe?

luckynumberke7in avatar Feb 12 '24 13:02 luckynumberke7in

Maybe turn off your VPN (http or any network proxy process) is useful, it worked for me. It allowed me to successfully download torch=2.0.1, but also caused other packages to fail to download.

So when I turn on VPN and there is a problem, I will turn it off and retry to execute webui-user.bat. When I turn off VPN and there is a problem, I will turn it on and retry again. Just keep trying until everything works.

Yes, this is China.

Now, I finally downloaded all the resources successfully, but a new problem appeared. I have to solve it. Bye.

dingdangdog avatar Jul 07 '24 15:07 dingdangdog