Trying to get the esp-idf plugin installed in the Eclipse IDE on a MacBook Pro (10,1; early 2013) running macOS Big Sur 11.0.1. Almost got there (as opposed to completely failing with the VS Code Onboarding; see separate post on that). But during the final stage of loading a new ESP-IDF project in Eclipse, the IDE insists on using Python 2.7 instead of 3.8.5 to run the code setup template, etc., and fails with complaints about a bunch of Python tools not installed in the 2.7 environment (vs the 3.8.5 environment, where they are installed.). See the console output below for details. Note that my current command shell environment is setup so that a simple "python ...." command invokes python 3.8.5.
Here are a couple MacOS Big Sur oddities that may aggravate the problem and Eclipse issues:
- The official path to python 2.7 is /usr/bin/python. Unfortunately, this is not (easily?) changeable, because that path is in the security-protected read-only part of the system.
- My path to python 3.8.5 is /usr/local/bin/python.
- I keep going to Help | ESP-IDF Tools Manager | Install Tools and resetting the Executable Locations for git and python from /user/bin/... to /usr/local/bin/..., but it doesn't seem to do any good. If I go through the whole "Install Tools" and then come back, the paths for git and python are reset to just /usr/bin/... again.
- If I execute Help | ESP-IDF Tools Manager | List Installed Tools menu item, the "Espressif IDF Tools Console" output shows that the wrong python is being used:
Code: Select all
Executing /usr/bin/python/Users/mike/esp/esp-idf/tools/idf_tools.py list * xtensa-esp32-elf: Toolchain for Xtensa (ESP32) based on GCC - esp-2020r3-8.4.0 (recommended, installed) * xtensa-esp32s2-elf: Toolchain for Xtensa (ESP32-S2) based on GCC - esp-2020r3-8.4.0 (recommended, installed) * xtensa-esp32s3-elf: Toolchain for Xtensa (ESP32-S3) based on GCC - esp-2020r3-8.4.0 (recommended, installed) * riscv-none-embed-gcc: Toolchain for RISC-V (optional) - riscv-none-embed-gcc-8.2.0 (recommended, installed) * esp32ulp-elf: Toolchain for ESP32 ULP coprocessor - 2.28.51-esp-20191205 (recommended, installed) * esp32s2ulp-elf: Toolchain for ESP32-S2 ULP coprocessor - 2.28.51-esp-20191205 (recommended, installed) * cmake: CMake build system (optional) - 3.16.4 (recommended, installed) * openocd-esp32: OpenOCD for ESP32 - v0.10.0-esp32-20200709 (recommended, installed) * ninja: Ninja build system (optional) - 1.10.0 (recommended, installed)
- The wrong python also appears to be used when I create a New Espressif IDF Project. Here's the console output:
Code: Select all
Building in: /Users/mike/eclipse-workspace/BlinkyTest2/build cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=/Users/mike/esp/esp-idf/tools/cmake/toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DIDF_TARGET=esp32 /Users/mike/eclipse-workspace/BlinkyTest2 -- Unexpected file in components directory: /Users/mike/esp/esp-idf/components/.DS_Store -- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER. -- Building ESP-IDF components for target esp32 -- Checking Python dependencies... The following Python requirements are not satisfied: click>=7.0 pyelftools>=0.22 gdbgui==0.13.2.0 pygdbmi<=0.9.0.2 kconfiglib==13.7.1 reedsolo>=1.5.3,<=1.5.4 bitstring>=3.1.6 ecdsa>=0.16.0 Please follow the instructions found in the "Set up the tools" section of ESP-IDF Getting Started Guide Diagnostic information: IDF_PYTHON_ENV_PATH: (not set) Python interpreter used: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Warning: python interpreter not running from IDF_PYTHON_ENV_PATH PATH: /Users/mike/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin:/Users/mike/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin:/Users/mike/.espressif/tools/xtensa-esp32s3-elf/esp-2020r3-8.4.0/xtensa-esp32s3-elf/bin:/Users/mike/.espressif/tools/riscv-none-embed-gcc/riscv-none-embed-gcc-8.2.0/xPacks/riscv-none-embed-gcc/8.2.0-3.1/bin:/Users/mike/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin:/Users/mike/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin:/Users/mike/.espressif/tools/cmake/3.16.4/CMake.app/Contents/bin:/Users/mike/.espressif/tools/openocd-esp32/v0.10.0-esp32-20200709/openocd-esp32/bin:/Users/mike/.espressif/tools/ninja/1.10.0/:/Users/mike/esp/esp-idf/tools:/usr/bin:/bin:/usr/sbin:/sbin;/usr/local/bin CMake Error at /Users/mike/esp/esp-idf/tools/cmake/build.cmake:272 (message): Some Python dependencies must be installed. Check above message for details. Call Stack (most recent call first): /Users/mike/esp/esp-idf/tools/cmake/build.cmake:398 (__build_check_python) /Users/mike/esp/esp-idf/tools/cmake/project.cmake:396 (idf_build_process) CMakeLists.txt:6 (project) -- Configuring incomplete, errors occurred! See also "/Users/mike/eclipse-workspace/BlinkyTest2/build/CMakeFiles/CMakeOutput.log". cmake --build . -- -v ninja: error: loading 'build.ninja': No such file or directory Build complete (0 errors, 0 warnings): /Users/mike/eclipse-workspace/BlinkyTest2/build
TIA,
Mike
PS: Many thanks for all the effort to supply IDEs for the ESP32.