Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with ERROR: Failed building wheel for cffi (CON-1422) #1160

Closed
evanthomas opened this issue Nov 19, 2024 · 10 comments
Closed

Build fails with ERROR: Failed building wheel for cffi (CON-1422) #1160

evanthomas opened this issue Nov 19, 2024 · 10 comments

Comments

@evanthomas
Copy link

evanthomas commented Nov 19, 2024

Describe the bug
I'm trying to set up Matter according to the docs here: https://docs.espressif.com/projects/esp-matter/en/latest/esp32/developing.html#esp-matter-setup

./install.sh fails with

ERROR: Failed building wheel for cffi

Environment

  • ESP-Matter Commit Id: a3dbd43
    Also happens on the release/v1.3 branch

  • ESP-IDF Commit Id: 87c9fb8d405c05e7cf74976040b8887f8265c0b8

  • SoC (eg: ESP32 or ESP32-C3): ESP32-H2

  • Device Logs (Please attach the log file): N/A

  • Host Machine OS: Mac OS 15.1

  • Host Machine Python version: 3.13.0

  • Commissioner app and versions if present:

  • Home hub app and versions if present: N/A

  • Commissioner's logs if present: N/A

Any additional details

Running Matter Setup


  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.0s)
  Setting up Project actions........skipped (0.1s)
  Setting up Python environment.....done (1m5.8s)
  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:

20241119 14:38:28 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.3.1
[notice] To update, run: pip install --upgrade pip
Building host tools

