Trouble running multiple idf versions

orbitcoms
Posts: 149
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Trouble running multiple idf versions

Postby orbitcoms » 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.

ESP_radurentea
Posts: 18
Joined: Thu Mar 09, 2023 8:30 am

Re: Trouble running multiple idf versions

Postby ESP_radurentea » Thu Oct 05, 2023 11:29 am

Hi,

This has been solved in the last PR of vscode extension, however, it's not released yet.

You can install the version in which this is fixed by using this .vsix file https://nightly.link/espressif/vscode-e ... 521762.zip and following these steps:

Open Visual Studio Code.
Go to Extensions:
Use the keyboard shortcut Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (macOS).
Alternatively, you can click on the Extensions icon in the Activity Bar on the side of the window.
Install from VSIX:
In the Extensions view, click on the More button (...) in the top menu.
Select Install from VSIX... from the dropdown menu.
Navigate to the .vsix file and select it.
Click the Install button in the dialog that appears to confirm.

orbitcoms
Posts: 149
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Re: Trouble running multiple idf versions

Postby orbitcoms » Thu Oct 05, 2023 9:43 pm

I downloaded the updated installer but when attempting to install version 4.4.6 released I get error attached
Attachments
installerror.png
install error in vscode
installerror.png (62.44 KiB) Viewed 4768 times

ESP_radurentea
Posts: 18
Joined: Thu Mar 09, 2023 8:30 am

Re: Trouble running multiple idf versions

Postby ESP_radurentea » Mon Oct 09, 2023 7:06 am

Can you please run the Doctor Command from Command Palette and give me the output? I would like to take a look at the configuration. After running the command it will be copied to clipboard and you can paste it in a .txt file

Who is online

Users browsing this forum: No registered users and 24 guests