Trying to install ESP-IDF VS extension failed

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Trying to install ESP-IDF VS extension failed

Postby zliudr » Mon Feb 08, 2021 9:30 pm

Trying to install esp-idf V4.2.
Not sure what that means. My python pip is up to date. Is it running some python embedded in esp-idf?
error: Can not find Rust compiler
----------------------------------------
ERROR: Failed building wheel for cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 19.2.3, however version 21.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Re: Trying to install ESP-IDF VS extension failed

Postby zliudr » Mon Feb 08, 2021 11:16 pm

I tried on a spare computer with python 3.7.3 installed, after reading about possible issue with 3.8.x. I updated pip and installed cryptography but got the same errors multiple times. I think there is an embedded python version, maybe it copied from my python install. It has python.exe that is 3.7.3 and pip.exe that is referring to my installed pip of version 21 and pip.exe list shows cryptography module. This was an attempt to install ESP-IDF V4.2. I wonder if the version is even supported by VS ESP-IDF extension or not.

OllieK
Posts: 58
Joined: Mon Jan 18, 2016 8:08 am
Location: USA, PA
Contact:

Re: Trying to install ESP-IDF VS extension failed

Postby OllieK » Tue Feb 09, 2021 2:23 am

I was failing to upgrade from v4.1 to v4.2 for two weeks. After paying attention to the error message details, I observed that C++14 or newer was required for v4.2. After installing C++19, all problems disappeared. Now I have been able to build, flash, monitor, and debug ESP32 and ESP32-S2 processors on v4.2.

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: Trying to install ESP-IDF VS extension failed

Postby ESP_bignacio » Tue Feb 09, 2021 2:55 am

Yes, the thing is that Cryptography build wheels on pip install.

Make sure that you have:

[*] VC Build Tools
[*] Latest pip version
[*] OpenSSL installed and configured for pip

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Re: Trying to install ESP-IDF VS extension failed

Postby zliudr » Tue Feb 09, 2021 3:16 am

ESP_bignacio,

Thanks. I'll look into those. BUT, big but, my pip WAS version 21 and the error message still complains about version number. I only has that one python version 3.7.3 installed, no other python versions. I need some help how to install OpenSSL and configure for pip. I read OpenSSL and only found source code and am expected to build it, what to do if I am not on linux and don't have a build system for it?

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Re: Trying to install ESP-IDF VS extension failed

Postby zliudr » Wed Feb 10, 2021 5:52 pm

Steep learning curve ahead.

What's choco? Do I have to install that to get VC build tools? That link isn't clear at all.
OpenSSL installed and configured for pip: how?

OllieK
Posts: 58
Joined: Mon Jan 18, 2016 8:08 am
Location: USA, PA
Contact:

Re: Trying to install ESP-IDF VS extension failed

Postby OllieK » Thu Feb 11, 2021 1:27 am

@zliudur,

I do completely share your frustration. There are several things that Espressif developers are overlooking and falsely assuming that users just know things. Microsoft is not much better in this. It would be difficult to find the right download page for the missing VSC tools. In practice, only the C++19 is missing.

You can find it on page

https://visualstudio.microsoft.com/down ... tudio-2019

Near bottom, there is a button Build Tools for Visual Studio 2019. Click it to start the download of vs_BuildTools.exe. It should start automatically. Start this tool to install the missing components. Once the bits are downloaded and installed, the actual tool starts. Click Modify and select C++ build tools. There put check mark for MSVC v142 for C++19 and then you can continue with ESP-IDF.

Who is online

Users browsing this forum: No registered users and 24 guests