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

Increase pip timeout

Open q3452 opened this issue 3 years ago • 3 comments

because Torch is huge (1.8GB) and can easily fail with default 15s timeout

q3452 avatar Oct 29 '22 17:10 q3452

This is a really trivial change that extends the timeout for Pip downloads from the measly 15 seconds to something much more tolerant of unstable connections. Which since Torch is huge, really helps.

q3452 avatar Oct 31 '22 21:10 q3452

Checked safety in low-bandwidth-network in gcp.
I can't find related issues with pip read time out, did you have local error with this? When time out error happens, it more likely your internet connection is broken - 1000s timeout might make you wait forever for normal cases, if it was from SSL Error.

aria1th avatar Nov 04 '22 08:11 aria1th

It's about trying to download the pip packages on a mobile hotspot, the connection switches towers every 10 minutes or so and breaks the download if the timeout is too short because the connection doesn't recover quickly enough for pip to wait. Setting the timeout longer makes it possible to complete installation with launch.py.

This fix allowed me to run webui in the initial installation, without it, it's not possible to complete first run/installation.

q3452 avatar Nov 04 '22 09:11 q3452

user can set the TORCH_COMMAND to change timeout for himself setting it to 1000s for everyone is not the answer

AUTOMATIC1111 avatar Jan 04 '23 14:01 AUTOMATIC1111