Trouble running multiple idf versions
Posted: Fri Sep 29, 2023 10:36 am
Hi,
I have been struggling most of the day trying to solve this. Hopefully someone can help here.
My machine is running lastest verison of Windows 11 and vscode.
I managed to install version 5.1.1 ok. for my new ESP32 S3 projects.
Having some trouble with us delay in the version 5 ets_sys module and also the rmt syntax so I need to revert to version 4.x idf.
I opened the "Configure ESP-IDF Extension"
Then selected "Express" (I also tried advanced and use existing setup) and I tried saving to Global and also Workspace folder.
In each case I selected the version 4.4.6 and selected a new folder for esp-idf and tool.
Clicked install and all the files downloaded and appeared to install ok.
All the pre-requisites look fine and ticked. idf-Python is version 3.11.2
But, at the very end instread of getting indication of successful configuration, It just shows the config page with button to "Install" again.
This is what I get at end of config: I ran the pip install as suggested but did not fix the issue.
[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: c:\esp\tools\idf-python\3.11.2\python.exe -m pip install --upgrade pip
c:\esp\tools\idf-python\3.11.2\python.exe: No module named virtualenv
Traceback (most recent call last):
File "c:\esp\esp-idf\tools\idf_tools.py", line 2003, in <module>
main(sys.argv[1:])
File "c:\esp\esp-idf\tools\idf_tools.py", line 1999, in main
action_func(args)
File "c:\esp\esp-idf\tools\idf_tools.py", line 1625, in action_install_python_env
subprocess.check_call([sys.executable, '-m', 'virtualenv',
File "subprocess.py", line 413, in check_call
subprocess.CalledProcessError: Command '['c:\\esp\\tools\\idf-python\\3.11.2\\python.exe', '-m', 'virtualenv', '--python', 'c:\\esp\\tools\\idf-python\\3.11.2\\python.exe', '--seeder', 'pip', 'c:\\esp\\python_env\\idf4.4_py3.11_env']' returned non-zero exit status 1.
I have been struggling most of the day trying to solve this. Hopefully someone can help here.
My machine is running lastest verison of Windows 11 and vscode.
I managed to install version 5.1.1 ok. for my new ESP32 S3 projects.
Having some trouble with us delay in the version 5 ets_sys module and also the rmt syntax so I need to revert to version 4.x idf.
I opened the "Configure ESP-IDF Extension"
Then selected "Express" (I also tried advanced and use existing setup) and I tried saving to Global and also Workspace folder.
In each case I selected the version 4.4.6 and selected a new folder for esp-idf and tool.
Clicked install and all the files downloaded and appeared to install ok.
All the pre-requisites look fine and ticked. idf-Python is version 3.11.2
But, at the very end instread of getting indication of successful configuration, It just shows the config page with button to "Install" again.
This is what I get at end of config: I ran the pip install as suggested but did not fix the issue.
[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: c:\esp\tools\idf-python\3.11.2\python.exe -m pip install --upgrade pip
c:\esp\tools\idf-python\3.11.2\python.exe: No module named virtualenv
Traceback (most recent call last):
File "c:\esp\esp-idf\tools\idf_tools.py", line 2003, in <module>
main(sys.argv[1:])
File "c:\esp\esp-idf\tools\idf_tools.py", line 1999, in main
action_func(args)
File "c:\esp\esp-idf\tools\idf_tools.py", line 1625, in action_install_python_env
subprocess.check_call([sys.executable, '-m', 'virtualenv',
File "subprocess.py", line 413, in check_call
subprocess.CalledProcessError: Command '['c:\\esp\\tools\\idf-python\\3.11.2\\python.exe', '-m', 'virtualenv', '--python', 'c:\\esp\\tools\\idf-python\\3.11.2\\python.exe', '--seeder', 'pip', 'c:\\esp\\python_env\\idf4.4_py3.11_env']' returned non-zero exit status 1.