Done. Made 8249 targets from 385 files in 392ms
ninja: Entering directory `/Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip/out/host'
[803/944] ar boringssl.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_apple.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_fuchsia.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_linux.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_openbsd.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_sysreg.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_win.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_arm_freebsd.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_arm_linux.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_intel.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.curve25519_64_adx.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.fips_shared_support.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.poly1305.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.poly1305_arm.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.deterministic.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.ios.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.passive.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.trusty.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.windows.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.thread_none.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.thread_win.c.o) has no symbols
[857/944] ar libSystemLayer.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/src/system/lib/libSystemLayer.a(libSystemLayer.SystemMutex.cpp.o) has no symbols
[931/944] ar interaction-model.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/src/app/lib/interaction-model.a(interaction-model.InteractionModelDelegatePointers.cpp.o) has no symbols
[941/944] ar libCHIP.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(libSystemLayer.SystemMutex.cpp.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_apple.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_fuchsia.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_linux.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_openbsd.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_sysreg.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_win.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_arm_freebsd.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_arm_linux.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_intel.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.curve25519_64_adx.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.fips_shared_support.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.poly1305.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.poly1305_arm.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.deterministic.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.ios.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.passive.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.trusty.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.windows.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.thread_none.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.thread_win.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(interaction-model.InteractionModelDelegatePointers.cpp.o) has no symbols
[944/944] ld ./chip-tool
Host tools built at: /Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip/out/host

Exit Matter environment

Installing python dependencies for Matter

Installing requirements from requirements.txt

  error: subprocess-exited-with-error
  
  × Building wheel for cffi (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [46 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/backend_ctypes.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/error.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/setuptools_ext.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/__init__.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/cffi_opcode.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/vengine_gen.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/pkgconfig.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/model.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/ffiplatform.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/api.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/vengine_cpy.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/commontypes.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/lock.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/recompiler.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/cparser.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/verifier.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/_cffi_include.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/parse_c_type.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/_embedding.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/_cffi_errors.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.macosx-14.0-x86_64-cpython-313/c
      clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/ffi -I/Users/evan/.espressif/python_env/idf5.3_py3.13_env/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13 -c c/_cffi_backend.c -o build/temp.macosx-14.0-x86_64-cpython-313/c/_cffi_backend.o -iwithsysroot/usr/include/ffi
      c/_cffi_backend.c:4517:22: warning: 'Py_FileSystemDefaultEncoding' is deprecated [-Wdeprecated-declarations]
       4517 |                      Py_FileSystemDefaultEncoding, &filename_or_null, &flags))
            |                      ^
      /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/fileobject.h:22:1: note: 'Py_FileSystemDefaultEncoding' has been explicitly marked deprecated here
         22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
            | ^
      /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      c/_cffi_backend.c:6100:9: error: call to undeclared function '_PyErr_WriteUnraisableMsg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
       6100 |         _PyErr_WriteUnraisableMsg(PyText_AS_UTF8(s), NULL);
            |         ^
      c/_cffi_backend.c:6100:9: note: did you mean 'PyErr_WriteUnraisable'?
      /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyerrors.h:233:18: note: 'PyErr_WriteUnraisable' declared here
        233 | PyAPI_FUNC(void) PyErr_WriteUnraisable(PyObject *);
            |                  ^
      1 warning and 1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cffi
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi)
...
@github-actions github-actions bot changed the title Build fails with ERROR: Failed building wheel for cffi Build fails with ERROR: Failed building wheel for cffi (CON-1422) Nov 19, 2024
@shubhamdp
Copy link
Contributor

cffi v1.15.1 fails when using python3.13 (python-cffi/cffi#23) and Python 3.13 support is added onwards v1.17.0.

Can you please try if this works for you, and let me know, I'll add this change to the connectedhomeip

# on macos
sed -i '' 's/cffi==1.15.1/cffi==1.17.1/g' connectedhomeip/connectedhomeip/scripts/setup/constraints.txt

# on linux
sed -i 's/cffi==1.15.1/cffi==1.17.1/g' connectedhomeip/connectedhomeip/scripts/setup/constraints.txt

@evanthomas
Copy link
Author

Unfortunately, is still fails.

➜  esp-matter git:(main) sed -i '' 's/cffi==1.15.1/cffi==1.17.1/g' connectedhomeip/connectedhomeip/scripts/setup/constraints.txt
➜  esp-matter git:(main) cd ./connectedhomeip/connectedhomeip
➜  connectedhomeip git:(ce0101d2) ✗ ./scripts/checkout_submodules.py --platform esp32 darwin --shallow
Checking out: nlassert, nlio, mbedtls, qrcode, m5stack-tft, pigweed, openthread, nanopb, freertos, third_party/jsoncpp/repo, editline, third_party/boringssl/repo/src, third_party/libwebsockets/repo, perfetto, third_party/abseil-cpp/src, third_party/fuzztest, third_party/googletest, third_party/re2/src
➜  connectedhomeip git:(ce0101d2) ✗ cd ../..
➜  esp-matter git:(main) ./install.sh 
Running Matter Setup

2024-11-19 17:30:12,526 Loading extra packages for darwin
2024-11-19 17:30:12,527 Appending: /Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/cipd_setup/python311.json for this platform
2024-11-19 17:30:12,527 Skipping: windows (i.e. /Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/cipd_setup/python311.json)

  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 (42.6s)
  Setting up Project actions........skipped (0.1s)
  Setting up Python environment.....done (1m33.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:

20241119 17:32:40 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.3.1
[notice] To update, run: pip install --upgrade pip
Building host tools

Done. Made 9150 targets from 412 files in 500ms
ninja: Entering directory `/Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip/out/host'
[128/941] ar libSystemLayer.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/src/system/lib/libSystemLayer.a(libSystemLayer.SystemMutex.cpp.o) has no symbols
[416/941] ar boringssl.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_apple.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_fuchsia.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_linux.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_openbsd.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_sysreg.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_win.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_arm_freebsd.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_arm_linux.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_intel.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.curve25519_64_adx.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.fips_shared_support.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.poly1305.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.poly1305_arm.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.deterministic.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.ios.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.passive.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.trusty.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.windows.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.thread_none.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.thread_win.c.o) has no symbols
[702/941] ar interaction-model.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/src/app/lib/interaction-model.a(interaction-model.InteractionModelDelegatePointers.cpp.o) has no symbols
[890/941] ar libCHIP.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(libSystemLayer.SystemMutex.cpp.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_apple.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_fuchsia.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_linux.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_openbsd.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_sysreg.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_win.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_arm_freebsd.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_arm_linux.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_intel.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.curve25519_64_adx.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.fips_shared_support.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.poly1305.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.poly1305_arm.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.deterministic.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.ios.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.passive.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.trusty.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.windows.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.thread_none.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.thread_win.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(interaction-model.InteractionModelDelegatePointers.cpp.o) has no symbols
[941/941] ld ./chip-tool
Host tools built at: /Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip/out/host

Exit Matter environment

Installing python dependencies for Matter

Installing requirements from requirements.txt

  error: subprocess-exited-with-error
  
  × Building wheel for cffi (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [46 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/backend_ctypes.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/error.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/setuptools_ext.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/__init__.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/cffi_opcode.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/vengine_gen.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/pkgconfig.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/model.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/ffiplatform.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/api.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/vengine_cpy.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/commontypes.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/lock.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/recompiler.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/cparser.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/verifier.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/_cffi_include.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/parse_c_type.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/_embedding.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/_cffi_errors.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.macosx-14.0-x86_64-cpython-313/c
      clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/ffi -I/Users/evan/.espressif/python_env/idf5.3_py3.13_env/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13 -c c/_cffi_backend.c -o build/temp.macosx-14.0-x86_64-cpython-313/c/_cffi_backend.o -iwithsysroot/usr/include/ffi
      c/_cffi_backend.c:4517:22: warning: 'Py_FileSystemDefaultEncoding' is deprecated [-Wdeprecated-declarations]
       4517 |                      Py_FileSystemDefaultEncoding, &filename_or_null, &flags))
            |                      ^
      /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/fileobject.h:22:1: note: 'Py_FileSystemDefaultEncoding' has been explicitly marked deprecated here
         22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
            | ^
      /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      c/_cffi_backend.c:6100:9: error: call to undeclared function '_PyErr_WriteUnraisableMsg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
       6100 |         _PyErr_WriteUnraisableMsg(PyText_AS_UTF8(s), NULL);
            |         ^
      c/_cffi_backend.c:6100:9: note: did you mean 'PyErr_WriteUnraisable'?
      /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyerrors.h:233:18: note: 'PyErr_WriteUnraisable' declared here
        233 | PyAPI_FUNC(void) PyErr_WriteUnraisable(PyObject *);
            |                  ^
      1 warning and 1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cffi
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi)
➜  esp-matter git:(main) cat ./connectedhomeip/connectedhomeip/scripts/setup/constraints.txt 
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
#    pip-compile --allow-unsafe --output-file=constraints.txt --strip-extras requirements.all.txt
#
anytree==2.8.0
    # via -r requirements.memory.txt
