Hello guys,
I'm using the extension for vsCode, but apparently, I get an error that I can't solve.
OS: Windows 10
Python: v3.7.3
IDF: v4.2
espressif.esp-idf-extension: v0.6.1
vsCode: v1.52.1
When I press the compile button I get the following error:
======================================= ERROR ==============================================
ESP-IDF Custom Terminal
$ cmake
-- ccache will be used for faster recompilation
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
Traceback (most recent call last):
File "C:/esp/esp-idf/tools/kconfig_new/confgen.py", line 31, in <module>
from future.utils import iteritems
ModuleNotFoundError: No module named 'future'
CMake Error at C:/esp/esp-idf/tools/cmake/kconfig.cmake:225 (message):
Failed to run confgen.py
(C:\esp\tools\.espressifvs\python_env\idf4.2_py3.7_env\Scripts\python.exe;C:/esp/esp-idf/tools/kconfig_new/confgen.py;--kconfig;C:/esp/esp-idf/Kconfig;--sdkconfig-rename;C:/esp/esp-idf/sdkconfig.rename;--config;C:/Users/aquil/Desktop/ESP32/Ejercicios/01_FirstLook/sdkconfig;--env-file;C:/Users/aquil/Desktop/ESP32/Ejercicios/01_FirstLook/build/config.env).
Error 1
Call Stack (most recent call first):
C:/esp/esp-idf/tools/cmake/build.cmake:442 (__kconfig_generate_config)
C:/esp/esp-idf/tools/cmake/project.cmake:395 (idf_build_process)
CMakeLists.txt:8 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/aquil/Desktop/ESP32/Ejercicios/01_FirstLook/build/CMakeFiles/CMakeOutput.log".
The terminal process terminated with exit code: 1.
===============================================================================================
For the installation, I used the "advanced" method since I already had esp-idf and tools installed using "esp-idf-tools-setup-2.3.exe"
Could you help me please?
VS Code Extension. ModuleNotFoundError: No module named 'future'
-
- Posts: 8
- Joined: Fri Oct 30, 2020 6:46 pm
-
- Posts: 229
- Joined: Wed May 02, 2018 12:12 pm
Re: VS Code Extension. ModuleNotFoundError: No module named 'future'
Open Command Palette (F1) and type `Preferences: Open Settings (JSON)` or use `{CURRENT_PROJECT}/.vscode/settings.json` to get the following extension configuration settings value:
- `idf.pythonBinPath` (MacOS or Linux) or `idf.pythonBinPathWin` (Windows) also called `Python absolute binary path used to execute ESP-IDF Python Scripts` in `Preferences: Open Settings (UI)`.
The use this value to check its python packages .
For example, if idf.pythonBinPath is C:\esp\tools\.espressifvs\python_env\idf4.2_py3.7_env\Scripts\python.exe then run. If packages are missing try:
- `idf.pythonBinPath` (MacOS or Linux) or `idf.pythonBinPathWin` (Windows) also called `Python absolute binary path used to execute ESP-IDF Python Scripts` in `Preferences: Open Settings (UI)`.
The use this value to check its python packages .
For example, if idf.pythonBinPath is C:\esp\tools\.espressifvs\python_env\idf4.2_py3.7_env\Scripts\python.exe then run
Code: Select all
C:\esp\tools\.espressifvs\python_env\idf4.2_py3.7_env\Scripts\python.exe -m pip list
Code: Select all
C:\esp\tools\.espressifvs\python_env\idf4.2_py3.7_env\Scripts\python.exe -m pip install pkg-name
-
- Posts: 8
- Joined: Fri Oct 30, 2020 6:46 pm
Re: VS Code Extension. ModuleNotFoundError: No module named 'future'
Hi @ESP_bignacio,ESP_bignacio wrote: ↑Thu Jan 28, 2021 7:27 amOpen Command Palette (F1) and type `Preferences: Open Settings (JSON)` or use `{CURRENT_PROJECT}/.vscode/settings.json` to get the following extension configuration settings value:
- `idf.pythonBinPath` (MacOS or Linux) or `idf.pythonBinPathWin` (Windows) also called `Python absolute binary path used to execute ESP-IDF Python Scripts` in `Preferences: Open Settings (UI)`.
The use this value to check its python packages .
For example, if idf.pythonBinPath is C:\esp\tools\.espressifvs\python_env\idf4.2_py3.7_env\Scripts\python.exe then run. If packages are missing try:Code: Select all
C:\esp\tools\.espressifvs\python_env\idf4.2_py3.7_env\Scripts\python.exe -m pip list
Code: Select all
C:\esp\tools\.espressifvs\python_env\idf4.2_py3.7_env\Scripts\python.exe -m pip install pkg-name
I tried to follow the steps you mentioned ... I uninstalled the VSCode extension and when I installed it again a new option "USE EXISTING SETUP" appeared ... I clicked on that option and the previous problem was fixed without following what you mentioned.
Thank you very much for the reply.
Who is online
Users browsing this forum: No registered users and 16 guests