Cannot run ZAP tool

Hi - I am trying to modify the Matter template sample with my own clusters as documented in: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/protocols/matter/getting_started/adding_clusters.html#ug-matter-creating-accessory 

I was previously able to do so when using v.2.1.0 of the SDK. 

Now, with a clean install of v.2.3.0 of the SDK I am getting the following errors when trying to install ZAP. I am on Mac OS 13.1 (22C65). I welcome any guidance or suggestions.

Thanks! Dan.

me@MacBook-Pro matter % python scripts/setup/nrfconnect/get_zap.py -l location_path -o
zsh: exec format error: python
me@MacBook-Pro matter % which python
/opt/nordic/ncs/toolchains/v2.3.0/opt/nanopb/generator-bin/python
me@MacBook-Pro matter % which python3
/opt/homebrew/bin/python3
me@MacBook-Pro matter % python3 scripts/setup/nrfconnect/get_zap.py -l location_path -o
Traceback (most recent call last):
  File "/opt/nordic/ncs/v2.3.0/modules/lib/matter/scripts/setup/nrfconnect/get_zap.py", line 28, in <module>
    import wget
ModuleNotFoundError: No module named 'wget'
me@MacBook-Pro matter % pip3 install wget
Collecting wget
  Using cached wget-3.2.zip (10 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: wget
  Building wheel for wget (setup.py) ... done
  Created wheel for wget: filename=wget-3.2-py3-none-any.whl size=9657 sha256=05955f85a61d307f1926a82c06079ab90316f4d8c22b1e10d9fb857a7aadcd95
  Stored in directory: /Users/me/Library/Caches/pip/wheels/40/b3/0f/a40dbd1c6861731779f62cc4babcb234387e11d697df70ee97
Successfully built wget
Installing collected packages: wget
Successfully installed wget-3.2
[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: python3.11 -m pip install --upgrade pip
me@MacBook-Pro matter % python3 scripts/setup/nrfconnect/get_zap.py -l location_path -o
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/v2022.12.20-nightly/zap-mac.zip into /opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac.zip
100% [..................................................] 249937313 / 249937313
Deleting zip file: /opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac.zip
Traceback (most recent call last):
  File "/opt/nordic/ncs/v2.3.0/modules/lib/matter/scripts/setup/nrfconnect/get_zap.py", line 163, in <module>
    main()
  File "/opt/nordic/ncs/v2.3.0/modules/lib/matter/scripts/setup/nrfconnect/get_zap.py", line 154, in main
    install_zap_package(zap_recommended_version, location, args.overwrite)
  File "/opt/nordic/ncs/v2.3.0/modules/lib/matter/scripts/setup/nrfconnect/get_zap.py", line 128, in install_zap_package
    set_executable(location, package, zap_executable)
  File "/opt/nordic/ncs/v2.3.0/modules/lib/matter/scripts/setup/nrfconnect/get_zap.py", line 96, in set_executable
    st = os.stat(file)
         ^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap'
me@MacBook-Pro matter % ls location_path/zap-mac/zap
ls: location_path/zap-mac/zap: No such file or directory
me@MacBook-Pro matter % ls location_path/zap-mac    
apack.json	zap-cli		zap.app
me@MacBook-Pro matter % ls -lt location_path/zap-mac
total 188784
drwxr-xr-x  3 me  staff        96 May 14 20:53 zap.app
-rw-r--r--  1 me  staff  96652384 May 14 20:53 zap-cli
-rw-r--r--  1 me  staff      3951 May 14 20:53 apack.json

Related