#17031[Bug]: Error 403 trying to install pytorch

CiberbagoCiberbago
opened 3 months ago
Author

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?

The webui.sh gives an error trying to install pytorch

Steps to reproduce the problem

  1. Clone the repo
  2. Execute webui.sh
  3. The error is there

What should have happened?

Webui should have been installed.

What browsers do you use to access the UI ?

No response

Sysinfo

I cannot install it, but I have:

ArchLinux Python 3.10 Ryzen 7 5800X3D, RX 5700XT, 32GB RAM, 240GB NVME with 140GB of free space.

Console logs

Launching launch.py... ################################################################ glibc version is 2.41 Check TCMalloc: libtcmalloc_minimal.so.4 ./webui.sh: line 258: bc: command not found ./webui.sh: line 258: [: -eq: unary operator expected libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/usr/lib/libtcmalloc_minimal.so.4 fatal: No names found, cannot describe anything. Python 3.10.18 (main, Jun 12 2025, 18:48:45) [GCC 15.1.1 20250425] Version: f2.0.1v1.10.1-1.10.1 Commit hash: e07be6a48fc0ae1840b78d5e55ee36ab78396b30 ROCm: no agent was found ROCm: version=None Installing torch and torchvision Collecting torch==2.0.0.dev20230209+rocm5.2 ERROR: HTTP error 403 while getting https://download.pytorch.org/whl/nightly/rocm5.2/torch-2.0.0.dev20230209%2Brocm5.2-cp310-cp310-linux_x86_64.whl ERROR: Could not install requirement torch==2.0.0.dev20230209+rocm5.2 from https://download.pytorch.org/whl/nightly/rocm5.2/torch-2.0.0.dev20230209%2Brocm5.2-cp310-cp310-linux_x86_64.whl because of HTTP error 403 Client Error: Forbidden for url: https://download.pytorch.org/whl/nightly/rocm5.2/torch-2.0.0.dev20230209%2Brocm5.2-cp310-cp310-linux_x86_64.whl for URL https://download.pytorch.org/whl/nightly/rocm5.2/torch-2.0.0.dev20230209%2Brocm5.2-cp310-cp310-linux_x86_64.whl Traceback (most recent call last): File "/home/jaime/stable-diffusion-webui-amdgpu-forge/launch.py", line 54, in <module> main() File "/home/jaime/stable-diffusion-webui-amdgpu-forge/launch.py", line 42, in main prepare_environment() File "/home/jaime/stable-diffusion-webui-amdgpu-forge/modules/launch_utils.py", line 543, in prepare_environment run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True) File "/home/jaime/stable-diffusion-webui-amdgpu-forge/modules/launch_utils.py", line 126, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't install torch. Command: "/home/jaime/stable-diffusion-webui-amdgpu-forge/venv/bin/python" -m pip install https://download.pytorch.org/whl/nightly/rocm5.2/torch-2.0.0.dev20230209%2Brocm5.2-cp310-cp310-linux_x86_64.whl https://download.pytorch.org/whl/nightly/rocm5.2/torchvision-0.15.0.dev20230209%2Brocm5.2-cp310-cp310-linux_x86_64.whl Error code: 1

Additional information

No response