Page 1 of 1

Troubles installing ESP-IDF on Visual Studio Code

Posted: Sat Nov 26, 2022 10:17 pm
by Giulio Buccini
Hello everybody,

I'm using Linux (Ubuntu 16.04) and I cannot properly install the ESP-IDF extension on the Visual Code Editor.
I always get errors in the lower output window (see the attached screenshot):

Code: Select all

/bin/sh: 1: ninja: not found
Command failed: ninja --version
/bin/sh: 1: ninja: not found
Error checking ninja version
Error: Command failed: ninja --version
/bin/sh: 1: ninja: not found

/bin/sh: 1: openocd: not found
Command failed: openocd --version
/bin/sh: 1: openocd: not found
Error checking openocd-esp32 version
Error: Command failed: openocd --version
/bin/sh: 1: openocd: not found

/bin/sh: 1: cmake: not found
Command failed: cmake --version
....
Any idea what the problem could be?
I've spent many hours on internet trying to find an answer with no success... : ( : (

I have downloaded with success the ESP-IDF 5.0rc1, as well as all of the other libraries. The container directory "/esp" was correctly created in my home folder, with all the stuff placed inside.

Also, Python 3.6 is successfully installed on my system:

Code: Select all

giulio@ubu:/usr/bin$ python3.6 -V
Python 3.6.3
Any clue?

Re: Troubles installing ESP-IDF on Visual Studio Code

Posted: Sun Nov 27, 2022 6:52 pm
by Giulio Buccini
Problem solved on my Ubuntu 16.04.
I stubbornly tried to update python3.6 all night long, until 4:00 in the morning... :shock:
At the end I installed Python 3.8.1... it has worked! :) (See image below.)
All of the ESP-IDF extensions was installed without problems.

Just follow the steps here:

https://www.rosehosting.com/blog/how-to ... ntu-16-04/

just substitute "3.8.1" everytime you read "3.6.3" on the page. That's all.
No need to tweak any file, no need to configure SSL. Nothing.

Re: Troubles installing ESP-IDF on Visual Studio Code

Posted: Tue Nov 29, 2022 3:00 am
by noweare
esp-idf installs python under my home/user/.espressif/python_env directory
It does not use the system python. But good that you got it going.

For install in vscode I always install completely as stated in getting started in read the docs on espressif site.
After that I go into vscode and finish the installation for vscode.