Page 1 of 1

Error updating ESP-IDF extension (from VSCode)

Posted: Tue Oct 18, 2022 6:19 pm
by sergiomarina
from VSCode
View->Palette->ESP-IDF: Configure ESP-IDF extension
In my context is not identical, but this is the idea:
https://github.com/espressif/vscode-esp ... install.md

In the VSCode output tab I got le following errors:
"
WARNING: You are using pip version 21.3.1; however, version 22.3 is available.
You should consider upgrading via the 'C:\esp\tools-44\.espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe -m pip install --upgrade pip' command.
Command failed: "C:\esp\tools-44\.espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe" -m pip install --upgrade --constraint c:\Users\sergi\.vscode\extensions\espressif.esp-idf-extension-1.5.0\espidf.constraints.txt --no-warn-script-location -r "c:\Users\sergi\.vscode\extensions\espressif.esp-idf-extension-1.5.0\esp_debug_adapter\requirements.txt"
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\esp\\tools-44\\.espressif\\python_env\\idf4.4_py3.8_env\\Lib\\site-packages\\~ywin32_system32\\pythoncom38.dll'
Check the permissions.
"
from PowerShell
C:\esp\tools-44\.espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe -m pip install --upgrade pip
I got
Successfully installed pip-22.3

But the I checked pythoncom38.dll "Properties->Security" and every user could read&execute

Should this ERROR be solved?
In that case, how-to?
Thank you.

Re: Error updating ESP-IDF extension (from VSCode)

Posted: Tue Oct 18, 2022 9:36 pm
by nwolcott
If you are trying to update, I assume the script also needs write and modify permissions on some files.
Have you tried just running the update command from an admin command prompt window?

Re: Error updating ESP-IDF extension (from VSCode)

Posted: Wed Oct 19, 2022 9:06 pm
by sergiomarina
@ nwolcott
this is the tutorial that I'm following:
https://github.com/espressif/vscode-esp ... install.md

There is another page in the IDF documentation that refers to IDF update, but does not seem to be coherent and I'm concerned to mess things up.
This is the page:
https://docs.espressif.com/projects/esp ... l#updating
Is your hint referred to this procedure?
if not then please, provide me a link to a manual so I can proceed in a safe manner.
Thank you.