Python error while installing ESP-IDF on eclipse
Posted: Wed Apr 01, 2020 8:10 am
I was trying to install ESP-IDF on eclipse 2019 version on windows 8.1 . First it gave me an error about the CMake version that it is a bit old or something, However, I searched deeply on the internet and found that ESP-IDF requires at least 3.5.0 of CMake version. So, I installed the exact version which is 3.5.0 of CMake. After that, I had another error which is not obvious, saying that a file is missing and nothing is described about that file:
And then, after some work, I reopened eclipse to try again and install the esp-idl tools again from the help menu. I got this error about CMake version, since I have a supported version, I don't know what is going on. This is the result:
Code: Select all
Executing C:\Users\Hassan\AppData\Local\Programs\Python\Python37\python.exe C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py export --format=key-value
Traceback (most recent call last):
File "C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py", line 1387, in <module>
main(sys.argv[1:])
File "C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py", line 1383, in main
action_func(args)
File "C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py", line 1008, in action_export
idf_python_env_path, idf_python_export_path, virtualenv_python = get_python_env_path()
File "C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py", line 847, in get_python_env_path
cwd=global_idf_path, env=os.environ).decode()
File "C:\Users\Hassan\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\Hassan\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\Hassan\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\Users\Hassan\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Code: Select all
Installing tools...
This can take a while. Please be patient.
Executing C:\Users\Hassan\AppData\Local\Programs\Python\Python37\python.exe C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py install all
Installing tools: xtensa-esp32-elf, esp32ulp-elf, cmake, openocd-esp32, mconf, ninja, idf-exe, ccache
Skipping xtensa-esp32-elf@esp-2019r2-8.2.0 (already installed)
Skipping esp32ulp-elf@2.28.51.20170517 (already installed)
Skipping cmake@3.13.4 (already installed)
Skipping openocd-esp32@v0.10.0-esp32-20190313 (already installed)
Skipping mconf@v4.6.0.0-idf-20190628 (already installed)
Skipping ninja@1.9.0 (already installed)
Skipping idf-exe@1.0.1 (already installed)
Skipping ccache@3.7 (already installed)
Executing C:\Users\Hassan\AppData\Local\Programs\Python\Python37\python.exe C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py install-python-env
Requirement already satisfied: setuptools in c:\users\hassan\.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\requirements.txt (line 4)) (46.1.3)
Requirement already satisfied: click>=5.0 in c:\users\hassan\.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\requirements.txt (line 8)) (7.1.1)
Requirement already satisfied: pyserial>=3.0 in c:\users\hassan\.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\requirements.txt (line 9)) (3.4)
Requirement already satisfied: future>=0.15.2 in c:\users\hassan\.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\requirements.txt (line 10)) (0.18.2)
Requirement already satisfied: cryptography>=2.1.4 in c:\users\hassan\.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\requirements.txt (line 11)) (2.8)
Requirement already satisfied: pyparsing<2.4.0,>=2.0.3 in c:\users\hassan\.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\requirements.txt (line 12)) (2.3.1)
Requirement already satisfied: pyelftools>=0.22 in c:\users\hassan\.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\requirements.txt (line 13)) (0.26)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in c:\users\hassan\.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from cryptography>=2.1.4->-r C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\requirements.txt (line 11)) (1.14.0)
Requirement already satisfied: six>=1.4.1 in c:\users\hassan\.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from cryptography>=2.1.4->-r C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\requirements.txt (line 11)) (1.14.0)
Requirement already satisfied: pycparser in c:\users\hassan\.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.1.4->-r C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\requirements.txt (line 11)) (2.20)
Installing Python packages from C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\requirements.txt
Executing C:\Users\Hassan\AppData\Local\Programs\Python\Python37\python.exe C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py export --format=key-value
Not using an unsupported version of tool cmake found in PATH: 3.5.0. To use it, run 'C:\Users\Hassan\AppData\Local\Programs\Python\Python37\python.exe C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py export --prefer-system'
Traceback (most recent call last):
File "C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py", line 1387, in <module>
main(sys.argv[1:])
File "C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py", line 1383, in main
action_func(args)
File "C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py", line 1008, in action_export
idf_python_env_path, idf_python_export_path, virtualenv_python = get_python_env_path()
File "C:\Users\Hassan\Documents\Arduino\ESP\esp-idf\tools\idf_tools.py", line 847, in get_python_env_path
cwd=global_idf_path, env=os.environ).decode()
File "C:\Users\Hassan\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\Hassan\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\Hassan\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\Users\Hassan\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified