Python issues when setting up VS Code
Posted: Mon Dec 28, 2020 1:38 pm
With a working ESP-IDF setup I started to setup VS Code. I run VS Code from ESP-IDF command prompt, which means the environment should be ok.
Plugin configuration failed on Python dependencies, I ran install.bat, it didn't help. I copied the command and ran it from IDF command shell to see what was happening. It reports 'pyparsing' version too low, but when calling pip info it shows a different version, so somehow it mixes with another environment.
I do not have much Python experience, what might be wrong here ?
IDF_PYTHON_DIR=C:\Python36\
IDF_PYTHON_ENV_PATH=H:\.espressif\python_env\idf4.1_py3.6_env
IDF_TOOLS_PATH=H:\.espressif
Plugin configuration failed on Python dependencies, I ran install.bat, it didn't help. I copied the command and ran it from IDF command shell to see what was happening. It reports 'pyparsing' version too low, but when calling pip info it shows a different version, so somehow it mixes with another environment.
I do not have much Python experience, what might be wrong here ?
The relevant environments vars are as follows:H:\.espressif\python_env\Scripts>python.exe "h:\projects\esp\esp-idf\esp-idf\tools\check_python_dependencies.py" -r "h:\projects\esp\esp-idf\esp-idf\requirements.txt"
The following Python requirements are not satisfied:
pyparsing>=2.0.3,<2.4.0
esp-windows-curses; sys_platform == 'win32'
To install the missing packages, please run "H:\projects\esp\esp-idf\install.bat"
H:\.espressif\python_env\Scripts>pip show pyparsing
Name: pyparsing
Version: 2.4.7
Summary: Python parsing module
.....
Location: h:\.espressif\python_env\lib\site-packages
.....
IDF_PYTHON_DIR=C:\Python36\
IDF_PYTHON_ENV_PATH=H:\.espressif\python_env\idf4.1_py3.6_env
IDF_TOOLS_PATH=H:\.espressif