Incompatable architecture problem

wrknowles
Posts: 1
Joined: Wed Feb 18, 2026 6:14 am

Incompatable architecture problem

Postby wrknowles » Wed Feb 18, 2026 6:39 am

MacBook Air, Sequoia 15.5, M3 chip

Removed Python from system, installed from python.org and hombrew, get the same error:

in get-started/blink, run idf.py set-target esp32s3
I get an incompatible architecture error:
mach-o file, but is an incompatible architecture (have 'arm64', need
'x86_64'
(full traceback below.

I think I've tried everything that I can find on the interwebs (forced arch -arm, arch -x86, delete everything, install everything, run rosetta), so what am I missing?

Thanks for your help

-----------------
-- Building ESP-IDF components for target esp32
CMake Error at /Users/waltk/esp/esp-idf/tools/cmake/build.cmake:695 (message):
Traceback (most recent call last):

File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/Users/waltk/.espressif/python_env/idf6.1_py3.14_env/lib/python3.14/site-packages/idf_component_manager/prepare_components/__main__.py", line 4, in <module>
from .prepare import main
File "/Users/waltk/.espressif/python_env/idf6.1_py3.14_env/lib/python3.14/site-packages/idf_component_manager/prepare_components/prepare.py", line 16, in <module>
import psutil
File "/Users/waltk/.espressif/python_env/idf6.1_py3.14_env/lib/python3.14/site-packages/psutil/__init__.py", line 115, in <module>
from . import _psosx as _psplatform
File "/Users/waltk/.espressif/python_env/idf6.1_py3.14_env/lib/python3.14/site-packages/psutil/_psosx.py", line 13, in <module>
from . import _psposix
File "/Users/waltk/.espressif/python_env/idf6.1_py3.14_env/lib/python3.14/site-packages/psutil/_psposix.py", line 23, in <module>
from . import _psutil_osx

ImportError:
dlopen(/Users/waltk/.espressif/python_env/idf6.1_py3.14_env/lib/python3.14/site-packages/psutil/_psutil_osx.abi3.so,
0x0002): tried:
'/Users/waltk/.espressif/python_env/idf6.1_py3.14_env/lib/python3.14/site-packages/psutil/_psutil_osx.abi3.so'
(mach-o file, but is an incompatible architecture (have 'arm64', need
'x86_64')),

'/System/Volumes/Preboot/Cryptexes/OS/Users/waltk/.espressif/python_env/idf6.1_py3.14_env/lib/python3.14/site-packages/psutil/_psutil_osx.abi3.so'
(no such file),
'/Users/waltk/.espressif/python_env/idf6.1_py3.14_env/lib/python3.14/site-packages/psutil/_psutil_osx.abi3.so'
(mach-o file, but is an incompatible architecture (have 'arm64', need
'x86_64'))
----------------

Who is online

Users browsing this forum: Applebot, ChatGPT-User, Semrush [Bot] and 4 guests