Zap tool install problem

Hi, I'm working with NCS 2.5.0, and I encountered some issues while following the steps outlined in the guide at the following link: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/matter/getting_started/tools.html

I'm currently using nRF Connect Desktop to execute the following command in the console:python scripts/setup/nrfconnect/get_zap.py -l /Users/ethan.zhao/Desktop/zap -o

Here is the log after I command in the console

ethan.zhao@Ethan-macbook matter % sudo python scripts/setup/nrfconnect/get_zap.py -l /Users/ethan.zhao/Desktop/zap -o 
Password:
ZAP file not found [Errno 2] No such file or directory: 'zap'
No ZAP tool version was found installed on this device.
Trying to download ZAP tool package matching your system and recommended version.
Downloading https://github.com/project-chip/zap/releases/download/v2023.04.27-nightly/zap-mac.zip into /Users/ethan.zhao/Desktop/zap/zap-mac.zip
Traceback (most recent call last):
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1346, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1257, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1303, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1252, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1012, in _send_output
    self.send(msg)
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 952, in send
    self.connect()
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1426, in connect
    self.sock = self._context.wrap_socket(self.sock,
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/nordic/ncs/v2.5.0/modules/lib/matter/scripts/setup/nrfconnect/get_zap.py", line 92, in download_recommended_zap_package
    wget.download(url, out=location)
  File "/opt/nordic/ncs/toolchains/20d68df7e5/lib/python3.9/site-packages/wget.py", line 526, in download
    (tmpfile, headers) = ulib.urlretrieve(binurl, tmpfile, callback)
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 239, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1389, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1349, 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:1129)>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/nordic/ncs/v2.5.0/modules/lib/matter/scripts/setup/nrfconnect/get_zap.py", line 201, in <module>
    main()
  File "/opt/nordic/ncs/v2.5.0/modules/lib/matter/scripts/setup/nrfconnect/get_zap.py", line 192, in main
    install_zap_package(zap_recommended_version, location, args.overwrite)
  File "/opt/nordic/ncs/v2.5.0/modules/lib/matter/scripts/setup/nrfconnect/get_zap.py", line 164, in install_zap_package
    download_recommended_zap_package(version, package, location)
  File "/opt/nordic/ncs/v2.5.0/modules/lib/matter/scripts/setup/nrfconnect/get_zap.py", line 95, in download_recommended_zap_package
    raise RuntimeError("Invalid URL to download ZAP tool package {}".format(e))
RuntimeError: Invalid URL to download ZAP tool package <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)>

How can I fix this issue?

Parents Reply Children
Related