<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cannot run ZAP tool</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99742/cannot-run-zap-tool</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Jul 2023 13:57:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99742/cannot-run-zap-tool" /><item><title>RE: Cannot run ZAP tool</title><link>https://devzone.nordicsemi.com/thread/435020?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 13:57:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec1b3567-389c-41b1-ad4a-408a9e98cceb</guid><dc:creator>Chris Boyer</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m having this same issue. Your solutions up until here have worked, but nothing I&amp;#39;ve done has allowed me to see the matter clusters in the ZAP tool. When I open the template.zap file located at&amp;nbsp;&lt;span&gt;/opt/nordic/ncs/v2.4.0/&lt;/span&gt;&lt;span&gt;nrf/samples/matter/lock/src/lock.zap This is all I see:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2023_2D00_07_2D00_06-at-9.53.10-AM.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I see the same thing if I open the zap file in my project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot run ZAP tool</title><link>https://devzone.nordicsemi.com/thread/426001?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 21:34:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0baa6c79-b964-42a3-860b-87320b6cb29f</guid><dc:creator>Dan</dc:creator><description>&lt;p&gt;Bless you&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp; - this worked! To the Nordic team: hopefully the scripts or the documentation can be updated - it would save a lot of time/frustration. Thanks! Dan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot run ZAP tool</title><link>https://devzone.nordicsemi.com/thread/425988?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 18:56:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb85bafb-003b-49cc-9f9e-a3d9c40a6bc9</guid><dc:creator>filipmrazek</dc:creator><description>&lt;p&gt;Okay, my project was outside `/opt/nordic/ncs/v2.3.0`.&lt;br /&gt;I generated environment script with toolchain manager, executed the script and finally I see available matter clusters!&lt;br /&gt;Thank you for your time.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot run ZAP tool</title><link>https://devzone.nordicsemi.com/thread/425984?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 18:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ea87650-a555-48a5-89e8-db9fb8ad926c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Good to hear that it worked. Are you opening the terminal via the toolchain manager? This&amp;nbsp;will ensure that the necessary env. variables are exported/set.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot run ZAP tool</title><link>https://devzone.nordicsemi.com/thread/425983?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 18:24:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd150a82-8f9d-4daf-ae03-8ccb3b99b8aa</guid><dc:creator>filipmrazek</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;thanks for your answer. I followed your instructions and it looks zap tool works!&lt;br /&gt;Unfortunately when opening zap tool with&lt;br /&gt;```&lt;br /&gt;zap src/template.zap&lt;br /&gt;```&lt;br /&gt;in my project folder I cannot add any matter endpoint. Is there any extension which I should add to see Matter clusters?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot run ZAP tool</title><link>https://devzone.nordicsemi.com/thread/425980?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 18:08:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b4fbeee-be9d-4861-8521-ce5e3c18d8c8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span style="font-family:inherit;"&gt;I had another private ticket related to the same issue, and I discovered that I had to extract the zip manually instead of using the Python script for some reason:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;I was finally able to reproduce the same error here, and it appears to be related to how the zip file is being extracted by the Python script.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Please change the directory to /opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path in the terminal and delete the existing files and folders before running this command.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;em style="font-family:inherit;"&gt;&amp;quot;wget &lt;a href="https://github.com/project-chip/zap/releases/download/v2022.12.20-nightly/zap-mac.zip"&gt;github.com/.../zap-mac.zip&lt;/a&gt; &amp;amp;&amp;amp; unzip -d zap-mac zap-mac.zip &amp;amp;&amp;amp; ../../../../nrf/samples/matter/sensor/src/template.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;After the zip is downloaded and extracted, make sure that both&amp;nbsp;&lt;span&gt;/opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/&lt;/span&gt;&lt;strong&gt;zap.app/Contents/MacOS/&lt;/strong&gt; and&amp;nbsp;&lt;span&gt;/opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/ are added to PATH.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have reported this as a bug internally. It seems like only macOS is affected by this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot run ZAP tool</title><link>https://devzone.nordicsemi.com/thread/425964?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 17:25:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c9916b4-3bc8-4bc5-875a-f9c7a7d55343</guid><dc:creator>filipmrazek</dc:creator><description>&lt;p&gt;Hi Dan,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve exactly the same problem. The same procedure, the same result. Also tried to download release from chip github, but I don&amp;#39;t see matter products when adding endpoint 0.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot run ZAP tool</title><link>https://devzone.nordicsemi.com/thread/425734?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 23:56:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a6c3830-0db0-4df3-81b0-9f27f2f8f375</guid><dc:creator>Dan</dc:creator><description>&lt;p&gt;Hi Amanda - thanks for getting back to me so quickly on this - much appreciated.&lt;br /&gt;&lt;br /&gt;Your suggestion did work and allowed the script to complete properly. However, I am still unable to run the zap script. I am on an Apple M1 Max.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;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
ZAP tool package was downloaded and extracted in the given location.
#########################################################################################################################
# Please add the following location to the system PATH: /opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac #
#########################################################################################################################

me@MacBook-Pro matter % nano ~/.bash_profile 
me@MacBook-Pro matter % source ~/.bash_profile 
me@MacBook-Pro matter % zap ~/dev/nordic/template.v.2.1.0/src/template.zap
 
zsh: command not found: zap

me@MacBook-Pro matter % /opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap
zsh: no such file or directory: /opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap

