espressif / idf-installer

ESP IDF Windows Installer
https://dl.espressif.com/dl/esp-idf/
102 stars 21 forks source link

Prepare Offline deployment of v5.0 #149

Closed georgik closed 1 year ago

georgik commented 1 year ago

Offline installer with 5.0 now fails with:

Running command: C:\Espressif\tools\idf-python\3.8.7\python.exe "C:\Espressif\frameworks\esp-idf-v5.0-beta1\tools\idf_tools.py" --idf-path "C:/Espressif/frameworks/esp-idf-v5.0-beta1/"   install-python-env
                          Creating a new Python environment in C:\Espressif\python_env\idf5.0_py3.8_env
                          C:\Espressif\tools\idf-python\3.8.7\python.exe: No module named venv.__main__; 'venv' is a package and cannot be directly executed
                          Traceback (most recent call last):
                            File "C:\Espressif\frameworks\esp-idf-v5.0-beta1\tools\idf_tools.py", line 2517, in <module>
                              main(sys.argv[1:])
                            File "C:\Espressif\frameworks\esp-idf-v5.0-beta1\tools\idf_tools.py", line 2509, in main
                              action_func(args)
                            File "C:\Espressif\frameworks\esp-idf-v5.0-beta1\tools\idf_tools.py", line 1991, in action_install_python_env
                              subprocess.check_call([sys.executable, '-m', 'venv',
                            File "subprocess.py", line 364, in check_call
                          subprocess.CalledProcessError: Command '['C:\\Espressif\\tools\\idf-python\\3.8.7\\python.exe', '-m', 'venv', '--clear', 'C:\\Espressif\\python_env\\idf5.0_py3.8_env']' returned non-zero exit status 1.

2022-10-07 16:43:14.161   --------

v5.0 is using venv which is not part of custom Python bundle package. It was changed from virtualenv