<?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>west zap-gui can not use</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114298/west-zap-gui-can-not-use</link><description>Board: nrf7002 Project: matter_light_blub OS: Kubuntu 22 Toolchains: v2.7.0 SDK: v2.7.0 
 
 I have successfully deployed and tested projects that run normally, but when I try to make changes using ZAP, I encountered the following error during installation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Sep 2024 09:29:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114298/west-zap-gui-can-not-use" /><item><title>RE: west zap-gui can not use</title><link>https://devzone.nordicsemi.com/thread/500728?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2024 09:29:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35f0ee27-b0dd-4a6c-957f-fd82995537de</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Andreas is out of office, so I will handle your ticket going forward.&lt;/p&gt;
&lt;p&gt;It looks like the ZAP tool is not being unpacked properly. Can you try removing the .zap-install directory (/home/jim/nodic2.70/external/modules/lib/matter/.zap-install) and run the &lt;code&gt;west zap-gui&lt;/code&gt; command again?&lt;/p&gt;
&lt;p&gt;If this does not work, it might help to reinstall NodeJS and NPM. Which version of NPM do you have? You can check this with &lt;code&gt;npm version&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west zap-gui can not use</title><link>https://devzone.nordicsemi.com/thread/500417?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 11:59:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7cd610d-3776-4cac-b4b0-696f6a821e90</guid><dc:creator>stu112114</dc:creator><description>&lt;p&gt;This is the result after my attempt to make modifications; the issue remains the same. Additionally, when I entered &lt;code&gt;west zap-gui&lt;/code&gt; again, the error output was different.&lt;/p&gt;
&lt;p&gt;By the way, I haven&amp;#39;t modified any code yet; I&amp;#39;ve only performed flashing, and the project was copied from a sample.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;jim@jim:~/nodic2.70/light_bulb$ west zap-gui
Traceback (most recent call last):
  File &amp;quot;/home/jim/ncs/toolchains/e9dba88316/usr/local/bin/west&amp;quot;, line 8, in &amp;lt;module&amp;gt;
    sys.exit(main())
  File &amp;quot;/home/jim/ncs/toolchains/e9dba88316/usr/local/lib/python3.9/site-packages/west/app/main.py&amp;quot;, line 1085, in main
    app.run(argv or sys.argv[1:])
  File &amp;quot;/home/jim/ncs/toolchains/e9dba88316/usr/local/lib/python3.9/site-packages/west/app/main.py&amp;quot;, line 244, in run
    self.run_command(argv, early_args)
  File &amp;quot;/home/jim/ncs/toolchains/e9dba88316/usr/local/lib/python3.9/site-packages/west/app/main.py&amp;quot;, line 505, in run_command
    self.run_extension(args.command, argv)
  File &amp;quot;/home/jim/ncs/toolchains/e9dba88316/usr/local/lib/python3.9/site-packages/west/app/main.py&amp;quot;, line 654, in run_extension
    self.cmd.run(args, unknown, self.topdir, manifest=self.manifest,
  File &amp;quot;/home/jim/ncs/toolchains/e9dba88316/usr/local/lib/python3.9/site-packages/west/commands.py&amp;quot;, line 194, in run
    self.do_run(args, unknown)
  File &amp;quot;/home/jim/nodic2.70/external/modules/lib/matter/scripts/west/zap_gui.py&amp;quot;, line 54, in do_run
    zap_installer.update_zap_if_needed()
  File &amp;quot;/home/jim/nodic2.70/external/modules/lib/matter/scripts/west/zap_common.py&amp;quot;, line 202, in update_zap_if_needed
    current_version = self.get_current_version()
  File &amp;quot;/home/jim/nodic2.70/external/modules/lib/matter/scripts/west/zap_common.py&amp;quot;, line 166, in get_current_version
    raise RuntimeError(&amp;quot;Failed to find version in ZAP output&amp;quot;)
RuntimeError: Failed to find version in ZAP output
jim@jim:~/nodic2.70/light_bulb$ /home/jim/nodic2.70/external/modules/lib/matter/.zap-install/zap /home/jim/nodic2.70/light_bulb/src/light_bulb.zap --zcl /home/jim/nodic2.70/external/modules/lib/matter/src/app/zap-templates/zcl/zcl.json --gen /home/jim/nodic2.70/external/modules/lib/matter/src/app/zap-templates/app-templates.json --stateDirectory /home/jim/nodic2.70/external/modules/lib/matter/.zap-install/.zap
/home/jim/nodic2.70/light_bulb/src/light_bulb.zap:2
  &amp;quot;fileFormat&amp;quot;: 0,
              ^

SyntaxError: Unexpected token &amp;#39;:&amp;#39;
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1185:20)
    at Module._compile (node:internal/modules/cjs/loader:1227:27)
    at Object..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function._load (node:electron/js2c/asar_bundle:2:13327)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:96:12)
    at node:internal/main/run_main_module:23:47

Node.js v18.17.1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried to run ZAP directly, but it seems it cannot open properly.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;jim@jim:~/nodic2.70$ cd external/modules/lib/matter/.zap-install/
jim@jim:~/nodic2.70/external/modules/lib/matter/.zap-install$ ls
apack.json               chrome-sandbox  libGLESv2.so          LICENSES.chromium.html  snapshot_blob.bin        zap-cli
chrome_100_percent.pak   icudtl.dat      libvk_swiftshader.so  locales                 v8_context_snapshot.bin
chrome_200_percent.pak   libEGL.so       libvulkan.so.1        resources               vk_swiftshader_icd.json
chrome_crashpad_handler  libffmpeg.so    LICENSE.electron.txt  resources.pak           zap
jim@jim:~/nodic2.70/external/modules/lib/matter/.zap-install$ zap
bash: /usr/bin/zap: No such file or directory
jim@jim:~/nodic2.70/external/modules/lib/matter/.zap-install$ ./zap
Welcome to Node.js v18.17.1.
Type &amp;quot;.help&amp;quot; for more information.
&amp;gt; &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west zap-gui can not use</title><link>https://devzone.nordicsemi.com/thread/500385?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 09:08:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0143c8e4-0854-4626-8d5c-ca4cde594846</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Unzipping ZAP package to /home/jim/nodic2.70/external/modules/lib/matter/.zap-install...
/home/jim/nodic2.70/light_bulb/src/light_bulb.zap:2
  &amp;quot;fileFormat&amp;quot;: 2,
              ^
              
SyntaxError: Unexpected token &amp;#39;:&amp;#39;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It looks to me that you&amp;#39;re trying to add it to a location that is not approved:&amp;nbsp;/home/jim/nodic2.70/light_bulb/src/light_bulb.zap:2&lt;br /&gt;&lt;br /&gt;Could you try without &amp;quot;:2&amp;quot;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>