在搭建好esp-matter后,编译light sample的时候报错
rck@ubuntu:~/ESP/esp-matter/examples/light$ idf.py build
/home/rck/ESP/esp-idf/tools/check_python_dependencies.py:12: Depreca
tionWarning: pkg_resources is deprecated as an API. See
https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Executing action: all (aliases: build)
Running ninja in directory /home/rck/ESP/esp-matter/examples/light/build
Executing "ninja all"...
[1/1] cd /home/rck/ESP/esp-matter/examples/light/bu...tter/examples/light/build/bootloader/bootloader.binBootloader binary size 0x4ee0 bytes. 0x7120 bytes (59%) free.
[20/225] Performing build step for 'chip_gn'FAILED: esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build esp-idf/chip/lib/libCHIP.a
cd /home/rck/ESP/esp-matter/examples/light/build/esp-idf/chip && ninja esp32
[16/740] ACTION //third_party/connectedhomeip/src/c...party/connectedhomeip/config/esp32/toolchain:esp32)FAILED: gen/third_party/connectedhomeip/src/controller/data_model/app/PluginApplicationCallbacks.h gen/third_party/connectedhomeip/src/controller/data_model/app/callback-stub.cpp
python ../../../../../connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py --gn-root ../../../../../connectedhomeip/connectedhomeip/config/esp32/ --current-path ../../../../../connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/controller/data_model --default-toolchain=//third_party/connectedhomeip/config/esp32/toolchain:esp32 --current-toolchain=//third_party/connectedhomeip/config/esp32/toolchain:esp32 --capture-output --python-dep-list-files gen/third_party/connectedhomeip/src/controller/data_model/data_model_codegen_codegen_metadata_path_list.txt -- ../../../../../connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/scripts/codegen.py --generator cpp-app --output-dir gen/third_party/connectedhomeip/src/controller/data_model --expected-outputs gen/third_party/connectedhomeip/src/controller/data_model/data_model_codegen.expected.outputs ../../../../../connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/controller/data_model/controller-clusters.matter
Traceback (most recent call last):
File "../../../../../connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/scripts/codegen.py", line 28, in
from matter_idl.matter_idl_parser import CreateParser
ModuleNotFoundError: No module named 'matter_idl'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "../../../../../connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/scripts/codegen.py", line 32, in
from matter_idl.matter_idl_parser import CreateParser
File "/home/rck/ESP/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/scripts/py_matter_idl/matter_idl/matter_idl_parser.py", line 9, in
from lark import Lark
ModuleNotFoundError: No module named 'lark'
[18/740] ACTION //third_party/connectedhomeip/src/l...party/connectedhomeip/config/esp32/toolchain:esp32)ninja: build stopped: subcommand failed.
[22/225] Building C object esp-idf/fatfs/CMakeFiles/__idf_fatfs.dir/src/ffunicode.c.objninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /home/rck/ESP/esp-matter/examples/light/build/log/idf_py_stderr_output_48287 and /home/rck/ESP/esp-matter/examples/light/build/log/idf_py_stdout_output_48287
0