question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IDF Installer fails with build tools requirements - IDF 5.0 release branch (VSC-1003)

See original GitHub issue

OS

Windows

Operating System version

11

Visual Studio Code version

1.73

ESP-IDF version

5.0

Python version

3.8

Doctor command output

Board is not relevant since its an installation issue.

Extension

Failed to build psutil error: subprocess-exited-with-error

Building wheel for psutil (pyproject.toml) did not run successfully. exit code: 1

[38 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-38 creating build\lib.win-amd64-cpython-38\psutil copying psutil_common.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_compat.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psaix.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psbsd.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pslinux.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psosx.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psposix.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pssunos.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pswindows.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_init_.py -> build\lib.win-amd64-cpython-38\psutil creating build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\runner.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_aix.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_bsd.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_connections.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_contracts.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_linux.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_memleaks.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_misc.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_osx.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_posix.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_process.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_sunos.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_system.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_testutils.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_unicode.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_windows.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests_init_.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests_main_.py -> build\lib.win-amd64-cpython-38\psutil\tests running build_ext building ‘psutil._psutil_windows’ extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for psutil ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects Command failed: “C:\Users\WDAGUtilityAccount.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe” -m pip install --upgrade --constraint “C:\Users\WDAGUtilityAccount.espressif\espidf.constraints.v5.0.txt” --no-warn-script-location -r “c:\Users\WDAGUtilityAccount.vscode\extensions\espressif.esp-idf-extension-1.5.1\esp_debug_adapter\requirements.txt” error: subprocess-exited-with-error

Building wheel for psutil (pyproject.toml) did not run successfully. exit code: 1

[38 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-38 creating build\lib.win-amd64-cpython-38\psutil copying psutil_common.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_compat.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psaix.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psbsd.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pslinux.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psosx.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psposix.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pssunos.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pswindows.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_init_.py -> build\lib.win-amd64-cpython-38\psutil creating build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\runner.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_aix.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_bsd.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_connections.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_contracts.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_linux.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_memleaks.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_misc.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_osx.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_posix.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_process.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_sunos.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_system.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_testutils.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_unicode.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_windows.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests_init_.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests_main_.py -> build\lib.win-amd64-cpython-38\psutil\tests running build_ext building ‘psutil._psutil_windows’ extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for psutil ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects Command failed: “C:\Users\WDAGUtilityAccount.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe” -m pip install --upgrade --constraint “C:\Users\WDAGUtilityAccount.espressif\espidf.constraints.v5.0.txt” --no-warn-script-location -r “c:\Users\WDAGUtilityAccount.vscode\extensions\espressif.esp-idf-extension-1.5.1\esp_debug_adapter\requirements.txt” error: subprocess-exited-with-error

Building wheel for psutil (pyproject.toml) did not run successfully. exit code: 1

[38 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-38 creating build\lib.win-amd64-cpython-38\psutil copying psutil_common.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_compat.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psaix.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psbsd.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pslinux.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psosx.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psposix.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pssunos.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pswindows.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_init_.py -> build\lib.win-amd64-cpython-38\psutil creating build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\runner.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_aix.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_bsd.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_connections.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_contracts.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_linux.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_memleaks.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_misc.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_osx.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_posix.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_process.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_sunos.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_system.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_testutils.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_unicode.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_windows.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests_init_.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests_main_.py -> build\lib.win-amd64-cpython-38\psutil\tests running build_ext building ‘psutil._psutil_windows’ extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for psutil ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects

Description

I am trying to install VSCODE + ESP-IDF on fresh machine (Windows Sandbox).

Installation stops at the end with the following error message about Microsoft C++ Build Tools.
Keep in mind this pre-requisite is not mentioned anywhere for the installation.

If you open Built Tools installer there is a whole lot of things selected with some GB+ content. But for my test requirements I need only the bare minimum to run VSCODE+IDF+IDF Extension.

building 'psutil._psutil_windows' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

Debug Message

building 'psutil._psutil_windows' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/


### Other Steps to Reproduce

Windows 11 + Latest VS Code
I am using Windows Sandbox for installer testing right now. So the machine instance is clean without any other software.

### I have checked existing issues, online documentation and the Troubleshooting Guide

- [X] I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
sukesh-akcommented, Nov 8, 2022

I was able to install. Probably that fix worked.

1reaction
noelcuncommented, Nov 8, 2022

I experienced this issue today on a fresh machine, even previous esp-idf versions such as 4.X are failing setup due to psutil python package failure exiting the installation

Read more comments on GitHub >

github_iconTop Results From Across the Web

Standard Setup of Toolchain for Windows - ESP32
Limitations: - The installation path of ESP-IDF and ESP-IDF Tools must not be longer than 90 characters. Too long installation paths might result...
Read more >
windows 10 - python 3.11.0 - error installing psutil · Issue #2165
IDF Installer fails with build tools requirements - IDF 5.0 release branch (VSC-1003) espressif/vscode-esp-idf-extension#836.
Read more >
Environment setup — ESP-FAQ documentation
When installing ESP-IDF version master using ESP-IDF Tools 2.3 in Windows system, an error occurred as: Installation has failed with exit code 2....
Read more >
could not build wheels for psutil, which is required to install ...
Installing ESP-IDF by Visual Sutdio in Win10 meets some problems ... Installer fails with build tools requirements - IDF 5.0 release branch (VSC-1003)#836....
Read more >
Is there an idf-eclipse-plugin branch that supports esp-idf 5.0 ...
When building from eclipse just after running an idf.py menuconfig, I get... Code: Select all CMake Error at /usr/src/mcu/esp32/esp-idf/tools/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found