<?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>Error when run west zap-generate with parameters</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114205/error-when-run-west-zap-generate-with-parameters</link><description>Hello, 
 I am using matter SDK v2.7.0, when I run command below: 
 
 west zap-generate -z ~/Work/matter/light_switch/src/light_switch.zap -m /opt/nordic/ncs/v2.7.0 
 
 I get error: 
 FileNotFoundError: [Errno 2] No such file or directory: &amp;#39;/opt/nordic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Aug 2024 13:11:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114205/error-when-run-west-zap-generate-with-parameters" /><item><title>RE: Error when run west zap-generate with parameters</title><link>https://devzone.nordicsemi.com/thread/500431?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 13:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffbc35a5-0abe-4df8-802a-9f456fd79819</guid><dc:creator>Hien</dc:creator><description>&lt;p&gt;Hi Maria,&lt;/p&gt;
&lt;p&gt;I fixed issue after I modify path in file light_switch.zap&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Hien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when run west zap-generate with parameters</title><link>https://devzone.nordicsemi.com/thread/500249?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 14:39:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46314e35-1915-4061-9ccd-aafb391d0965</guid><dc:creator>Hien</dc:creator><description>&lt;p&gt;Hi Maria,&lt;/p&gt;
&lt;p&gt;I use Toolchain Manager v1.5.1 to install NCS.&lt;/p&gt;
&lt;p&gt;MacOS Sonoma 14.6.1.&lt;/p&gt;
&lt;p&gt;I tried with Windows 10, and it&amp;#39;s same error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when run west zap-generate with parameters</title><link>https://devzone.nordicsemi.com/thread/500230?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 13:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:053b38b8-962b-4c9c-a068-58ac9741c1fb</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Hien, &lt;/p&gt;
[quote user="Hien"]Maybe we need update environment variable?[/quote]
&lt;p&gt;It is worth to see if there are issues with your NCS installation.&lt;/p&gt;
&lt;p&gt;How did you install it?&lt;/p&gt;
&lt;p&gt;Which MacOS version are you running?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when run west zap-generate with parameters</title><link>https://devzone.nordicsemi.com/thread/500052?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 16:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84d3f07a-aaa6-4642-a27e-d0ade8938716</guid><dc:creator>Hien</dc:creator><description>&lt;p&gt;Hi Maria,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I have installed ZAP tool like described in the documentation by run command west zap-gui in directory /opt/nordic/ncs/v2.7.0/modules/lib/matter.&lt;/p&gt;
&lt;p&gt;The ZAP tool can be open ok, but when I run west zap-generate so the above error occurs.&lt;/p&gt;
&lt;p&gt;Maybe we need update environment variable?&lt;/p&gt;
&lt;p&gt;I am running on macOS.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when run west zap-generate with parameters</title><link>https://devzone.nordicsemi.com/thread/500008?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 13:19:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be43122e-3ae4-4825-86a7-2a318a489311</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Hien"]Thank for your support![/quote]
&lt;p&gt;Happy to help! &lt;/p&gt;
[quote user="Hien"]&lt;p&gt;I used command with /modules/lib/matter, but below error occurs:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;west zap-generate -z ~/Work/matter/light_switch/src/light_switch.zap -m /opt/nordic/ncs/v2.7.0/modules/lib/matter&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ZAP installation directory: /opt/nordic/ncs/v2.7.0/modules/lib/matter/.zap-install&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Found ZAP 2024.3.14 (up to date)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Searching for zcl file from /Users/hien/Work/matter/light_switch/src/light_switch.zap&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Error: /Users/modules/lib/matter/src/app/zap-templates/zcl/zcl.json does not exists or is not a file.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Now it looks like the first path is the wrong one. Please check that the value sent to the -z parameter reflects the location on your machine. &lt;/p&gt;
&lt;p&gt;If you still get build errors, make sure that you have installed the ZAP took like described in &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/protocols/matter/getting_started/tools.html#zap_tool"&gt;the documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when run west zap-generate with parameters</title><link>https://devzone.nordicsemi.com/thread/499823?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 16:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e618f7f-0738-4afe-b1ea-94013066e486</guid><dc:creator>Hien</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank for your support!&lt;/p&gt;
&lt;p&gt;I used command with /modules/lib/matter, but below error occurs:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;west zap-generate -z ~/Work/matter/light_switch/src/light_switch.zap -m /opt/nordic/ncs/v2.7.0/modules/lib/matter&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;ZAP installation directory: /opt/nordic/ncs/v2.7.0/modules/lib/matter/.zap-install&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Found ZAP 2024.3.14 (up to date)&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Searching for zcl file from /Users/hien/Work/matter/light_switch/src/light_switch.zap&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;strong&gt;&lt;span class="s1"&gt;Error: /Users/modules/lib/matter/src/app/zap-templates/zcl/zcl.json does not exists or is not a file.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p class="p2"&gt;&lt;span class="s1"&gt;FATAL ERROR: command exited with status 1: /Library/Developer/CommandLineTools/usr/bin/python3 /opt/nordic/ncs/v2.7.0/modules/lib/matter/scripts/tools/zap/generate.py /Users/hien/Work/matter/light_switch/src/light_switch.zap -t /opt/nordic/ncs/v2.7.0/modules/lib/matter/src/app/zap-templates/app-templates.json -o /Users/hien/Work/matter/light_switch/src/zap-generated&lt;/span&gt;&lt;/p&gt;
&lt;p class="p2"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when run west zap-generate with parameters</title><link>https://devzone.nordicsemi.com/thread/499798?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 14:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d193fb4f-89cd-4d4c-81b1-599aa67de224</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]&lt;span&gt;The path &amp;quot;&lt;span&gt;/opt/nordic/ncs/v2.7.0/scripts/tools/zap/zap_execution.py&amp;quot; is incorrect. It should be &amp;quot;/opt/nordic/ncs/v2.7.0/modules/lib/matter/scripts/tools/zap/zap_execution.py&amp;quot;?&lt;/span&gt;&lt;/span&gt;[/quote]
&lt;p&gt;The path is wrong because you are missing the /modules/lib/matter part of the -m parameter value. The -m parameter should be the path to the Matter SDK installation which is in ncs/v2.7.0/modules/lib/matter. See the documentation for the zap-generate command &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/protocols/matter/getting_started/tools.html#zap-generate_command"&gt;here&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>