Skip to content

idf.py menuconfig fails on Apple silicon #185

Description

@tcgerhard

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

Complete without a traceback

Actual behavior (suspected bug)

MacOs 26.3.1 (a)

Following Step 2. at https://openthread.io/guides/border-router/espressif-esp32#configure-the-thread-and-the-wi-fi-network

idf.py fails with /Users/tom/.espressif/python_env/idf5.1_py3.8_env/lib/python3.8/site-packages/pydantic_core/_pydantic_core.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
idf.py without argument successfully display help messsage
idf.py clean runs successfully but does not help

Error logs or terminal output

ImportError:
  dlopen(/Users/tom/.espressif/python_env/idf5.1_py3.8_env/lib/python3.8/site-packages/pydantic_core/_pydantic_core.cpython-38-darwin.so,
  0x0002): tried:
  '/Users/tom/.espressif/python_env/idf5.1_py3.8_env/lib/python3.8/site-packages/pydantic_core/_pydantic_core.cpython-38-darwin.so'
  (mach-o file, but is an incompatible architecture (have 'arm64', need
  'x86_64')),
  '/System/Volumes/Preboot/Cryptexes/OS/Users/tom/.espressif/python_env/idf5.1_py3.8_env/lib/python3.8/site-packages/pydantic_core/_pydantic_core.cpython-38-darwin.so'
  (no such file),
  '/Users/tom/.espressif/python_env/idf5.1_py3.8_env/lib/python3.8/site-packages/pydantic_core/_pydantic_core.cpython-38-darwin.so'
  (mach-o file, but is an incompatible architecture (have 'arm64', need
  'x86_64'))

Steps to reproduce the behavior

From https://openthread.io/guides/border-router/espressif-esp32#configure-the-thread-and-the-wi-fi-network

git clone -b v5.1.2 --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
./install.sh
. ./export.sh
cd ..
git clone -b v1.0 --recursive https://github.com/espressif/esp-thread-br.git

and

cd esp-thread-br/examples/basic_thread_border_router
idf.py menuconfig

Project release version

5.1.2

System architecture

ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)

Operating system

MacOS

Operating system version

26.3.1 (a)

Shell

Bash

Additional context

Started from a clean directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions