Error when run west zap-generate with parameters

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: '/opt/nordic/ncs/v2.7.0/scripts/tools/zap/zap_execution.py'

The path "/opt/nordic/ncs/v2.7.0/scripts/tools/zap/zap_execution.py" is incorrect. It should be "/opt/nordic/ncs/v2.7.0/modules/lib/matter/scripts/tools/zap/zap_execution.py"?

Related