appdirs==1.4.4
    # via -r requirements.all.txt
appnope==0.1.3
    # via -r requirements.all.txt
asttokens==2.2.1
    # via stack-data
attrs==22.2.0
    # via jsonschema
backcall==0.2.0
    # via ipython
bitstring==3.1.9
    # via
    #   -r requirements.esp32.txt
    #   esptool
build==0.8.0
    # via
    #   -r requirements.all.txt
    #   pip-tools
cachecontrol==0.12.11
    # via idf-component-manager
cbor==1.0.0
    # via -r requirements.zephyr.txt
cbor2==5.4.6
    # via -r requirements.zephyr.txt
certifi==2022.12.7
    # via requests
cffi==1.17.1
    # via cryptography
charset-normalizer==3.0.1
    # via requests
click==8.1.3
    # via
    #   -r requirements.build.txt
    #   -r requirements.esp32.txt
    #   idf-component-manager
    #   pip-tools
colorama==0.4.6
    # via
    #   -r requirements.all.txt
    #   idf-component-manager
    #   west
coloredlogs==15.0.1
    # via -r requirements.all.txt
construct==2.10.70
    # via
    #   -r requirements.esp32.txt
    #   esp-coredump
contextlib2==21.6.0
    # via
    #   idf-component-manager
    #   schema
cryptography==39.0.2
    # via
    #   -c constraints.esp32.txt
    #   -r requirements.all.txt
    #   esptool
cxxfilt==0.3.0
    # via -r requirements.memory.txt
decorator==5.1.1
    # via ipython
diskcache==5.4.0
    # via -r requirements.all.txt
distlib==0.3.6
    # via virtualenv
docopt==0.6.2
    # via pykwalify
ecdsa==0.18.0
    # via
    #   -r requirements.esp32.txt
    #   esptool
esp-coredump==1.7.0
    # via esp-idf-monitor
esp-idf-kconfig==1.2.0
    # via -r requirements.esp32.txt
esp-idf-monitor==1.1.1
    # via -r requirements.esp32.txt
esptool==4.6.2
    # via esp-coredump
executing==1.2.0
    # via stack-data
fastcore==1.5.28
    # via ghapi
filelock==3.9.0
    # via virtualenv
future==0.18.3
    # via
    #   -r requirements.esp32.txt
    #   idf-component-manager
ghapi==1.0.3
    # via -r requirements.memory.txt
humanfriendly==10.0
    # via coloredlogs
idf-component-manager==1.5.2
    # via -r requirements.esp32.txt
idna==3.4
    # via requests
intelhex==2.3.0
    # via -r requirements.zephyr.txt
ipython==8.11.0
    # via -r requirements.all.txt
jedi==0.18.2
    # via ipython
jinja2==3.0.3
    # via -r requirements.build.txt
jsonschema==4.17.3
    # via -r requirements.zephyr.txt
kconfiglib==13.7.1
    # via esp-idf-kconfig
lark==1.1.5
    # via
    #   -r requirements.all.txt
    #   -r requirements.build.txt
lockfile==0.12.2
    # via cachecontrol
markupsafe==2.1.2
    # via jinja2
matplotlib-inline==0.1.6
    # via ipython
mobly==1.12.1
    # via -r requirements.all.txt
msgpack==1.0.4
    # via cachecontrol
mypy==1.10.1
    # via -r requirements.all.txt
mypy-extensions==1.0.0
    # via mypy
mypy-protobuf==3.5.0
    # via -r requirements.all.txt
numpy==1.26.4
    # via pandas
packaging==23.0
    # via
    #   build
    #   fastcore
    #   ghapi
    #   idf-component-manager
    #   west
pandas==2.1.4 ; platform_machine != "aarch64" and platform_machine != "arm64"
    # via -r requirements.memory.txt
parso==0.8.3
    # via jedi
pep517==0.13.0
    # via build
pexpect==4.8.0
    # via ipython
pgi==0.0.11.2 ; sys_platform == "linux"
    # via -r requirements.all.txt
pickleshare==0.7.5
    # via ipython
pip-tools==7.0.0
    # via -r requirements.all.txt
platformdirs==3.0.0
    # via virtualenv
portpicker==1.5.2
    # via
    #   -r requirements.all.txt
    #   mobly
prompt-toolkit==3.0.43
    # via ipython
protobuf==4.24.4
    # via
    #   -r requirements.all.txt
    #   mypy-protobuf
