espressif / esp-matter

Espressif's SDK for Matter
Apache License 2.0
659 stars 154 forks source link

Failure while running ninja at SDK installation (CON-1270) #1021

Closed Mr-Alirezaa closed 2 months ago

Mr-Alirezaa commented 2 months ago

Describe the bug I have cloned esp-matter sdk with the following command and I'm sure that nothing went wrong during the cloning process:

git clone \
    --branch release/v1.2 \
    --depth 1 \
    --shallow-submodules \
    --recursive https://github.com/espressif/esp-matter.git

After that I tried to install the sdk with ./install.sh and it failed with the following log. I can also confirm that I have the prerequisites installed as per this document

esp-matter-installation.log

last few lines of the above log:

...

  File "/Users/a.asadi/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 573, in setup
    result = step(spin)
             ^^^^^^^^^^
  File "/Users/a.asadi/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 762, in virtualenv
    if not virtualenv_setup.install(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/a.asadi/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 443, in install
    install_packages(gn_target)
  File "/Users/a.asadi/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 424, in install_packages
    raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['ninja', '-C', '/Users/a.asadi/esp/esp-matter/connectedhomeip/connectedhomeip/.environment/gn_out', '-v', ':python_packages.install']' returned non-zero exit status 1.

Environment

Any additional details I started by using this https://apple.github.io/swift-matter-examples/tutorials/swiftmatterexamples/setup-macos to setup idf tools and matter sdk on my mac machine to start programming my ESP32C6 with Swift. I have also tried the installation process as the official document said: https://docs.espressif.com/projects/esp-matter/en/latest/esp32/developing.html#esp-matter-setup

There are also similar issues I have found in the current repo.

shubhamdp commented 2 months ago

@Mr-Alirezaa can you please share the python version details on you system.

Also, before running esp-matter/install.sh you should ideally source esp-idf/export.sh. That step is missing in the swift's documentation. Can you please try this? Please remove the esp-matter/connectedhomeip/connectedhomeip/.environment directory before running ./install.sh. More detailed steps can be found in esp-matter programming guide.

shubhamdp commented 2 months ago

@Mr-Alirezaa Can you please try this patch, I see some problem with pyyaml and construct packages.

cd connectedhomeip/connectedhomeip
git apply change_python_pkg_version.patch
rm -rf .environment
cd ../../
source esp-idf/export.sh
./install.sh

change_python_pkg_version.patch

Mr-Alirezaa commented 2 months ago

Hi @shubhamdp, thank you for your response.

@Mr-Alirezaa can you please share the python version details on you system.

$ python3 --version
Python 3.12.4

# Also

$ source ~/esp/esp-idf/export.sh
Setting IDF_PATH to '/Users/a.asadi/esp/esp-idf'
Detecting the Python interpreter
Checking "python3" ...
Python 3.12.4
"python3" has been detected
Checking Python compatibility
Checking other ESP-IDF version.
Adding ESP-IDF tools to PATH...
Checking if Python packages are up to date...
Constraint file: /Users/a.asadi/.espressif/espidf.constraints.v5.2.txt
Requirement files:
 - /Users/a.asadi/esp/esp-idf/tools/requirements/requirements.core.txt
Python being checked: /Users/a.asadi/.espressif/python_env/idf5.2_py3.12_env/bin/python
Python requirements are satisfied.
Updated PATH variable:
  /Users/a.asadi/esp/esp-idf/components/espcoredump:/Users/a.asadi/esp/esp-idf/components/partition_table:/Users/a.asadi/esp/esp-idf/components/app_update:/Users/a.asadi/.espressif/tools/xtensa-esp-elf-gdb/12.1_20231023/xtensa-esp-elf-gdb/bin:/Users/a.asadi/.espressif/tools/riscv32-esp-elf-gdb/12.1_20231023/riscv32-esp-elf-gdb/bin:/Users/a.asadi/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:/Users/a.asadi/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin:/Users/a.asadi/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/Users/a.asadi/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/bin:/Users/a.asadi/.espressif/tools/xtensa-esp-elf-gdb/12.1_20231023/xtensa-esp-elf-gdb/bin:/Users/a.asadi/.espressif/tools/riscv32-esp-elf-gdb/12.1_20231023/riscv32-esp-elf-gdb/bin:/Users/a.asadi/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:/Users/a.asadi/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin:/Users/a.asadi/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/Users/a.asadi/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/bin:/Users/a.asadi/.espressif/python_env/idf5.2_py3.12_env/bin:/Users/a.asadi/esp/esp-idf/tools:/Users/a.asadi/.sdkman/candidates/java/current/bin:/Users/a.asadi/.modular/pkg/packages.modular.com_mojo/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/a.asadi/.mint/bin
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

I also have tested by uninstalling 3.12 and installing 3.11. both were installed via homebrew.

Also, before running esp-matter/install.sh you should ideally source esp-idf/export.sh. That step is missing in the swift's documentation. Can you please try this?

I have tested installation in both ways, once by using Swift's document and once using the official espressif document. I have tested both with and without sourcing the esp-idf/export.sh, result is no different.

Please remove the esp-matter/connectedhomeip/connectedhomeip/.environment directory before running ./install.sh. More detailed steps can be found in esp-matter programming guide.

In my first few tries, I did't delete the .environment folder but then I came across the section of the document you mentioned, then tried installing after removing .environment folder.

I have also tested passing --no-host-tool to the install script.

$ ./install.sh --no-host-tool
shubhamdp commented 2 months ago

@Mr-Alirezaa have you tried with the patch?

Mr-Alirezaa commented 2 months ago

@Mr-Alirezaa Can you please try this patch, I see some problem with pyyaml and construct packages.

cd connectedhomeip/connectedhomeip
git apply change_python_pkg_version.patch
rm -rf .environment
cd ../../
source esp-idf/export.sh
./install.sh

change_python_pkg_version.patch

This WORKED! Thanks a lot! πŸ™

@Mr-Alirezaa have you tried with the patch?

Yes, now I tried and it passed the step. And here is the result:

Detecting the Python interpreter
Checking "python3" ...
Python 3.12.4
"python3" has been detected
Checking Python compatibility
Checking other ESP-IDF version.
Adding ESP-IDF tools to PATH...
Checking if Python packages are up to date...
Constraint file: /Users/a.asadi/.espressif/espidf.constraints.v5.2.txt
Requirement files:
 - /Users/a.asadi/esp/esp-idf/tools/requirements/requirements.core.txt
Python being checked: /Users/a.asadi/.espressif/python_env/idf5.2_py3.12_env/bin/python
Python requirements are satisfied.
Updated PATH variable:
  /Users/a.asadi/esp/esp-idf/components/espcoredump:/Users/a.asadi/esp/esp-idf/components/partition_table:/Users/a.asadi/esp/esp-idf/components/app_update:/Users/a.asadi/.espressif/tools/xtensa-esp-elf-gdb/12.1_20231023/xtensa-esp-elf-gdb/bin:/Users/a.asadi/.espressif/tools/riscv32-esp-elf-gdb/12.1_20231023/riscv32-esp-elf-gdb/bin:/Users/a.asadi/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:/Users/a.asadi/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin:/Users/a.asadi/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/Users/a.asadi/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/bin:/Users/a.asadi/.espressif/tools/xtensa-esp-elf-gdb/12.1_20231023/xtensa-esp-elf-gdb/bin:/Users/a.asadi/.espressif/tools/riscv32-esp-elf-gdb/12.1_20231023/riscv32-esp-elf-gdb/bin:/Users/a.asadi/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:/Users/a.asadi/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin:/Users/a.asadi/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/Users/a.asadi/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/bin:/Users/a.asadi/esp/esp-idf/components/espcoredump:/Users/a.asadi/esp/esp-idf/components/partition_table:/Users/a.asadi/esp/esp-idf/components/app_update:/Users/a.asadi/.espressif/tools/xtensa-esp-elf-gdb/12.1_20231023/xtensa-esp-elf-gdb/bin:/Users/a.asadi/.espressif/tools/riscv32-esp-elf-gdb/12.1_20231023/riscv32-esp-elf-gdb/bin:/Users/a.asadi/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:/Users/a.asadi/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin:/Users/a.asadi/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/Users/a.asadi/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/bin:/Users/a.asadi/.espressif/tools/xtensa-esp-elf-gdb/12.1_20231023/xtensa-esp-elf-gdb/bin:/Users/a.asadi/.espressif/tools/riscv32-esp-elf-gdb/12.1_20231023/riscv32-esp-elf-gdb/bin:/Users/a.asadi/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:/Users/a.asadi/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin:/Users/a.asadi/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/Users/a.asadi/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/bin:/Users/a.asadi/.espressif/python_env/idf5.2_py3.12_env/bin:/Users/a.asadi/esp/esp-idf/tools:/Users/a.asadi/.sdkman/candidates/java/current/bin:/Users/a.asadi/.modular/pkg/packages.modular.com_mojo/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/a.asadi/.mint/bin
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

Running Matter Setup

Synchronizing submodule url for 'examples/common/QRCode/repo'
Synchronizing submodule url for 'examples/common/m5stack-tft/repo'
Synchronizing submodule url for 'third_party/asr/asr550x/asr_sdk'
Synchronizing submodule url for 'third_party/asr/asr582x/asr_sdk'
Synchronizing submodule url for 'third_party/asr/asr595x/asr_sdk'
Synchronizing submodule url for 'third_party/asr/components'
Synchronizing submodule url for 'third_party/boringssl/repo/src'
Synchronizing submodule url for 'third_party/bouffalolab/repo'
Synchronizing submodule url for 'third_party/bouffalolab/repo/components'
Synchronizing submodule url for 'third_party/bouffalolab/repo/customer_app'
Synchronizing submodule url for 'third_party/bouffalolab/repo/docs'
Synchronizing submodule url for 'third_party/bouffalolab/repo/tools'
Synchronizing submodule url for 'third_party/cirque/repo'
Synchronizing submodule url for 'third_party/editline/repo'
Synchronizing submodule url for 'third_party/freertos/repo'
Synchronizing submodule url for 'third_party/imgui/repo'
Synchronizing submodule url for 'third_party/infineon/cyw30739_sdk/repos/30739A0'
Synchronizing submodule url for 'third_party/infineon/cyw30739_sdk/repos/CYW930739M2EVB-01'
Synchronizing submodule url for 'third_party/infineon/cyw30739_sdk/repos/btsdk-include'
Synchronizing submodule url for 'third_party/infineon/cyw30739_sdk/repos/btsdk-tools'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/TARGET_CY8CKIT-062S2-43012'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/abstraction-rtos'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/anycloud-ota'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/bluetooth-freertos'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/btstack'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/clib-support'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/connectivity-utilities'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/core-lib'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/core-make'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/freertos'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/kv-store'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/lwip'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/mbedtls'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/mtb-hal-cat1'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/mtb-pdl-cat1'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/psoc6cm0p'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/recipe-make-cat1a'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/retarget-io'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/secure-sockets'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/serial-flash'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/whd-bsp-integration'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/wifi-connection-manager'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/wifi-host-driver'
Synchronizing submodule url for 'third_party/infineon/psoc6/psoc6_sdk/libs/wifi-mw-core'
Synchronizing submodule url for 'third_party/infineon/trustm/optiga-trust-m'
Synchronizing submodule url for 'third_party/jsoncpp/repo'
Synchronizing submodule url for 'third_party/libwebsockets/repo'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/cypress/libs/core-lib'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/cypress/libs/cy-mbedtls-acceleration'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/cypress/libs/mtb-pdl-cat1'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/cypress/libs/pdl/psoc6pdl'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/cypress/libs/psoc6hal'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/cypress/libs/retarget-io'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/asio/asio'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/bootloader/subproject/components/micro-ecc/micro-ecc'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/bt/controller/lib_esp32'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/bt/controller/lib_esp32c3_family'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/bt/host/nimble/nimble'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/cbor/tinycbor'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/cmock/CMock'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/cmock/CMock/vendor/c_exception'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/cmock/CMock/vendor/unity'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/coap/libcoap'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/coap/libcoap/ext/tinydtls'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/esp_phy/lib'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/esp_wifi/lib'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/esptool_py/esptool'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/expat/expat'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/ieee802154/lib'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/json/cJSON'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/libsodium/libsodium'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/lwip/lwip'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/mbedtls/mbedtls'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/mqtt/esp-mqtt'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/nghttp/nghttp2'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/nghttp/nghttp2/third-party/mruby'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/nghttp/nghttp2/third-party/neverbleed'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/openthread/lib'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/openthread/openthread'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/protobuf-c/protobuf-c'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/spiffs/spiffs'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/tinyusb/tinyusb'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/components/unity/unity'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/examples/build_system/cmake/import_lib/main/lib/tinyxml2'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/boot/espressif/hal/esp-idf/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/ext/cddl-gen'
Synchronizing submodule url for 'third_party/mbed-mcu-boot/repo/ext/mbedtls'
Synchronizing submodule url for 'third_party/mbed-os-cypress-capsense-button/repo'
Synchronizing submodule url for 'third_party/mbed-os-posix-socket/repo'
Synchronizing submodule url for 'third_party/mbed-os/repo'
Synchronizing submodule url for 'third_party/mbedtls/repo'
Synchronizing submodule url for 'third_party/mt793x_sdk/filogic'
Synchronizing submodule url for 'third_party/mt793x_sdk/lwip'
Synchronizing submodule url for 'third_party/mt793x_sdk/mDNSResponder'
Synchronizing submodule url for 'third_party/nanopb/repo'
Synchronizing submodule url for 'third_party/nlassert/repo'
Synchronizing submodule url for 'third_party/nlio/repo'
Synchronizing submodule url for 'third_party/nlunit-test/repo'
Synchronizing submodule url for 'third_party/nxp/mw320_sdk/repo'
Synchronizing submodule url for 'third_party/open-iot-sdk/sdk'
Synchronizing submodule url for 'third_party/open-iot-sdk/sdk/developer-tools'
Synchronizing submodule url for 'third_party/openthread/ot-efr32'
Synchronizing submodule url for 'third_party/openthread/ot-efr32/openthread'
Synchronizing submodule url for 'third_party/openthread/ot-efr32/third_party/silabs/gecko_sdk'
Synchronizing submodule url for 'third_party/openthread/ot-ifx'
Synchronizing submodule url for 'third_party/openthread/ot-ifx/openthread'
Synchronizing submodule url for 'third_party/openthread/ot-ifx/third_party/infineon/btsdk-include'
Synchronizing submodule url for 'third_party/openthread/ot-ifx/third_party/infineon/btsdk-tools'
Synchronizing submodule url for 'third_party/openthread/ot-ifx/third_party/infineon/platform/cyw30739/30739a0'
Synchronizing submodule url for 'third_party/openthread/ot-ifx/third_party/infineon/platform/cyw30739/bsp/cyw930739m2evb-01/TARGET_CYW930739M2EVB-01'
Synchronizing submodule url for 'third_party/openthread/ot-nxp'
Synchronizing submodule url for 'third_party/openthread/ot-nxp/openthread'
Synchronizing submodule url for 'third_party/openthread/ot-qorvo'
Synchronizing submodule url for 'third_party/openthread/ot-qorvo/openthread'
Synchronizing submodule url for 'third_party/openthread/ot-qorvo/third_party/Qorvo/repo'
Synchronizing submodule url for 'third_party/openthread/ot-ti'
Synchronizing submodule url for 'third_party/openthread/ot-ti/openthread'
Synchronizing submodule url for 'third_party/openthread/ot-ti/third_party/freertos/repo'
Synchronizing submodule url for 'third_party/openthread/ot-ti/third_party/mbedtls/repo'
Synchronizing submodule url for 'third_party/openthread/ot-ti/third_party/ti_simplelink_sdk/repo_cc13xx_cc26xx'
Synchronizing submodule url for 'third_party/openthread/repo'
Synchronizing submodule url for 'third_party/ot-br-posix/repo'
Synchronizing submodule url for 'third_party/ot-br-posix/repo/third_party/cJSON/repo'
Synchronizing submodule url for 'third_party/ot-br-posix/repo/third_party/http-parser/repo'
Synchronizing submodule url for 'third_party/ot-br-posix/repo/third_party/openthread/repo'
Synchronizing submodule url for 'third_party/perfetto/repo'
Synchronizing submodule url for 'third_party/pigweed/repo'
Synchronizing submodule url for 'third_party/pybind11/repo'
Synchronizing submodule url for 'third_party/qpg_sdk/repo'
Synchronizing submodule url for 'third_party/silabs/gecko_sdk'
Synchronizing submodule url for 'third_party/silabs/matter_support'
Synchronizing submodule url for 'third_party/silabs/wifi_sdk'
Synchronizing submodule url for 'third_party/silabs/wiseconnect-wifi-bt-sdk'
Synchronizing submodule url for 'third_party/simw-top-mini/repo'
Synchronizing submodule url for 'third_party/st/STM32CubeWB'
Synchronizing submodule url for 'third_party/ti_simplelink_sdk/repo_cc13xx_cc26xx'
Synchronizing submodule url for 'third_party/ti_simplelink_sdk/repo_cc32xx'

  WELCOME TO...

         β–ˆ
         β–ˆ
     β–„   β–ˆ   β–„                                β–ˆ     β–ˆ
     β–€β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–€β–€      β–„β–€β–€β–€β–„ β–„β–€β–€β–€β–„    β–„β–€β–€β–€β–€β–„β–ˆ  β–€β–€β–ˆβ–€β–€β–€β–€β–€β–ˆβ–€β–€   β–„β–€β–€β–€β–€β–„    β–„β–€β–€
   β–€β–ˆβ–„       β–„β–ˆβ–€   β–ˆ     β–ˆ     β–ˆ  β–ˆ      β–ˆ    β–ˆ     β–ˆ    β–ˆβ–„β–„β–„β–„β–„β–„β–ˆ  β–ˆ
     β–€β–ˆβ–„   β–„β–ˆβ–€     β–ˆ     β–ˆ     β–ˆ  β–ˆ      β–ˆ    β–ˆ     β–ˆ    β–ˆ         β–ˆ
  β–„β–ˆβ–ˆβ–€β–€β–ˆ   β–ˆβ–€β–€β–ˆβ–ˆβ–„  β–ˆ     β–ˆ     β–ˆ   β–€β–„β–„β–„β–„β–€β–ˆ    β–€β–„β–„   β–€β–„β–„   β–€β–„β–„β–„β–„β–€   β–ˆ
 β–€β–€    β–ˆ   β–ˆ    β–€β–€

  BOOTSTRAP! Bootstrap may take a few minutes; please be patient.

Downloading and installing packages into local source directory:

  Setting up CIPD package manager...done (16.6s)
  Setting up Project actions........skipped (0.1s)
  Setting up Python environment.....done (3m23.6s)
  Setting up pw packages............skipped (0.1s)
  Setting up Host tools.............done (0.1s)

Activating environment (setting environment variables):

  Setting environment variables for CIPD package manager...done
  Setting environment variables for Project actions........skipped
  Setting environment variables for Python environment.....done
  Setting environment variables for pw packages............skipped
  Setting environment variables for Host tools.............done

Checking the environment:

20240723 12:17:51 INF Environment passes all checks!

Environment looks good, you are ready to go!

To reactivate this environment in the future, run this in your
terminal:

  source ./activate.sh

To deactivate this environment, run this:

  deactivate

Installing pip requirements for all...

[notice] A new release of pip is available: 23.2.1 -> 24.1.2
[notice] To update, run: pip install --upgrade pip

Building host tools

Done. Made 7565 targets from 352 files in 361ms
ninja: Entering directory `/Users/a.asadi/esp/esp-matter/connectedhomeip/connectedhomeip/out/host'
[827/827] ld ./chip-tool
ld: warning: ignoring duplicate libraries: 'liblogging-stdio.a'

Host tools built at: /Users/a.asadi/esp/esp-matter/connectedhomeip/connectedhomeip/out/host

Exit Matter environment

Installing python dependencies for mfg_tool

Requirement already satisfied: bitarray>=2.6.0 in /Users/a.asadi/.espressif/python_env/idf5.2_py3.12_env/lib/python3.12/site-packages (from -r /Users/a.asadi/esp/esp-matter/tools/mfg_tool/requirements.txt (line 1)) (2.9.2)
Collecting cryptography==36.0.0 (from -r /Users/a.asadi/esp/esp-matter/tools/mfg_tool/requirements.txt (line 2))
  Downloading cryptography-36.0.0-cp36-abi3-macosx_11_0_arm64.whl.metadata (5.4 kB)
Collecting cffi==1.15.0 (from -r /Users/a.asadi/esp/esp-matter/tools/mfg_tool/requirements.txt (line 3))
  Downloading cffi-1.15.0.tar.gz (484 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 484.1/484.1 kB 1.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting future==0.18.2 (from -r /Users/a.asadi/esp/esp-matter/tools/mfg_tool/requirements.txt (line 4))
  Downloading future-0.18.2.tar.gz (829 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 829.2/829.2 kB 5.4 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pycparser==2.21 (from -r /Users/a.asadi/esp/esp-matter/tools/mfg_tool/requirements.txt (line 5))
  Using cached pycparser-2.21-py2.py3-none-any.whl.metadata (1.1 kB)
Collecting pypng==0.0.21 (from -r /Users/a.asadi/esp/esp-matter/tools/mfg_tool/requirements.txt (line 6))
  Downloading pypng-0.0.21-py3-none-any.whl.metadata (12 kB)
Collecting PyQRCode==1.2.1 (from -r /Users/a.asadi/esp/esp-matter/tools/mfg_tool/requirements.txt (line 7))
  Downloading PyQRCode-1.2.1.zip (41 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.9/41.9 kB 4.0 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting python_stdnum==1.18 (from -r /Users/a.asadi/esp/esp-matter/tools/mfg_tool/requirements.txt (line 8))
  Downloading python_stdnum-1.18-py2.py3-none-any.whl.metadata (17 kB)
Collecting esp-secure-cert-tool==1.0.1 (from -r /Users/a.asadi/esp/esp-matter/tools/mfg_tool/requirements.txt (line 9))
  Downloading esp-secure-cert-tool-1.0.1.tar.gz (19 kB)
  Preparing metadata (setup.py) ... done
Downloading cryptography-36.0.0-cp36-abi3-macosx_11_0_arm64.whl (2.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 5.5 MB/s eta 0:00:00
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Downloading pypng-0.0.21-py3-none-any.whl (48 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.1/48.1 kB 3.7 MB/s eta 0:00:00
Downloading python_stdnum-1.18-py2.py3-none-any.whl (1.0 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 2.7 MB/s eta 0:00:00
Building wheels for collected packages: cffi, future, PyQRCode, esp-secure-cert-tool
  Building wheel for cffi (setup.py) ... done
  Created wheel for cffi: filename=cffi-1.15.0-cp312-cp312-macosx_14_0_arm64.whl size=174598 sha256=ef1ee0bf2feafb907e37b2e8f2555dcdfbccfa86429dd7f3ed40ab3c9ecbab72
  Stored in directory: /Users/a.asadi/Library/Caches/pip/wheels/b9/d6/15/0950847bf7d74ea5f0380b8b23a1d81b45bdf48488b4b8237a
  Building wheel for future (setup.py) ... done
  Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491059 sha256=2d42389aef205a9c1f9f05afec4cc600b687feac22ce568b91458638709a496b
  Stored in directory: /Users/a.asadi/Library/Caches/pip/wheels/f3/27/6f/379220bdb8dccf450313f6613ef82e2a3d4093ec8e54aa4103
  Building wheel for PyQRCode (setup.py) ... done
  Created wheel for PyQRCode: filename=PyQRCode-1.2.1-py3-none-any.whl size=36224 sha256=f3692082b87c4ecf0793f55a1ccd2dc11d8398790bc7b8f1c30ce163673a5383
  Stored in directory: /Users/a.asadi/Library/Caches/pip/wheels/38/e3/f8/8940ce720556414aefb861a143102b931d8327f6eaea5733e8
  Building wheel for esp-secure-cert-tool (setup.py) ... done
  Created wheel for esp-secure-cert-tool: filename=esp_secure_cert_tool-1.0.1-py3-none-any.whl size=21492 sha256=281f0a375ba25735bff2bfd96de540c91db6d4b539be97053ecbf64edc2e44a5
  Stored in directory: /Users/a.asadi/Library/Caches/pip/wheels/4b/cb/91/eab28142eec270b1541e6ee675431f93fa135a98c64961b03c
Successfully built cffi future PyQRCode esp-secure-cert-tool
Installing collected packages: python_stdnum, PyQRCode, pypng, pycparser, future, cffi, cryptography, esp-secure-cert-tool
  Attempting uninstall: pycparser
    Found existing installation: pycparser 2.22
    Uninstalling pycparser-2.22:
      Successfully uninstalled pycparser-2.22
  Attempting uninstall: cffi
    Found existing installation: cffi 1.16.0
    Uninstalling cffi-1.16.0:
      Successfully uninstalled cffi-1.16.0
  Attempting uninstall: cryptography
    Found existing installation: cryptography 41.0.7
    Uninstalling cryptography-41.0.7:
      Successfully uninstalled cryptography-41.0.7
Successfully installed PyQRCode-1.2.1 cffi-1.15.0 cryptography-36.0.0 esp-secure-cert-tool-1.0.1 future-0.18.2 pycparser-2.21 pypng-0.0.21 python_stdnum-1.18

Installing python dependencies for Matter

Collecting lark==1.1.2 (from -r /Users/a.asadi/esp/esp-matter/requirements.txt (line 2))
  Downloading lark-1.1.2-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting stringcase==1.2.0 (from -r /Users/a.asadi/esp/esp-matter/requirements.txt (line 3))
  Using cached stringcase-1.2.0-py3-none-any.whl
Collecting jinja2==3.0.1 (from -r /Users/a.asadi/esp/esp-matter/requirements.txt (line 5))
  Downloading Jinja2-3.0.1-py3-none-any.whl.metadata (3.5 kB)
Requirement already satisfied: urllib3<2 in /Users/a.asadi/.espressif/python_env/idf5.2_py3.12_env/lib/python3.12/site-packages (from -r /Users/a.asadi/esp/esp-matter/requirements.txt (line 8)) (1.26.19)
Collecting MarkupSafe>=2.0 (from jinja2==3.0.1->-r /Users/a.asadi/esp/esp-matter/requirements.txt (line 5))
  Using cached MarkupSafe-2.1.5-cp312-cp312-macosx_10_9_universal2.whl.metadata (3.0 kB)
Downloading lark-1.1.2-py2.py3-none-any.whl (104 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.7/104.7 kB 373.3 kB/s eta 0:00:00
Using cached Jinja2-3.0.1-py3-none-any.whl (133 kB)
Using cached MarkupSafe-2.1.5-cp312-cp312-macosx_10_9_universal2.whl (18 kB)
Installing collected packages: stringcase, lark, MarkupSafe, jinja2
Successfully installed MarkupSafe-2.1.5 jinja2-3.0.1 lark-1.1.2 stringcase-1.2.0
All done! You can now run:

  . ./export.sh
shubhamdp commented 2 months ago

@Mr-Alirezaa Thanks for the confirmation, I'll raise the fix in connectedhomeip repo and then update the submodule for v1.2

Mr-Alirezaa commented 2 months ago

@shubhamdp Never mind.

So I'll let you close the issue if you want to close it now, or after the fix is done.

shubhamdp commented 2 months ago

But, I still wonder, why our CI's don't see the problem.

shubhamdp commented 2 months ago

I have raised the PR https://github.com/project-chip/connectedhomeip/pull/34477

shubhamdp commented 2 months ago

@Mr-Alirezaa Fix is merged in release/v1.2 and this issue can be closed