Page 1 of 1

idf.py is missing

Posted: Sun Aug 12, 2018 10:32 pm
by attonasi
I used the ESP32 for a project through the arduino IDE and I want to get out of that so I have been going through the getting started docs here https://docs.espressif.com/projects/esp ... index.html.

When I got to the hello world section I found that idf.py is not in tools. I have idf_size.py and idf_monitor.py but no idf.py. I couldn't find it in the repository either.

Is this something I am supposed to build in a different step? Not sure what I am missing.

Re: idf.py is missing

Posted: Sun Aug 12, 2018 11:46 pm
by ESP_Angus
Hi attonasi,

The docs at this link are for the cmake preview branch, so you have to have this branch checked out in order to use idf.py (which is a new tool, part of the cmake-based build system).

You can change into an IDF directory and run "git checkout feature/cmake" to get this branch.

Alternatively, documentation for master branch can be found here: https://docs.espressif.com/projects/esp-idf/en/latest/

(Or you can click the little versions pop-up in the bottom left corner of any documentation page, to switch versions.)

Re: idf.py is missing

Posted: Tue Jun 22, 2021 10:46 pm
by merenel
Hello,

I was working on Raspberry Pi 4 and had the same problem. Read below to sort this out.

Make sure you install cmake
https://snapcraft.io/install/cmake/raspbian

Make sure you are in the principal folder (the one in which you are when you open the terminal)
and insert in the terminal:
. $HOME/esp/esp-idf/export.sh

you are basically pointing to export.sh file and if you do both these things
idf.py commands will work from now on

hope it helps.

If you close the terminal you have to rerun . $HOME/esp/esp-idf/export.sh every time

Hope this helps

Pietro