dependancy error building the `matter_switch` example. (AEGHB-1120)
Checklist
- [x] Checked the issue tracker for similar issues to ensure this is not a duplicate
- [x] Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
- [x] Tested with the latest version to ensure the issue hasn't been fixed
How often does this bug occurs?
always
Expected behavior
Build the matter_switch example.
Actual behavior (suspected bug)
CMake Error at /home/ludovic/esp-idf/tools/cmake/build.cmake:548 (message):
ERROR: Because no versions of espressif/esp_insights match >1.2.4,<1.2.5 ||
>1.2.5,<1.2.6 || >1.2.6,<2.0.0
Error logs or terminal output
ludovic@ubuntu:~/esp-box/examples/matter_switch$ idf.py set-target esp32s3
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory '/home/ludovic/esp-box/examples/matter_switch/build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32s3, new sdkconfig will be created.
Running cmake in directory /home/ludovic/esp-box/examples/matter_switch/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/ludovic/.espressif/python_env/idf5.1_py3.12_env/bin/python -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=0 /home/ludovic/esp-box/examples/matter_switch"...
-- Found Git: /usr/bin/git (found version "2.43.0")
-- Component directory /home/ludovic/esp-matter/examples/common/blemesh_platform does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/ludovic/esp-matter/examples/common/cmake_common does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/ludovic/esp-matter/examples/common/external_platform does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/ludovic/esp-matter/examples/common/relinker does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/ludovic/esp-matter/examples/common/utils does not contain a CMakeLists.txt file. No component will be added
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/ludovic/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/ludovic/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/ludovic/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
NOTICE: Dependencies lock doesn't exist, solving dependencies.
NOTICE: Skipping optional dependency: espressif/esp_wifi_remote
NOTICE: Skipping optional dependency: espressif/esp_wifi_remote
................................................NOTICE: Skipping optional dependency: espressif/esp_wifi_remote
...................NOTICE: Skipping optional dependency: espressif/esp_wifi_remote
CMake Error at /home/ludovic/esp-idf/tools/cmake/build.cmake:548 (message):
ERROR: Because no versions of espressif/esp_insights match >1.2.4,<1.2.5 ||
>1.2.5,<1.2.6 || >1.2.6,<2.0.0
and espressif/esp_insights (1.2.4) depends on espressif/esp_diag_data_store (1.0.2), espressif/esp_insights (>=1.2.4,<1.2.5 || >1.2.5,<1.2.6 || >1.2.6,<2.0.0) requires espressif/esp_diag_data_store (1.0.2).
And because espressif/esp_insights (1.2.5) depends on both
espressif/esp_diag_data_store (1.0.2) and espressif/esp_diag_data_store
(1.0.2), espressif/esp_insights (>=1.2.4,<2.0.0) requires
espressif/esp_diag_data_store (1.0.2).
So, because project depends on both espressif/esp_diag_data_store (1.0.1)
and espressif/esp_insights (^1.2.4), version solving failed.
Call Stack (most recent call first):
/home/ludovic/esp-idf/tools/cmake/project.cmake:604 (idf_build_process)
CMakeLists.txt:58 (project)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the /home/ludovic/esp-box/examples/matter_switch/build/log/idf_py_stderr_output_54086 and /home/ludovic/esp-box/examples/matter_switch/build/log/idf_py_stdout_output_54086
Steps to reproduce the behavior
cd $IDF_PATH
git fetch
git checkout release/v5.1
git pull
git submodule update --init --recursive
./install.sh
. ./export.sh
cd ~/esp-box/examples/matter_switch
idf.py set-target esp32s3
Project release version
latest
System architecture
Intel/AMD 64-bit (modern PC, older Mac)
Operating system
Linux
Operating system version
Ubuntu
Shell
Bash
Additional context
No response
The component dependency file refers to an Apr 4, 2023 commit for rainmaker: https://github.com/espressif/esp-box/blob/master/examples/matter_switch/main/idf_component.yml#L8-L11
Hello, can you try to set the component espressif/esp_diag_data_store form version “1.0.1" to 1.0.2"
--- a/examples/matter_switch/main/idf_component.yml
+++ b/examples/matter_switch/main/idf_component.yml
@@ -19,4 +19,4 @@ dependencies:
espressif/json_generator: ^1
espressif/json_parser: =1.0.0
espressif/qrcode: ^0.1.0
- espressif/esp_diag_data_store: "1.0.1"
+ espressif/esp_diag_data_store: "1.0.2"
NOTICE: Updating lock file at /home/xuxin/esp_work/esp-box-gitlab/examples/matter_switch/dependencies.lock
NOTICE: Processing 36 dependencies:
NOTICE: [1/36] chmorgan/esp-audio-player (1.0.5)
NOTICE: [2/36] chmorgan/esp-file-iterator (1.0.0)
NOTICE: [3/36] chmorgan/esp-libhelix-mp3 (1.0.3)
NOTICE: [4/36] espressif/button (3.5.0)
NOTICE: [5/36] espressif/cbor (0.6.0~2)
NOTICE: [6/36] espressif/cmake_utilities (0.5.3)
NOTICE: [7/36] espressif/esp-box (3.0.5)
NOTICE: [8/36] espressif/esp-box-3 (1.1.3)
NOTICE: [9/36] espressif/esp-box-lite (2.0.4)
NOTICE: [10/36] espressif/esp-dsp (1.7.0)
NOTICE: [11/36] espressif/esp-serial-flasher (0.0.11)
NOTICE: [12/36] espressif/esp-sr (1.4.2)
NOTICE: [13/36] espressif/esp_codec_dev (1.1.0)
NOTICE: [14/36] espressif/esp_delta_ota (1.1.2)
NOTICE: [15/36] espressif/esp_diag_data_store (1.0.2)
NOTICE: [16/36] espressif/esp_diagnostics (1.2.1)
NOTICE: [17/36] espressif/esp_encrypted_img (2.1.0)
NOTICE: [18/36] espressif/esp_insights (1.2.2)
NOTICE: [19/36] espressif/esp_lcd_ili9341 (1.2.0)
NOTICE: [20/36] espressif/esp_lcd_touch (1.1.2)
NOTICE: [21/36] espressif/esp_lcd_touch_gt911 (1.1.3)
NOTICE: [22/36] espressif/esp_lcd_touch_tt21100 (1.1.1)
NOTICE: [23/36] espressif/esp_lvgl_port (1.4.0)
NOTICE: [24/36] espressif/esp_rainmaker (cc861bffc818c607e799f66c79923fd4e2d00447)
NOTICE: [25/36] espressif/esp_rcp_update (1.2.0)
NOTICE: [26/36] espressif/esp_schedule (cc861bffc818c607e799f66c79923fd4e2d00447)
NOTICE: [27/36] espressif/esp_secure_cert_mgr (2.5.0)
NOTICE: [28/36] espressif/icm42670 (1.0.0)
NOTICE: [29/36] espressif/json_generator (1.1.2)
NOTICE: [30/36] espressif/json_parser (1.0.0)
NOTICE: [31/36] espressif/led_strip (1.0.0)
NOTICE: [32/36] espressif/mdns (1.8.2)
NOTICE: [33/36] espressif/qrcode (0.1.0~2)
NOTICE: [34/36] espressif/rmaker_common (1.4.2)
NOTICE: [35/36] lvgl/lvgl (8.4.0)
NOTICE: [36/36] idf (6.0.0)
I checked the component dependencies of matter. It seems that your matter version is newer.
The dependent esp-insight version is 1.2.2 (corresponding to esp_diag_data_store 1.0.2).
The previous version was 1.0.1 (corresponding to esp_diag_data_store 1.0.1).
Thanks. I will try it.