psutil==5.9.4
    # via portpicker
ptyprocess==0.7.0
    # via pexpect
pure-eval==0.2.2
    # via stack-data
pycparser==2.21
    # via cffi
pyelftools==0.30
    # via
    #   -c constraints.esp32.txt
    #   esp-idf-monitor
pygdbmi==0.9.0.2
    # via
    #   -r requirements.esp32.txt
    #   esp-coredump
pygments==2.14.0
    # via ipython
pykwalify==1.8.0
    # via west
pyparsing==3.0.9
    # via -r requirements.esp32.txt
pyrsistent==0.19.3
    # via jsonschema
pyserial==3.5
    # via
    #   -c constraints.esp32.txt
    #   esp-idf-monitor
    #   esptool
python-dateutil==2.8.2
    # via
    #   pandas
    #   pykwalify
python-engineio==3.14.2
    # via python-socketio
python-socketio==4.6.1
    # via -r requirements.esp32.txt
pytz==2022.7.1
    # via pandas
pyyaml==6.0.1
    # via
    #   esptool
    #   idf-component-manager
    #   mobly
    #   west
reedsolo==1.5.4
    # via
    #   -r requirements.esp32.txt
    #   esptool
requests==2.28.2
    # via
    #   -r requirements.cirque.txt
    #   cachecontrol
    #   idf-component-manager
    #   requests-file
    #   requests-toolbelt
requests-file==1.5.1
    # via idf-component-manager
requests-toolbelt==0.10.1
    # via idf-component-manager
ruamel-yaml==0.17.21
    # via pykwalify
schema==0.7.5
    # via idf-component-manager
six==1.16.0
    # via
    #   anytree
    #   asttokens
    #   ecdsa
    #   idf-component-manager
    #   python-dateutil
    #   python-engineio
    #   python-socketio
    #   requests-file
stack-data==0.6.2
    # via ipython
tabulate==0.9.0
    # via -r requirements.memory.txt
tornado==6.2
    # via -r requirements.all.txt
tqdm==4.64.1
    # via idf-component-manager
traitlets==5.9.0
    # via
    #   ipython
    #   matplotlib-inline
types-protobuf==4.24.0.2
    # via
    #   -r requirements.all.txt
    #   mypy-protobuf
typing-extensions==4.6.0
    # via mypy
urllib3==1.26.14
    # via requests
virtualenv==20.20.0
    # via -r requirements.all.txt
watchdog==2.3.1
    # via -r requirements.all.txt
wcwidth==0.2.6
    # via prompt-toolkit
websockets==10.4
    # via -r requirements.all.txt
west==1.2.0
    # via -r requirements.zephyr.txt
wheel==0.38.4 ; sys_platform == "linux"
    # via
    #   -r requirements.all.txt
    #   pip-tools

# The following packages are considered to be unsafe in a requirements file:
pip==23.2.1
    # via
    #   fastcore
    #   ghapi
    #   pip-tools
setuptools==68.0.0
    # via
    #   pip-tools
    #   west

# Manual edits:

# Higher versions depend on proto-plus, which break
# nanopb code generation (due to name conflict of the 'proto' module)
google-api-core==2.17.0
➜  esp-matter git:(main) grep cffi ./connectedhomeip/connectedhomeip/scripts/setup/constraints.txt
cffi==1.17.1
    # via cffi
➜  esp-matter git:(main) 

@shubhamdp
Copy link
Contributor

Can you try this patch: https://github.com/project-chip/connectedhomeip/pull/36549/files. This won't be applied cleanly, you will have to manually edit the files.

@shubhamdp
Copy link
Contributor

Please try removing the earlier environment: rm -rf connectedhomeip/connectedhomeip/.environment

@evanthomas
Copy link
Author

Still no, sorry. I notice the python environment is in $HOME/.espressif, not sure if that is important. My process has been to blow away the esp-matter repo and start from the top.

➜  esp source esp-idf/export.sh
Detecting the Python interpreter
Checking "python3" ...
Python 3.13.0
"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/evan/.espressif/espidf.constraints.v5.3.txt
Requirement files:
 - /Users/evan/projects/esp/esp-idf/tools/requirements/requirements.core.txt
Python being checked: /Users/evan/.espressif/python_env/idf5.3_py3.13_env/bin/python
Python requirements are satisfied.
Updated PATH variable:
  /Users/evan/projects/esp/esp-idf/components/espcoredump:/Users/evan/projects/esp/esp-idf/components/partition_table:/Users/evan/projects/esp/esp-idf/components/app_update:/Users/evan/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin:/Users/evan/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin:/Users/evan/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin:/Users/evan/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin:/Users/evan/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin:/Users/evan/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin:/Users/evan/projects/esp/esp-idf/components/espcoredump:/Users/evan/projects/esp/esp-idf/components/partition_table:/Users/evan/projects/esp/esp-idf/components/app_update:/Users/evan/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin:/Users/evan/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin:/Users/evan/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin:/Users/evan/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin:/Users/evan/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin:/Users/evan/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin:/Users/evan/projects/esp/esp-idf/components/espcoredump:/Users/evan/projects/esp/esp-idf/components/partition_table:/Users/evan/projects/esp/esp-idf/components/app_update:/Users/evan/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin:/Users/evan/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin:/Users/evan/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin:/Users/evan/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin:/Users/evan/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin:/Users/evan/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin:/Users/evan/.espressif/python_env/idf5.3_py3.13_env/bin:/Users/evan/projects/esp/esp-idf/tools:/opt/homebrew/anaconda3/condabin:/Users/evan/.juliaup/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
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

