idf.py not found
Posted: Mon May 27, 2024 11:46 am
I'm using ESP-IDF in VSCode. I'm unable to run idf.py. Looking online, people advise against manually adding anything to the path variables but nothing else seems to work. The following is done within a VSCode terminal (i.e. within the IDE):
Code: Select all
All done! You can now run:
export.bat
PS C:\Users\robert\Documents\VSCode\ESP32-test-1> C:\users\robert\esp\v5.2.1\esp-idf\export.bat
Checking Python compatibility
Setting IDF_PATH: C:\Users\robert\esp\v5.2.1\esp-idf
Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.12.1.
C:\Users\robert\.espressif\tools\xtensa-esp-elf-gdb\12.1_20231023\xtensa-esp-elf-gdb\bin
C:\Users\robert\.espressif\tools\riscv32-esp-elf-gdb\12.1_20231023\riscv32-esp-elf-gdb\bin
C:\Users\robert\.espressif\tools\xtensa-esp-elf\esp-13.2.0_20230928\xtensa-esp-elf\bin
C:\Users\robert\.espressif\tools\riscv32-esp-elf\esp-13.2.0_20230928\riscv32-esp-elf\bin
C:\Users\robert\.espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin
C:\Users\robert\.espressif\tools\cmake\3.24.0\bin
C:\Users\robert\.espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin
C:\Users\robert\.espressif\tools\ninja\1.11.1\
C:\Users\robert\.espressif\tools\idf-exe\1.0.3\
C:\Users\robert\.espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64
C:\Users\robert\.espressif\tools\dfu-util\0.11\dfu-util-0.11-win64
C:\Users\robert\.espressif\python_env\idf5.2_py3.11_env\Scripts
C:\Users\robert\esp\v5.2.1\esp-idf\tools
Checking if Python packages are up to date...
Constraint file: C:\Users\robert\.espressif\espidf.constraints.v5.2.txt
- C:\Users\robert\esp\v5.2.1\esp-idf\tools\requirements\requirements.core.txt
Python being checked: C:\Users\robert\.espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe
Python requirements are satisfied.
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:
idf.py build
PS C:\Users\robert\Documents\VSCode\ESP32-test-1> idf.py build
idf.py : The term 'idf.py' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ idf.py build
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (idf.py:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException