-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Failed to establish a new connection: [Errno 11004] getaddrinfo failed' #4
Copy link
Copy link
Closed
Description
I followed this tutorial https://rentry.org/kretard from top to bottom, I wrote a simple bat file in the main folder, in order to launch Stable quickly, But the very same error always popos out
the code is as followed:
call %userprofile%\miniconda3\Scripts\activate.bat ldx
python "scripts\webgui.py"
cmd /k
the error msg after it run is as followed:
(ldx) E:\SD>python "scripts\webgui.py"
Loaded GFPGAN
Loading model from models/ldm/stable-diffusion-v1/model.ckpt
Global Step: 470000
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\gradio\utils.py:47: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if StrictVersion(latest_pkg_version) > StrictVersion(current_pkg_version):
C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\gradio\utils.py:47: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if StrictVersion(latest_pkg_version) > StrictVersion(current_pkg_version):
Traceback (most recent call last):
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\urllib3\connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\urllib3\util\connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "C:\Users\charl\miniconda3\envs\ldx\lib\socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11004] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\urllib3\connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\urllib3\connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\urllib3\connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\urllib3\connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x0000022CD69F4670>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\requests\adapters.py", line 439, in send
resp = conn.urlopen(
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000022CD69F4670>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts\webgui.py", line 464, in <module>
gr.Image(value="https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg", source="upload", interactive=True, type="pil"),
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\gradio\components.py", line 1451, in __init__
self.value = self.postprocess(initial_value)
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\gradio\components.py", line 1732, in postprocess
out_y = processing_utils.encode_url_or_file_to_base64(y)
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\gradio\processing_utils.py", line 35, in encode_url_or_file_to_base64
requests.get(path)
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "C:\Users\charl\miniconda3\envs\ldx\lib\site-packages\requests\adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000022CD69F4670>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed'))
If I tried to launch it just using anaconda and manually type in the code it will be fine
Can you show me the light please kind sir. Thank you so much. I am a total noob in programming
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels