Replies: 1 comment 3 replies
-
The error message you are seeing (CERTIFICATE_VERIFY_FAILED) means that Python is unable to establish a Secure Sockets Layer (SSL) connection because it can't verify the server's certificate. SSL is the standard security technology for establishing an encrypted link between a web server and a client. Update your Certificates: |
Beta Was this translation helpful? Give feedback.
-
Unable to use Openpose, error displayed during preview.
But Canny works fine.
I use MacOS, but I'm not sure if it's because of the system. When I searched for a solution on the Internet, I found that some Win users are also experiencing this problem.
This is the output from the console when I run Openpose:
`2023-07-02 23:13:18,217 - ControlNet - INFO - Preview Resolution = 512
Downloading: "https://huggingface.co/lllyasviel/Annotators/resolve/main/hand_pose_model.pth" to /Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads/openpose/hand_pose_model.pth
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1037, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 975, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1454, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1071, in _create
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/routes.py", line 422, in run_predict
output = await app.get_blocks().process_api(
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1323, in process_api
result = await self.call_function(
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1051, in call_function
prediction = await anyio.to_thread.run_sync(
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet_ui/controlnet_ui_group.py", line 636, in run_annotator
result, is_image = preprocessor(
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/utils.py", line 76, in decorated_func
return cached_func(*args, **kwargs)
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/utils.py", line 64, in cached_func
return func(*args, **kwargs)
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/global_state.py", line 35, in unified_preprocessor
return preprocessor_modules[preprocessor_name](*args, **kwargs)
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/processor.py", line 251, in run_model
return remove_pad(self.model_openpose(
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/openpose/init.py", line 324, in call
poses = self.detect_poses(oriImg, include_hand, include_face)
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/openpose/init.py", line 268, in detect_poses
self.load_model()
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/openpose/init.py", line 196, in load_model
load_file_from_url(hand_model_path, model_dir=self.model_dir)
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/venv/lib/python3.10/site-packages/basicsr/utils/download_util.py", line 98, in load_file_from_url
download_url_to_file(url, cached_file, hash_prefix=None, progress=progress)
File "/Volumes/PortableSSD/Stable Diffusion/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/hub.py", line 611, in download_url_to_file
u = urlopen(req)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>`
This problem has troubled me for a long time, I hope someone can help me, thank you!
Beta Was this translation helpful? Give feedback.
All reactions