stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: ERROR: Exception: Traceback (most recent call last):
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
Hello all! Friends help me please! I am not a coder. I downloaded everything according to the instructions, but there are a lot of errors. It also can't load torch. I downloaded torch myself, just don't know where to put this file and where to put the link to it. I will be glad to help! Thank you all!
Downloading https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-win_amd64.whl (2255.4 MB) --- ------------------------------------ 0.2/2.3 GB 205.5 kB/s eta 2:48:53 ERROR: Exception: Traceback (most recent call last): File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\urllib3\response.py", line 437, in _error_catcher yield File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\urllib3\response.py", line 560, in read data = self._fp_read(amt) if not fp_closed else b"" File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\urllib3\response.py", line 526, in _fp_read return self._fp.read(amt) if amt is not None else self._fp.read() File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 90, in read data = self.__fp.read(amt) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 465, in read s = self.fp.read(amt) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\socket.py", line 705, in readinto return self._sock.recv_into(b) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1274, in recv_into return self.read(nbytes, buffer) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1130, in read return self._sslobj.read(len, buffer) TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_internal\cli\base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_internal\commands\install.py", line 400, in run
requirement_set = resolver.resolve(
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: C:\Stable-Diffusion\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Traceback (most recent call last):
File "C:\Stable-Diffusion\stable-diffusion-webui\launch.py", line 355, in
Steps to reproduce the problem
- Go to ....
- Press ....
- ...
What should have happened?
SMD should do a full unload without errors and give an ip address to use the program
Commit where the problem happens
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
webui-user .bat
List of extensions
If you mean extensions in browser, only vidIQ Vision for YouTube is active
Console logs
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
Collecting torch==1.13.1+cu117
Downloading https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-win_amd64.whl (2255.4 MB)
--- ------------------------------------ 0.2/2.3 GB 205.5 kB/s eta 2:48:53
ERROR: Exception:
Traceback (most recent call last):
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 437, in _error_catcher
yield
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 560, in read
data = self._fp_read(amt) if not fp_closed else b""
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 526, in _fp_read
return self._fp.read(amt) if amt is not None else self._fp.read()
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 90, in read
data = self.__fp.read(amt)
File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 465, in read
s = self.fp.read(amt)
File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\socket.py", line 705, in readinto
return self._sock.recv_into(b)
File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1274, in recv_into
return self.read(nbytes, buffer)
File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1130, in read
return self._sslobj.read(len, buffer)
TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\commands\install.py", line 400, in run
requirement_set = resolver.resolve(
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 151, in __bool__
return bool(self._sequence)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __bool__
return any(self)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in <genexpr>
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 297, in __init__
super().__init__(
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 162, in __init__
self.dist = self._prepare()
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 231, in _prepare
dist = self._prepare_distribution()
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 308, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 491, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 536, in _prepare_linked_requirement
local_file = unpack_url(
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 166, in unpack_url
file = get_http_url(
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 107, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\network\download.py", line 147, in __call__
for chunk in chunks:
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\network\utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 621, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 559, in read
with self._error_catcher():
File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "C:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 442, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='download.pytorch.org', port=443): Read timed out.
[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: C:\Stable-Diffusion\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Traceback (most recent call last):
File "C:\Stable-Diffusion\stable-diffusion-webui\launch.py", line 355, in <module>
prepare_environment()
File "C:\Stable-Diffusion\stable-diffusion-webui\launch.py", line 257, in prepare_environment
run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
File "C:\Stable-Diffusion\stable-diffusion-webui\launch.py", line 81, in run
raise RuntimeError(f"""{errdesc or 'Error running command'}.
RuntimeError: Couldn't install torch.
Command: "C:\Stable-Diffusion\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
Error code: 2
Additional information
No response
You have have connection issue, try again, and its auto1111 extensions, not browser extensions . You also can try Super Easy AI Installer Tool it might help you.
Thanks a lot friend! I will try it now
Guys, please tell me! If I myself have separately downloaded a torch file, where can I place a link to it and in which folder is better to place. This is also possible to do, because it can not load when you run webui-user.bat.
You have have connection issue, try again, and its auto1111 extensions, not browser extensions . You also can try Super Easy AI Installer Tool it might help you.
Guys, please tell me! If I myself have separately downloaded a torch file, where can I place a link to it and in which folder is better to place. This is also possible to do, because it can not load when you run webui-user.bat.
Can you specify your question? You have downloaded a torch file (what file exactly) you want to place this somewhere else (where?) what is the idea of this?
Are you having issues with diskspace? Is your venv directory too large? do you want to relocate pip cache?
Hello can u tell me how did you solve this problem? I am having the exact same issue right now.