Troubles installing ESP-IDF on Visual Studio Code

Giulio Buccini
Posts: 2
Joined: Sat Nov 26, 2022 8:42 pm

Troubles installing ESP-IDF on Visual Studio Code

Postby Giulio Buccini » Sat Nov 26, 2022 10:17 pm

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?
Attachments
Selection_8083.jpg
Selection_8083.jpg (102.61 KiB) Viewed 2072 times

Giulio Buccini
Posts: 2
Joined: Sat Nov 26, 2022 8:42 pm

Re: Troubles installing ESP-IDF on Visual Studio Code

Postby Giulio Buccini » Sun Nov 27, 2022 6:52 pm

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.
Attachments
Selection_8085.jpg
Selection_8085.jpg (129.1 KiB) Viewed 2036 times

noweare
Posts: 50
Joined: Tue Jul 02, 2019 11:35 am

Re: Troubles installing ESP-IDF on Visual Studio Code

Postby noweare » Tue Nov 29, 2022 3:00 am

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.

Who is online

Users browsing this forum: Bing [Bot], HighVoltage and 125 guests