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.

Failed to install tools on Windows (VSC-757)

See original GitHub issue

I’m on Windows 11 Preview, not sure if maybe that’s the issue, but I cannot get the virtualenv created using the include idf-python version (3.8.7). I get an error stating that it’s missing a DLLs folder. Is there a way to use my systems Python version instead? I am able to create a virtualenv with it from a terminal.

Using existing Toolchain for Xtensa (ESP32-S2) based on GCC in C:\Users\User\.espressif\tools\xtensa-esp32s2-elf\esp-2021r1-8.4.0
Using existing Toolchain for Xtensa (ESP32-S3) based on GCC in C:\Users\User\.espressif\tools\xtensa-esp32s3-elf\esp-2021r1-8.4.0
Using existing Toolchain for 32-bit RISC-V based on GCC in C:\Users\User\.espressif\tools\riscv32-esp-elf\esp-2021r1-8.4.0
Using existing Toolchain for ESP32 ULP coprocessor in C:\Users\User\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205
Using existing Toolchain for ESP32-S2 and ESP32-S3 ULP coprocessors in C:\Users\User\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205
Using existing CMake build system in C:\Users\User\.espressif\tools\cmake\3.20.3
Using existing OpenOCD for ESP32 in C:\Users\User\.espressif\tools\openocd-esp32\v0.10.0-esp32-20210902
Using existing Ninja build system in C:\Users\User\.espressif\tools\ninja\1.10.2
Using existing IDF wrapper tool for Windows in C:\Users\User\.espressif\tools\idf-exe\1.0.1
Using existing Ccache (compiler cache) in C:\Users\User\.espressif\tools\ccache\4.3
Using existing dfu-util (Device Firmware Upgrade Utilities) in C:\Users\User\.espressif\tools\dfu-util\0.9

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\User\\.espressif\\tools\\idf-python\\3.8.7\\DLLs'
Creating a new Python environment in C:\Users\User\.espressif\python_env\idf4.4_py3.8_env
Traceback (most recent call last):
  File "C:\Users\User\esp-idf\tools\idf_tools.py", line 1817, in <module>
    main(sys.argv[1:])
  File "C:\Users\User\esp-idf\tools\idf_tools.py", line 1813, in main
    action_func(args)
  File "C:\Users\User\esp-idf\tools\idf_tools.py", line 1517, in action_install_python_env
    subprocess.check_call([sys.executable, '-m', 'virtualenv', idf_python_env_path],
  File "subprocess.py", line 364, in check_call
subprocess.CalledProcessError: Command '['C:\\Users\\User\\.espressif\\tools\\idf-python\\3.8.7\\python.exe', '-m', 'virtualenv', 'C:\\Users\\User\\.espressif\\python_env\\idf4.4_py3.8_env']' returned non-zero exit status 1.
Command failed: C:\Users\User\.espressif\tools\idf-python\3.8.7\python.exe C:\Users\User\esp-idf\tools\idf_tools.py install-python-env
Traceback (most recent call last):
  File "C:\Users\User\esp-idf\tools\idf_tools.py", line 1817, in <module>
    main(sys.argv[1:])
  File "C:\Users\User\esp-idf\tools\idf_tools.py", line 1813, in main
    action_func(args)
  File "C:\Users\User\esp-idf\tools\idf_tools.py", line 1517, in action_install_python_env
    subprocess.check_call([sys.executable, '-m', 'virtualenv', idf_python_env_path],
  File "subprocess.py", line 364, in check_call
subprocess.CalledProcessError: Command '['C:\\Users\\User\\.espressif\\tools\\idf-python\\3.8.7\\python.exe', '-m', 'virtualenv', 'C:\\Users\\User\\.espressif\\python_env\\idf4.4_py3.8_env']' returned non-zero exit status 1.
Command failed: C:\Users\User\.espressif\tools\idf-python\3.8.7\python.exe C:\Users\User\esp-idf\tools\idf_tools.py install-python-env
Traceback (most recent call last):
  File "C:\Users\User\esp-idf\tools\idf_tools.py", line 1817, in <module>
    main(sys.argv[1:])
  File "C:\Users\User\esp-idf\tools\idf_tools.py", line 1813, in main
    action_func(args)
  File "C:\Users\User\esp-idf\tools\idf_tools.py", line 1517, in action_install_python_env
    subprocess.check_call([sys.executable, '-m', 'virtualenv', idf_python_env_path],
  File "subprocess.py", line 364, in check_call
subprocess.CalledProcessError: Command '['C:\\Users\\User\\.espressif\\tools\\idf-python\\3.8.7\\python.exe', '-m', 'virtualenv', 'C:\\Users\\User\\.espressif\\python_env\\idf4.4_py3.8_env']' returned non-zero exit status 1.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
meltdown03commented, Sep 18, 2021

I ended up making the virtualenv manually with my systems Python. Then when the extension was trying to create it, I just hit cancel (it was confused and just sitting there spinning, lol) and it went to the completed page. It works now.

0reactions
meltdown03commented, Oct 14, 2021

Cool, thanks. I’d rather use my version

On Thu, Oct 14, 2021, 8:57 AM Juraj Michálek @.***> wrote:

The issue is already closed. Just to mention it here. The installer has support for using custom Python. You can start the installer with following option:

idf-installer…exe /USEEMBEDDEDPYTHON=no

This will enable check of available Python’s. There’s also check for problem with subprocess.py which might be some remain of previous Python installation.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/espressif/vscode-esp-idf-extension/issues/530#issuecomment-943383363, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPBQCBSP4XGJNJS7HPZO6DUG3OTDANCNFSM5EIWZGLA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems that block programs from being installed or ...
The Program Install and Uninstall troubleshooter helps you automatically repair issues when you're blocked from installing or removing programs.
Read more >
How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
Get help with Windows upgrade and installation errors
See some of the most common upgrade and installation errors for Windows 10 and Windows 11, and what you can do to try...
Read more >
Power Automate Desktop installation troubleshooting
The install fails because the Power Automate Windows service failed to start, and the event viewer logs show that the reason it could...
Read more >
Trouble installing the plug-in? - Microsoft Support
Plug-in download fails · Click Tools > Internet Options. · Click the Security tab > Custom Level. · Scroll down to Downloads and...
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