me@MacBook-Pro matter % /opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap.app/Contents/MacOS/zap 
dyld[66554]: Library not loaded: @rpath/Electron Framework.framework/Electron Framework
  Referenced from: &amp;lt;4C4C44DA-5555-3144-A10D-1E87A10EA9F8&amp;gt; /opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap.app/Contents/MacOS/zap
  Reason: tried: &amp;#39;/opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap.app/Contents/Frameworks/Electron Framework.framework/Electron Framework&amp;#39; (not a mach-o file), &amp;#39;/opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap.app/Contents/Frameworks/Electron Framework.framework/Electron Framework&amp;#39; (not a mach-o file), &amp;#39;/System/Volumes/Preboot/Cryptexes/OS@rpath/Electron Framework.framework/Electron Framework&amp;#39; (no such file), &amp;#39;/opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap.app/Contents/Frameworks/Electron Framework.framework/Electron Framework&amp;#39; (not a mach-o file), &amp;#39;/opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap.app/Contents/Frameworks/Electron Framework.framework/Electron Framework&amp;#39; (not a mach-o file), &amp;#39;/Library/Frameworks/Electron Framework.framework/Electron Framework&amp;#39; (no such file), &amp;#39;/System/Library/Frameworks/Electron Framework.framework/Electron Framework&amp;#39; (no such file, not in dyld cache)
zsh: abort      
me@MacBook-Pro matter % /opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap-cli
&amp;#128295; Using state directory: /Users/me/.zap
{
  url: &amp;#39;http://localhost:9070&amp;#39;,
  version: &amp;#39;2022.12.20&amp;#39;,
  featureLevel: 89,
  hash: &amp;#39;77fd67f73a927468033f58710333ba33823beb04&amp;#39;,
  timestamp: 1671576409,
  date: &amp;#39;2022-12-20T22:46:49.000Z&amp;#39;,
  exe: &amp;#39;/opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap-cli&amp;#39;
}
-- JSON START --
{&amp;quot;url&amp;quot;:&amp;quot;http://localhost:9070&amp;quot;,&amp;quot;version&amp;quot;:&amp;quot;2022.12.20&amp;quot;,&amp;quot;featureLevel&amp;quot;:89,&amp;quot;hash&amp;quot;:&amp;quot;77fd67f73a927468033f58710333ba33823beb04&amp;quot;,&amp;quot;timestamp&amp;quot;:1671576409,&amp;quot;date&amp;quot;:&amp;quot;2022-12-20T22:46:49.000Z&amp;quot;,&amp;quot;exe&amp;quot;:&amp;quot;/opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap-cli&amp;quot;}
-- JSON END --
^C
me@MacBook-Pro matter % /opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap-cli ~/dev/nordic/template.v.2.1.0/src/template.zap
&amp;#128295; Using state directory: /Users/me/.zap
{
  url: &amp;#39;http://localhost:9070&amp;#39;,
  version: &amp;#39;2022.12.20&amp;#39;,
  featureLevel: 89,
  hash: &amp;#39;77fd67f73a927468033f58710333ba33823beb04&amp;#39;,
  timestamp: 1671576409,
  date: &amp;#39;2022-12-20T22:46:49.000Z&amp;#39;,
  exe: &amp;#39;/opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap-cli&amp;#39;
}
-- JSON START --
{&amp;quot;url&amp;quot;:&amp;quot;http://localhost:9070&amp;quot;,&amp;quot;version&amp;quot;:&amp;quot;2022.12.20&amp;quot;,&amp;quot;featureLevel&amp;quot;:89,&amp;quot;hash&amp;quot;:&amp;quot;77fd67f73a927468033f58710333ba33823beb04&amp;quot;,&amp;quot;timestamp&amp;quot;:1671576409,&amp;quot;date&amp;quot;:&amp;quot;2022-12-20T22:46:49.000Z&amp;quot;,&amp;quot;exe&amp;quot;:&amp;quot;/opt/nordic/ncs/v2.3.0/modules/lib/matter/location_path/zap-mac/zap-cli&amp;quot;}
-- JSON END --

[this does not launch the electron browser; 
if I use chrome to go to:http://localhost:9070
I do get the ZAP tool interface, but cannot load or see the template.zap file]&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Separately, it seems like either the scripts or the documentation should be corrected to deal with some of the issues that came up&amp;nbsp; (e.g. despite going through the automated toolchain setup, python path was not correct, wget wasn&amp;#39;t installed etc).&lt;/p&gt;
&lt;p&gt;Welcome your further guidance on how I can edit the template.zap file on an M1 Mac with the v.2.3.0 of the SDK.&lt;/p&gt;
&lt;p&gt;Thanks! Dan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot run ZAP tool</title><link>https://devzone.nordicsemi.com/thread/425638?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 13:15:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7b1e4e5-e33f-436d-9b6f-818b4020ae8f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please try to replace&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-connectedhomeip/blob/v2.3.0/scripts/setup/nrfconnect/get_zap.py#L121"&gt;https://github.com/nrfconnect/sdk-connectedhomeip/blob/v2.3.0/scripts/setup/nrfconnect/get_zap.py#L121&lt;/a&gt;&amp;nbsp;with&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;zap_executable = &amp;#39;zap.app/Contents/MacOS/zap&amp;#39;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Guess that should fix the problem.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>