➜  esp git clone --depth 1 https://github.com/espressif/esp-matter.git
Cloning into 'esp-matter'...
remote: Enumerating objects: 748, done.
remote: Counting objects: 100% (748/748), done.
remote: Compressing objects: 100% (610/610), done.
remote: Total 748 (delta 233), reused 542 (delta 116), pack-reused 0 (from 0)
Receiving objects: 100% (748/748), 5.38 MiB | 11.96 MiB/s, done.
Resolving deltas: 100% (233/233), done.
➜  esp cd esp-matter 
➜  esp-matter git:(main) git submodule update --init --depth 1
Submodule 'connectedhomeip/connectedhomeip' (https://github.com/espressif/connectedhomeip.git) registered for path 'connectedhomeip/connectedhomeip'
Cloning into '/Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip'...
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Enumerating objects: 18662, done.
remote: Counting objects: 100% (18662/18662), done.
remote: Compressing objects: 100% (12700/12700), done.
remote: Total 17453 (delta 7503), reused 9142 (delta 3873), pack-reused 0 (from 0)
Receiving objects: 100% (17453/17453), 45.15 MiB | 15.39 MiB/s, done.
Resolving deltas: 100% (7503/7503), completed with 610 local objects.
From https://github.com/espressif/connectedhomeip
 * branch              ce0101d2e293a442a3fe892f3a321f4276a4c962 -> FETCH_HEAD
Submodule path 'connectedhomeip/connectedhomeip': checked out 'ce0101d2e293a442a3fe892f3a321f4276a4c962'
➜  esp-matter git:(main) cd ./connectedhomeip/connectedhomeip
➜  connectedhomeip git:(ce0101d2) ./scripts/checkout_submodules.py --platform esp32 darwin --shallow
Checking out: nlassert, nlio, mbedtls, qrcode, m5stack-tft, pigweed, openthread, nanopb, freertos, third_party/jsoncpp/repo, editline, third_party/boringssl/repo/src, third_party/libwebsockets/repo, perfetto, third_party/abseil-cpp/src, third_party/fuzztest, third_party/googletest, third_party/re2/src
➜  connectedhomeip git:(ce0101d2) ls   
BUILD.gn                  LICENSE                   SPECIFICATION_VERSION     credentials               gn_build.sh               lgtm.yml                  third_party
CODEOWNERS                NOTICE                    build                     data_model                integrations              ruff.toml                 zzz_generated
CODE_OF_CONDUCT.md        README.md                 build_overrides           docs                      iwyu.imp                  scripts
CONTRIBUTING.md           REVIEWERS.md              config                    examples                  kotlin-detect-config.yaml src
➜  connectedhomeip git:(ce0101d2) nano scripts/setup/constraints.txt 
➜  connectedhomeip git:(ce0101d2) ✗ 
➜  connectedhomeip git:(ce0101d2) ✗ 
➜  connectedhomeip git:(ce0101d2) ✗ ls -a
.                         .editorconfig             .isort.cfg                BUILD.gn                  SPECIFICATION_VERSION     gn_build.sh               third_party
..                        .git                      .mergify.yml              CODEOWNERS                build                     integrations              zzz_generated
.actrc                    .gitattributes            .prettierrc.json          CODE_OF_CONDUCT.md        build_overrides           iwyu.imp
.clang-format             .githooks                 .pullapprove.yml          CONTRIBUTING.md           config                    kotlin-detect-config.yaml
.clang-tidy               .github                   .restyled.yaml            LICENSE                   credentials               lgtm.yml
.default-version.min      .gitignore                .shellcheck_tree          NOTICE                    data_model                ruff.toml
.devcontainer             .gitmodules               .spellcheck.yml           README.md                 docs                      scripts
.dir-locals.el            .gn                       .vscode                   REVIEWERS.md              examples                  src
➜  connectedhomeip git:(ce0101d2) ✗ pwd
/Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip
➜  connectedhomeip git:(ce0101d2) ✗ nano scripts/setup/requirements.all.txt 
➜  connectedhomeip git:(ce0101d2) ✗ nano scripts/tools/telink/requirements.txt 
➜  connectedhomeip git:(ce0101d2) ✗ 
➜  connectedhomeip git:(ce0101d2) ✗ 
➜  connectedhomeip git:(ce0101d2) ✗ pwd
/Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip
➜  connectedhomeip git:(ce0101d2) ✗ cat scripts/setup/constraints.txt
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
#    pip-compile --allow-unsafe --output-file=constraints.txt --strip-extras requirements.all.txt
#
anytree==2.8.0
    # via -r requirements.memory.txt
appdirs==1.4.4
    # via -r requirements.all.txt
appnope==0.1.3
    # via -r requirements.all.txt
asttokens==2.2.1
    # via stack-data
attrs==22.2.0
    # via jsonschema
backcall==0.2.0
    # via ipython
bitstring==3.1.9
    # via
    #   -r requirements.esp32.txt
    #   esptool
build==0.8.0
    # via
    #   -r requirements.all.txt
    #   pip-tools
cachecontrol==0.12.11
    # via idf-component-manager
cbor==1.0.0
    # via -r requirements.zephyr.txt
cbor2==5.4.6
    # via -r requirements.zephyr.txt
certifi==2022.12.7
    # via requests
charset-normalizer==3.0.1
    # via requests
click==8.1.3
    # via
    #   -r requirements.build.txt
    #   -r requirements.esp32.txt
    #   idf-component-manager
    #   pip-tools
colorama==0.4.6
    # via
    #   -r requirements.all.txt
    #   idf-component-manager
    #   west
coloredlogs==15.0.1
    # via -r requirements.all.txt
construct==2.10.70
    # via
    #   -r requirements.esp32.txt
    #   esp-coredump
contextlib2==21.6.0
    # via
    #   idf-component-manager
    #   schema
cryptography==39.0.2
    # via
    #   -c constraints.esp32.txt
    #   -r requirements.all.txt
    #   esptool
cxxfilt==0.3.0
    # via -r requirements.memory.txt
decorator==5.1.1
    # via ipython
diskcache==5.4.0
    # via -r requirements.all.txt
distlib==0.3.6
    # via virtualenv
docopt==0.6.2
    # via pykwalify
ecdsa==0.18.0
    # via
    #   -r requirements.esp32.txt
    #   esptool
esp-coredump==1.7.0
    # via esp-idf-monitor
esp-idf-kconfig==1.2.0
    # via -r requirements.esp32.txt
esp-idf-monitor==1.1.1
    # via -r requirements.esp32.txt
esptool==4.6.2
    # via esp-coredump
executing==1.2.0
    # via stack-data
fastcore==1.5.28
    # via ghapi
filelock==3.9.0
    # via virtualenv
future==0.18.3
    # via
    #   -r requirements.esp32.txt
    #   idf-component-manager
ghapi==1.0.3
    # via -r requirements.memory.txt
humanfriendly==10.0
    # via coloredlogs
idf-component-manager==1.5.2
    # via -r requirements.esp32.txt
idna==3.4
    # via requests
intelhex==2.3.0
    # via -r requirements.zephyr.txt
ipython==8.11.0
    # via -r requirements.all.txt
jedi==0.18.2
    # via ipython
jinja2==3.0.3
    # via -r requirements.build.txt
jsonschema==4.17.3
    # via -r requirements.zephyr.txt
kconfiglib==13.7.1
    # via esp-idf-kconfig
lark==1.1.5
    # via
    #   -r requirements.all.txt
    #   -r requirements.build.txt
lockfile==0.12.2
    # via cachecontrol
markupsafe==2.1.2
    # via jinja2
matplotlib-inline==0.1.6
    # via ipython
mobly==1.12.1
    # via -r requirements.all.txt
msgpack==1.0.4
    # via cachecontrol
mypy==1.10.1
    # via -r requirements.all.txt
mypy-extensions==1.0.0
    # via mypy
mypy-protobuf==3.5.0
    # via -r requirements.all.txt
numpy==1.26.4
    # via pandas
packaging==23.0
    # via
    #   build
    #   fastcore
    #   ghapi
    #   idf-component-manager
    #   west
pandas==2.1.4 ; platform_machine != "aarch64" and platform_machine != "arm64"
    # via -r requirements.memory.txt
parso==0.8.3
    # via jedi
pep517==0.13.0
    # via build
pexpect==4.8.0
    # via ipython
pgi==0.0.11.2 ; sys_platform == "linux"
    # via -r requirements.all.txt
pickleshare==0.7.5
    # via ipython
pip-tools==7.0.0
    # via -r requirements.all.txt
platformdirs==3.0.0
    # via virtualenv
portpicker==1.5.2
    # via
    #   -r requirements.all.txt
    #   mobly
prompt-toolkit==3.0.43
    # via ipython
protobuf==4.24.4
    # via
    #   -r requirements.all.txt
    #   mypy-protobuf
psutil==5.9.4
    # via portpicker
ptyprocess==0.7.0
    # via pexpect
pure-eval==0.2.2
    # via stack-data
pycparser==2.21
    # via cffi
pyelftools==0.30
    # via
    #   -c constraints.esp32.txt
    #   esp-idf-monitor
pygdbmi==0.9.0.2
    # via
    #   -r requirements.esp32.txt
    #   esp-coredump
pygments==2.14.0
    # via ipython
pykwalify==1.8.0
    # via west
pyparsing==3.0.9
    # via -r requirements.esp32.txt
pyrsistent==0.19.3
    # via jsonschema
pyserial==3.5
    # via
    #   -c constraints.esp32.txt
    #   esp-idf-monitor
    #   esptool
python-dateutil==2.8.2
    # via
    #   pandas
    #   pykwalify
python-engineio==3.14.2
    # via python-socketio
python-socketio==4.6.1
    # via -r requirements.esp32.txt
pytz==2022.7.1
    # via pandas
pyyaml==6.0.1
    # via
    #   esptool
    #   idf-component-manager
    #   mobly
    #   west
reedsolo==1.5.4
    # via
    #   -r requirements.esp32.txt
    #   esptool
requests==2.28.2
    # via
    #   -r requirements.cirque.txt
    #   cachecontrol
    #   idf-component-manager
    #   requests-file
    #   requests-toolbelt
requests-file==1.5.1
    # via idf-component-manager
requests-toolbelt==0.10.1
    # via idf-component-manager
ruamel-yaml==0.17.21
    # via pykwalify
schema==0.7.5
    # via idf-component-manager
six==1.16.0
    # via
    #   anytree
    #   asttokens
    #   ecdsa
    #   idf-component-manager
    #   python-dateutil
    #   python-engineio
    #   python-socketio
    #   requests-file
stack-data==0.6.2
    # via ipython
tabulate==0.9.0
    # via -r requirements.memory.txt
tornado==6.2
    # via -r requirements.all.txt
tqdm==4.64.1
    # via idf-component-manager
traitlets==5.9.0
    # via
    #   ipython
    #   matplotlib-inline
types-protobuf==4.24.0.2
    # via
    #   -r requirements.all.txt
    #   mypy-protobuf
typing-extensions==4.6.0
    # via mypy
urllib3==1.26.14
    # via requests
virtualenv==20.20.0
    # via -r requirements.all.txt
watchdog==2.3.1
    # via -r requirements.all.txt
wcwidth==0.2.6
    # via prompt-toolkit
websockets==10.4
    # via -r requirements.all.txt
west==1.2.0
    # via -r requirements.zephyr.txt
wheel==0.38.4 ; sys_platform == "linux"
    # via
    #   -r requirements.all.txt
    #   pip-tools

# The following packages are considered to be unsafe in a requirements file:
pip==23.2.1
    # via
    #   fastcore
    #   ghapi
    #   pip-tools
setuptools==68.0.0
    # via
    #   pip-tools
    #   west

# Manual edits:

# Higher versions depend on proto-plus, which break
# nanopb code generation (due to name conflict of the 'proto' module)
google-api-core==2.17.0
➜  connectedhomeip git:(ce0101d2) ✗ nano scripts/setup/requirements.all.txt   
➜  connectedhomeip git:(ce0101d2) ✗ cat scripts/setup/requirements.all.txt
pip-tools>=7.0.0
virtualenv

# core build requirements
-r requirements.build.txt

# esp-idf
-c constraints.esp32.txt
-r requirements.esp32.txt

-r requirements.zephyr.txt
-r requirements.cirque.txt
-r requirements.memory.txt

# device controller wheel package
wheel; sys_platform == 'linux'
pgi; sys_platform == 'linux'
pyobjc-core; sys_platform == 'darwin'
pyobjc-framework-cocoa; sys_platform == 'darwin'
pyobjc-framework-corebluetooth; sys_platform == 'darwin'

# python unit tests run directly without installing
# built venv
#
# TODO: this should change in the Future
diskcache
lark
websockets

# mobly tests
portpicker
mobly

# pigweed
ipython
appnope
appdirs
coloredlogs
watchdog
build==0.8.0
mypy==1.10.1
mypy-protobuf==3.5.0
protobuf==4.24.4
types-protobuf==4.24.0.2

cffi==1.15.0; python_version < "3.13"
cffi==1.17.1; python_version >= "3.13"

cryptography

# python unit tests
colorama

# update tornado for pw_watch
tornado
➜  connectedhomeip git:(ce0101d2) ✗ cd ../..
➜  esp-matter git:(main) ./install.sh 
Running Matter Setup

2024-11-20 13:49:13,105 Loading extra packages for darwin
2024-11-20 13:49:13,105 Appending: /Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/cipd_setup/python311.json for this platform
2024-11-20 13:49:13,105 Skipping: windows (i.e. /Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/cipd_setup/python311.json)

  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 (14.9s)
  Setting up Project actions........skipped (0.1s)
  Setting up Python environment.....done (1m17.7s)
  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:

20241120 13:51:00 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.3.1
[notice] To update, run: pip install --upgrade pip
Building host tools

Done. Made 9150 targets from 412 files in 450ms
ninja: Entering directory `/Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip/out/host'
[124/941] ar libSystemLayer.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/src/system/lib/libSystemLayer.a(libSystemLayer.SystemMutex.cpp.o) has no symbols
[416/941] ar boringssl.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_apple.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_fuchsia.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_linux.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_openbsd.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_sysreg.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_aarch64_win.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_arm_freebsd.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_arm_linux.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.cpu_intel.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.curve25519_64_adx.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.fips_shared_support.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.poly1305.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.poly1305_arm.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.deterministic.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.ios.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.passive.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.trusty.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.windows.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.thread_none.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/third_party/boringssl/repo/lib/boringssl.a(boringssl.thread_win.c.o) has no symbols
[707/941] ar interaction-model.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: obj/src/app/lib/interaction-model.a(interaction-model.InteractionModelDelegatePointers.cpp.o) has no symbols
[887/941] ar libCHIP.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(libSystemLayer.SystemMutex.cpp.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_apple.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_fuchsia.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_linux.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_openbsd.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_sysreg.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_aarch64_win.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_arm_freebsd.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_arm_linux.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.cpu_intel.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.curve25519_64_adx.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.fips_shared_support.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.poly1305.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.poly1305_arm.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.deterministic.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.ios.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.passive.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.trusty.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.windows.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.thread_none.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(boringssl.thread_win.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libCHIP.a(interaction-model.InteractionModelDelegatePointers.cpp.o) has no symbols
[941/941] ld ./chip-tool
Host tools built at: /Users/evan/projects/esp/esp-matter/connectedhomeip/connectedhomeip/out/host

Exit Matter environment

Installing python dependencies for Matter

Installing requirements from requirements.txt

  error: subprocess-exited-with-error
  
  × Building wheel for cffi (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [46 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/backend_ctypes.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/error.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/setuptools_ext.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/__init__.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/cffi_opcode.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/vengine_gen.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/pkgconfig.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/model.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/ffiplatform.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/api.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/vengine_cpy.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/commontypes.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/lock.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/recompiler.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/cparser.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/verifier.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/_cffi_include.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/parse_c_type.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/_embedding.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      copying cffi/_cffi_errors.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.macosx-14.0-x86_64-cpython-313/c
      clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/ffi -I/Users/evan/.espressif/python_env/idf5.3_py3.13_env/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13 -c c/_cffi_backend.c -o build/temp.macosx-14.0-x86_64-cpython-313/c/_cffi_backend.o -iwithsysroot/usr/include/ffi
      c/_cffi_backend.c:4517:22: warning: 'Py_FileSystemDefaultEncoding' is deprecated [-Wdeprecated-declarations]
       4517 |                      Py_FileSystemDefaultEncoding, &filename_or_null, &flags))
            |                      ^
      /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/fileobject.h:22:1: note: 'Py_FileSystemDefaultEncoding' has been explicitly marked deprecated here
         22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
            | ^
      /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      c/_cffi_backend.c:6100:9: error: call to undeclared function '_PyErr_WriteUnraisableMsg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
       6100 |         _PyErr_WriteUnraisableMsg(PyText_AS_UTF8(s), NULL);
            |         ^
      c/_cffi_backend.c:6100:9: note: did you mean 'PyErr_WriteUnraisable'?
      /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyerrors.h:233:18: note: 'PyErr_WriteUnraisable' declared here
        233 | PyAPI_FUNC(void) PyErr_WriteUnraisable(PyObject *);
            |                  ^
      1 warning and 1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cffi
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi)
➜  esp-matter git:(main) pip remove cffi
ERROR: unknown command "remove"
➜  esp-matter git:(main) pip uninstall cffi
Found existing installation: cffi 1.17.1
Uninstalling cffi-1.17.1:
  Would remove:
    /Users/evan/.espressif/python_env/idf5.3_py3.13_env/lib/python3.13/site-packages/_cffi_backend.cpython-313-darwin.so
    /Users/evan/.espressif/python_env/idf5.3_py3.13_env/lib/python3.13/site-packages/cffi-1.17.1.dist-info/*
    /Users/evan/.espressif/python_env/idf5.3_py3.13_env/lib/python3.13/site-packages/cffi/*
Proceed (Y/n)? n
➜  esp-matter git:(main) pip list | grep cffi
cffi                      1.17.1
➜  esp-matter git:(main) 
➜  esp-matter git:(main) 
➜  esp-matter git:(main) which python
/Users/evan/.espressif/python_env/idf5.3_py3.13_env/bin/python

@shubhamdp
Copy link
Contributor

@evanthomas matter environment is setup correctly, this is the last step, and this cffi is from esp-matter-mfg-tool.
If you are not planning to use esp-matter-mfg-tool then you can continue to build examples.

We have identified and will push fix till then can you please remove that dependency from

esp-matter-mfg-tool

@evanthomas
Copy link
Author

Works for me - thanks.

@shubhamdp
Copy link
Contributor

@evanthomas If you could please pull the latest esp-matter and re-run the install.sh, we have updated the submodule in e09e20b to work with Python3.13.

@evanthomas
Copy link
Author

I can confirm it builds without error now.

@shubhamdp
Copy link
Contributor

@evanthomas thanks for the confirmation, I've also bumped the esp-matter-mfg-tool version which supports Python v3.13, and that commit (a6c9e5b) closed this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants