Error during VS Code Wizard: legacy-install-failure (M1 Mac)

numlock
Posts: 1
Joined: Wed Dec 21, 2022 12:55 am

Error during VS Code Wizard: legacy-install-failure (M1 Mac)

Postby numlock » Wed Dec 21, 2022 1:14 am

Can anyone help me get past this?
I'm trying to configure the ESP-IDF Extension for Visual Studio Code. All the prerequisites installed fine, the first part of the wizard installed fine, but during the last step (Python virtual env) it fails:

Code: Select all

Building wheel for lxml (setup.py): finished with status 'error'
then further down

Code: Select all

src/lxml/etree.c:96:10: fatal error: 'Python.h' file not found
      #include "Python.h"
               ^~~~~~~~~~
      1 error generated.
      Compile failed: command '/usr/bin/clang' failed with exit code 1
in the end it says

Code: Select all

error: legacy-install-failure

× Encountered error while trying to install package.
╰─> lxml
Here is the full output: https://pastebin.com/xxqKwcDB

Any help would be much appreciated!

kamiloade
Posts: 2
Joined: Thu Jan 05, 2023 2:50 pm

Re: Error during VS Code Wizard: legacy-install-failure (M1 Mac)

Postby kamiloade » Thu Jan 05, 2023 2:59 pm

I got the same error, apparently the problem is the version of python that is installed on the MAC.
What worked for me was to reinstall python3 using Homebrew and I installed the IDF from the VSCode plugin, I used the IDF version 4.3.4.

kamiloade
Posts: 2
Joined: Thu Jan 05, 2023 2:50 pm

Re: Error during VS Code Wizard: legacy-install-failure (M1 Mac)

Postby kamiloade » Thu Jan 05, 2023 3:06 pm

numlock wrote:
Wed Dec 21, 2022 1:14 am
I got the same error, apparently the problem is the version of python that is installed on the MAC.
What worked for me was to reinstall python3 using Homebrew and I installed the IDF from the VSCode plugin, I used the IDF version 4.3.4.

Who is online

Users browsing this forum: No registered users and 29 guests