Closed linuxguy123 closed 1 year ago
BTW, upgrading from F36 to F37 added idf5.1_py3.11_env to .espressif_env after I reran install-python-env.
I was running idf5.1_py3.10_env with F36.
Hi @linuxguy123. Could you please remove /home/me/.espressif/python_env
and rerun the install and export scripts again? Does this solve the issue?
Please use install.sh
and . export.sh
instead of using idf_tools.py
directly.
Please also share the output of the install and export scripts if the issue is not solved.
Thanks for the reply. I'll do this in a bit and get back to you.
No joy. Output as requested.
$ ./install.sh Detecting the Python interpreter Checking "python3" ... Python 3.11.0rc2 "python3" has been detected Checking Python compatibility Installing ESP-IDF tools Current system platform: linux-amd64 Selected targets are: esp32, esp32h2, esp32s2, esp32s3, esp32c2, esp32c3 Installing tools: xtensa-esp-elf-gdb, riscv32-esp-elf-gdb, xtensa-esp32-elf, xtensa-esp32s2-elf, xtensa-esp32s3-elf, riscv32-esp-elf, esp32ulp-elf, esp32s2ulp-elf, openocd-esp32 Skipping xtensa-esp-elf-gdb@11.2_20220729 (already installed) Skipping riscv32-esp-elf-gdb@11.2_20220729 (already installed) Skipping xtensa-esp32-elf@esp-2022r1-RC1-11.2.0 (already installed) Skipping xtensa-esp32s2-elf@esp-2022r1-RC1-11.2.0 (already installed) Skipping xtensa-esp32s3-elf@esp-2022r1-RC1-11.2.0 (already installed) Skipping riscv32-esp-elf@esp-2022r1-RC1-11.2.0 (already installed) Skipping esp32ulp-elf@2.28.51-esp-20191205 (already installed) Skipping esp32s2ulp-elf@2.28.51-esp-20191205 (already installed) Skipping openocd-esp32@v0.11.0-esp32-20220706 (already installed) Installing Python environment and packages Creating a new Python environment in /home/me/.espressif/python_env/idf5.1_py3.11_env Requirement already satisfied: pip in /home/me/.espressif/python_env/idf5.1_py3.11_env/lib64/python3.11/site-packages (22.2.2) Collecting pip Using cached pip-22.3-py3-none-any.whl (2.1 MB) Requirement already satisfied: setuptools in /home/me/.espressif/python_env/idf5.1_py3.11_env/lib64/python3.11/site-packages (62.6.0) Collecting setuptools Using cached setuptools-65.5.0-py3-none-any.whl (1.2 MB) Installing collected packages: setuptools, pip Attempting uninstall: setuptools Found existing installation: setuptools 62.6.0 Uninstalling setuptools-62.6.0: Successfully uninstalled setuptools-62.6.0 Attempting uninstall: pip Found existing installation: pip 22.2.2 Uninstalling pip-22.2.2: Successfully uninstalled pip-22.2.2 Successfully installed pip-22.3 setuptools-65.5.0 Downloading https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.1.txt Destination: /home/me/.espressif/espidf.constraints.v5.1.txt.tmp Done Installing Python packages Constraint file: /home/me/.espressif/espidf.constraints.v5.1.txt Requirement files:
/home/me/Development/esp/esp-idf/tools/requirements/requirements.core.txt Looking in indexes: https://pypi.org/simple, https://dl.espressif.com/pypi Ignoring windows-curses: markers 'sys_platform == "win32"' don't match your environment Requirement already satisfied: setuptools in /home/me/.espressif/python_env/idf5.1_py3.11_env/lib64/python3.11/site-packages (from -r /home/me/Development/esp/esp-idf/tools/requirements/requirements.core.txt (line 3)) (65.5.0) Collecting click Downloading https://dl.espressif.com/pypi/click/click-8.1.3-py3-none-any.whl (96 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 243.4 kB/s eta 0:00:00 Collecting pyserial Downloading https://dl.espressif.com/pypi/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.6/90.6 kB 271.3 kB/s eta 0:00:00 Collecting future Downloading https://dl.espressif.com/pypi/future/future-0.18.2-py3-none-any.whl (491 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 491.1/491.1 kB 683.8 kB/s eta 0:00:00 Collecting cryptography Downloading https://dl.espressif.com/pypi/cryptography/cryptography-38.0.2-cp36-abi3-manylinux_2_28_x86_64.whl (4.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 17.5 MB/s eta 0:00:00 Collecting pyparsing Downloading https://dl.espressif.com/pypi/pyparsing/pyparsing-3.0.9-py3-none-any.whl (98 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 kB 33.8 MB/s eta 0:00:00 Collecting pyelftools Using cached pyelftools-0.29-py2.py3-none-any.whl (174 kB) Collecting idf-component-manager Downloading https://dl.espressif.com/pypi/idf-component-manager/idf_component_manager-1.1.4-py3-none-any.whl (95 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 95.6/95.6 kB 296.4 kB/s eta 0:00:00 Collecting esp-coredump Downloading https://dl.espressif.com/pypi/esp-coredump/esp_coredump-1.4.1-py3-none-any.whl (33 kB) Collecting esptool Downloading https://dl.espressif.com/pypi/esptool/esptool-4.3-py3-none-any.whl (286 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 286.5/286.5 kB 14.0 MB/s eta 0:00:00 Collecting kconfiglib Downloading https://dl.espressif.com/pypi/kconfiglib/kconfiglib-14.1.0-py2.py3-none-any.whl (145 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 145.9/145.9 kB 15.3 MB/s eta 0:00:00 Collecting freertos_gdb Downloading https://dl.espressif.com/pypi/freertos-gdb/freertos_gdb-1.0.1-py3-none-any.whl (14 kB) Collecting cffi>=1.12 Using cached cffi-1.15.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (462 kB) Collecting requests<3 Downloading https://dl.espressif.com/pypi/requests/requests-2.28.1-py3-none-any.whl (62 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 188.0 kB/s eta 0:00:00 Collecting requests-toolbelt Downloading https://dl.espressif.com/pypi/requests-toolbelt/requests_toolbelt-0.10.0-py2.py3-none-any.whl (54 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.4/54.4 kB 157.2 kB/s eta 0:00:00 Collecting schema Downloading https://dl.espressif.com/pypi/schema/schema-0.7.5-py2.py3-none-any.whl (17 kB) Collecting six Downloading https://dl.espressif.com/pypi/six/six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting tqdm<5 Downloading https://dl.espressif.com/pypi/tqdm/tqdm-4.64.1-py2.py3-none-any.whl (78 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.5/78.5 kB 245.0 kB/s eta 0:00:00 Collecting colorama Downloading https://dl.espressif.com/pypi/colorama/colorama-0.4.5-py2.py3-none-any.whl (22 kB) Collecting pyyaml>5.2 Using cached PyYAML-6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB) Collecting contextlib2>0.6.0 Downloading https://dl.espressif.com/pypi/contextlib2/contextlib2-21.6.0-py2.py3-none-any.whl (13 kB) Collecting construct~=2.10 Downloading https://dl.espressif.com/pypi/construct/construct-2.10.68-py3-none-any.whl (59 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.2/59.2 kB 28.3 MB/s eta 0:00:00 Collecting pygdbmi>=0.9.0.2 Downloading https://dl.espressif.com/pypi/pygdbmi/pygdbmi-0.9.0.2-py3-none-any.whl (16 kB) Collecting bitstring>=3.1.6 Downloading https://dl.espressif.com/pypi/bitstring/bitstring-3.1.9-py3-none-any.whl (39 kB) Collecting ecdsa>=0.16.0 Downloading https://dl.espressif.com/pypi/ecdsa/ecdsa-0.18.0-py2.py3-none-any.whl (142 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 142.9/142.9 kB 301.0 kB/s eta 0:00:00 Collecting reedsolo<=1.5.4,>=1.5.3 Downloading https://dl.espressif.com/pypi/reedsolo/reedsolo-1.5.4-py3-none-any.whl (28 kB) Collecting pycparser Downloading https://dl.espressif.com/pypi/pycparser/pycparser-2.21-py2.py3-none-any.whl (119 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 119.7/119.7 kB 260.9 kB/s eta 0:00:00 Collecting charset-normalizer<3,>=2 Downloading https://dl.espressif.com/pypi/charset-normalizer/charset_normalizer-2.1.1-py3-none-any.whl (39 kB) Collecting idna<4,>=2.5 Downloading https://dl.espressif.com/pypi/idna/idna-3.4-py3-none-any.whl (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 178.1 kB/s eta 0:00:00 Collecting urllib3<1.27,>=1.21.1 Downloading https://dl.espressif.com/pypi/urllib3/urllib3-1.26.12-py2.py3-none-any.whl (140 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.4/140.4 kB 311.6 kB/s eta 0:00:00 Collecting certifi>=2017.4.17 Downloading https://dl.espressif.com/pypi/certifi/certifi-2022.9.24-py3-none-any.whl (161 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 161.1/161.1 kB 372.4 kB/s eta 0:00:00 Installing collected packages: reedsolo, pyserial, pygdbmi, pyelftools, bitstring, urllib3, tqdm, six, pyyaml, pyparsing, pycparser, kconfiglib, idna, future, freertos_gdb, contextlib2, construct, colorama, click, charset-normalizer, certifi, schema, requests, ecdsa, cffi, requests-toolbelt, cryptography, idf-component-manager, esptool, esp-coredump Successfully installed bitstring-3.1.9 certifi-2022.9.24 cffi-1.15.1 charset-normalizer-2.1.1 click-8.1.3 colorama-0.4.5 construct-2.10.68 contextlib2-21.6.0 cryptography-38.0.2 ecdsa-0.18.0 esp-coredump-1.4.1 esptool-4.3 freertos_gdb-1.0.1 future-0.18.2 idf-component-manager-1.1.4 idna-3.4 kconfiglib-14.1.0 pycparser-2.21 pyelftools-0.29 pygdbmi-0.9.0.2 pyparsing-3.0.9 pyserial-3.5 pyyaml-6.0 reedsolo-1.5.4 requests-2.28.1 requests-toolbelt-0.10.0 schema-0.7.5 six-1.16.0 tqdm-4.64.1 urllib3-1.26.12 All done! You can now run:
. ./export.sh
. ./export.sh Setting IDF_PATH to '/home/me/Development/esp/esp-idf' Detecting the Python interpreter Checking "python3" ... Python 3.11.0rc2 "python3" has been detected Checking Python compatibility Checking other ESP-IDF version. Adding ESP-IDF tools to PATH... Using Python interpreter in /home/me/.espressif/python_env/idf5.1_py3.11_env/bin/python Checking if Python packages are up to date... Skipping the download of /home/me/.espressif/espidf.constraints.v5.1.txt because it was downloaded recently. Constraint file: /home/me/.espressif/espidf.constraints.v5.1.txt Requirement files:
/home/me/Development/esp/esp-idf/tools/requirements/requirements.core.txt Python being checked: /home/me/.espressif/python_env/idf5.1_py3.11_env/bin/python Python requirements are satisfied. Added the following directories to PATH: /home/me/Development/esp/esp-idf/components/esptool_py/esptool /home/me/Development/esp/esp-idf/components/espcoredump /home/me/Development/esp/esp-idf/components/partition_table /home/me/Development/esp/esp-idf/components/app_update /home/me/.espressif/tools/xtensa-esp-elf-gdb/11.2_20220729/xtensa-esp-elf-gdb/bin /home/me/.espressif/tools/riscv32-esp-elf-gdb/11.2_20220729/riscv32-esp-elf-gdb/bin /home/me/.espressif/tools/xtensa-esp32-elf/esp-2022r1-RC1-11.2.0/xtensa-esp32-elf/bin /home/me/.espressif/tools/xtensa-esp32s2-elf/esp-2022r1-RC1-11.2.0/xtensa-esp32s2-elf/bin /home/me/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-RC1-11.2.0/xtensa-esp32s3-elf/bin /home/me/.espressif/tools/riscv32-esp-elf/esp-2022r1-RC1-11.2.0/riscv32-esp-elf/bin /home/me/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin /home/me/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin /home/me/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220706/openocd-esp32/bin /home/me/.espressif/python_env/idf5.1_py3.11_env/bin /home/me/Development/esp/esp-idf/tools Done! You can now compile ESP-IDF projects. Go to the project directory and run:
idf.py build
When I go to my project directory, I have to run export.sh there. This is what happens.
$ source /home/me/Development/esp/esp-idf/export.sh Setting IDF_PATH to '/home/me/Development/esp/esp-idf' Detecting the Python interpreter Checking "python3" ... Python 3.11.0rc2 "python3" has been detected Checking Python compatibility Checking other ESP-IDF version. Adding ESP-IDF tools to PATH... Using Python interpreter in /home/me/.espressif/python_env/idf5.1_py3.11_env/bin/python Checking if Python packages are up to date... Skipping the download of /home/me/.espressif/espidf.constraints.v5.1.txt because it was downloaded recently. Constraint file: /home/me/.espressif/espidf.constraints.v5.1.txt Requirement files:
/home/me/Development/esp/esp-idf/tools/requirements/requirements.core.txt Python being checked: /home/me/.espressif/python_env/idf5.1_py3.11_env/bin/python Python requirements are satisfied. Added the following directories to PATH: /home/me/Development/esp/esp-idf/components/esptool_py/esptool /home/me/Development/esp/esp-idf/components/espcoredump /home/me/Development/esp/esp-idf/components/partition_table /home/me/Development/esp/esp-idf/components/app_update /home/me/.espressif/tools/xtensa-esp-elf-gdb/11.2_20220729/xtensa-esp-elf-gdb/bin /home/me/.espressif/tools/riscv32-esp-elf-gdb/11.2_20220729/riscv32-esp-elf-gdb/bin /home/me/.espressif/tools/xtensa-esp32-elf/esp-2022r1-RC1-11.2.0/xtensa-esp32-elf/bin /home/me/.espressif/tools/xtensa-esp32s2-elf/esp-2022r1-RC1-11.2.0/xtensa-esp32s2-elf/bin /home/me/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-RC1-11.2.0/xtensa-esp32s3-elf/bin /home/me/.espressif/tools/riscv32-esp-elf/esp-2022r1-RC1-11.2.0/riscv32-esp-elf/bin /home/me/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin /home/me/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin /home/me/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220706/openocd-esp32/bin /home/me/.espressif/python_env/idf5.1_py3.11_env/bin /home/me/Development/esp/esp-idf/tools Done! You can now compile ESP-IDF projects. Go to the project directory and run:
idf.py build
$ idf.py build Executing action: all (aliases: build) Running ninja in directory /home/me/Development/MissionControl/groundStation/build Executing "ninja all"... [1/8] cd /home/me/Development/MissionControl/groundStation/build/esp-id...age-size=256 --obj-name-len=32 --meta-len=4 --use-magic --use-magic-lenFAILED: esp-idf/main/CMakeFiles/spiffs_spiffs_bin /home/me/Development/MissionControl/groundStation/build/esp-idf/main/CMakeFiles/spiffs_spiffs_bin cd /home/me/Development/MissionControl/groundStation/build/esp-idf/main && /home/me/.espressif/python_env/idf5.1_py3.10_env/bin/python /home/me/Development/esp/esp-idf/components/spiffs/spiffsgen.py 0x100000 /home/me/Development/MissionControl/groundStation/spiffs /home/me/Development/MissionControl/groundStation/build/spiffs.bin --page-size=256 --obj-name-len=32 --meta-len=4 --use-magic --use-magic-len /bin/sh: line 1: /home/me/.espressif/python_env/idf5.1_py3.10_env/bin/python: No such file or directory [2/8] Generating ld/sections.ldFAILED: esp-idf/esp_system/ld/sections.ld /home/me/Development/MissionControl/groundStation/build/esp-idf/esp_system/ld/sections.ld cd /home/me/Development/MissionControl/groundStation/build/esp-idf/esp_system && /home/me/.espressif/python_env/idf5.1_py3.10_env/bin/python /home/me/Development/esp/esp-idf/tools/ldgen/ldgen.py --config /home/me/Development/MissionControl/groundStation/sdkconfig --fragments-list "/home/me/Development/esp/esp-idf/components/xtensa/linker.lf;/home/me/Development/esp/esp-idf/components/esp_ringbuf/linker.lf;/home/me/Development/esp/esp-idf/components/driver/linker.lf;/home/me/Development/esp/esp-idf/components/esp_pm/linker.lf;/home/me/Development/esp/esp-idf/components/spi_flash/linker.lf;/home/me/Development/esp/esp-idf/components/esp_system/linker.lf;/home/me/Development/esp/esp-idf/components/esp_system/app.lf;/home/me/Development/esp/esp-idf/components/esp_rom/linker.lf;/home/me/Development/esp/esp-idf/components/hal/linker.lf;/home/me/Development/esp/esp-idf/components/log/linker.lf;/home/me/Development/esp/esp-idf/components/heap/linker.lf;/home/me/Development/esp/esp-idf/components/soc/linker.lf;/home/me/Development/esp/esp-idf/components/esp_hw_support/linker.lf;/home/me/Development/esp/esp-idf/components/freertos/linker.lf;/home/me/Development/esp/esp-idf/components/newlib/newlib.lf;/home/me/Development/esp/esp-idf/components/newlib/system_libs.lf;/home/me/Development/esp/esp-idf/components/esp_common/common.lf;/home/me/Development/esp/esp-idf/components/esp_common/soc.lf;/home/me/Development/esp/esp-idf/components/app_trace/linker.lf;/home/me/Development/esp/esp-idf/components/esp_event/linker.lf;/home/me/Development/esp/esp-idf/components/esp_phy/linker.lf;/home/me/Development/esp/esp-idf/components/lwip/linker.lf;/home/me/Development/esp/esp-idf/components/esp_netif/linker.lf;/home/me/Development/esp/esp-idf/components/esp_wifi/linker.lf;/home/me/Development/esp/esp-idf/components/bt/linker.lf;/home/me/Development/esp/esp-idf/components/esp_adc/linker.lf;/home/me/Development/esp/esp-idf/components/esp_gdbstub/linker.lf;/home/me/Development/esp/esp-idf/components/esp_lcd/linker.lf;/home/me/Development/esp/esp-idf/components/esp_psram/linker.lf;/home/me/Development/esp/esp-idf/components/espcoredump/linker.lf" --input /home/me/Development/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in --output /home/me/Development/MissionControl/groundStation/build/esp-idf/esp_system/ld/sections.ld --kconfig /home/me/Development/esp/esp-idf/Kconfig --env-file /home/me/Development/MissionControl/groundStation/build/config.env --libraries-file /home/me/Development/MissionControl/groundStation/build/ldgen_libraries --objdump /home/me/.espressif/tools/xtensa-esp32-elf/esp-2022r1-RC1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-objdump /bin/sh: line 1: /home/me/.espressif/python_env/idf5.1_py3.10_env/bin/python: No such file or directory [3/8] Performing build step for 'bootloader'FAILED: bootloader-prefix/src/bootloader-stamp/bootloader-build bootloader/bootloader.elf bootloader/bootloader.bin bootloader/bootloader.map /home/me/Development/MissionControl/groundStation/build/bootloader-prefix/src/bootloader-stamp/bootloader-build /home/me/Development/MissionControl/groundStation/build/bootloader/bootloader.elf /home/me/Development/MissionControl/groundStation/build/bootloader/bootloader.bin /home/me/Development/MissionControl/groundStation/build/bootloader/bootloader.map cd /home/me/Development/MissionControl/groundStation/build/bootloader && /usr/bin/cmake --build . [1/1] cd /home/me/Development/MissionControl/groundStation/build/bootlo...evelopment/MissionControl/groundStation/build/bootloader/bootloader.binFAILED: esp-idf/esptool_py/CMakeFiles/bootloader_check_size /home/me/Development/MissionControl/groundStation/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size cd /home/me/Development/MissionControl/groundStation/build/bootloader/esp-idf/esptool_py && /home/me/.espressif/python_env/idf5.1_py3.10_env/bin/python /home/me/Development/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /home/me/Development/MissionControl/groundStation/build/bootloader/bootloader.bin /bin/sh: line 1: /home/me/.espressif/python_env/idf5.1_py3.10_env/bin/python: No such file or directory ninja: build stopped: subcommand failed. ninja: build stopped: subcommand failed. ninja failed with exit code 1, output of the command is in the /home/me/Development/MissionControl/groundStation/build/log/idf_py_stderr_output_20925 and /home/me/Development/MissionControl/groundStation/build/log/idf_py_stdout_output_20925
What I've noticed that /home/me/.espressif/python_env/idf5.1_py3.11_env/bin/python
is set up properly (Notice 3.11 in the path). However, /home/me/.espressif/python_env/idf5.1_py3.10_env/bin/python
is used in the output of idf.py build
(notice 3.10 instead).
So I guess the upgrade of the Python system had some issue.
What is the output of which python
and which python3
? Do you have any aliases set to your previous 3.10? Have you set up an alias with update-alternatives
(probably the output of "which python" will tell)?
Please also run idf.py fullclean
before idf.py build
(just to make sure the old Python path is not used from the cache).
What I've noticed that /home/me/.espressif/python_env/idf5.1_py3.11_env/bin/python is set up properly (Notice 3.11 in the path). However, /home/me/.espressif/python_env/idf5.1_py3.10_env/bin/python is used in the output of idf.py build (notice 3.10 instead).
It did after following your instructions. If you look at my original post, was trying to use 3.11
So I guess the upgrade of the Python system had some issue.
What is the output of which python and which python3?
$ which python /home/me/.espressif/python_env/idf5.1_py3.11_env/bin/python
$ which python3 /home/me/.espressif/python_env/idf5.1_py3.11_env/bin/python3
Do you have any aliases set to your previous 3.10?
I don't believe so.
Have you set up an alias with update-alternatives (probably the output of "which python" will tell)?
Nope
Please also run
idf.py fullclean
beforeidf.py build
(just to make sure the old Python path is not used from the cache).
BINGO. This fixed it. It works now. It built successfully.
Thank you for your help.
Thanks for sharing the updates, feel free to reopen.
Answers checklist.
IDF version.
v5.1-dev
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
No response
What is the expected behavior?
I upgraded my dev machine from F36 to F37 yesterday. Today I can't build my project.
More Information.
No response