Closed derrick-senva closed 1 year ago
Do you have set IDF_PYTHON_ENV_PATH
environment variable? Because the following doesn't seem right.
Creating a new Python environment in C:\Users\myuser\AppData\Local\Programs\Python\Python310\
BTW, the recommended way is to use the Windows Tool Installer from https://dl.espressif.com/dl/esp-idf/ which would install a Python environment locally for ESP-IDF (not even the current Windows user will be affected). You will get the least number of potential issues with this one.
If I revert my ESP-IDF checkout to tag v5.0.1 and rerun install.bat, it works just fine.
That works just because the environment already exists and doesn't have to be created.
Do you have set
IDF_PYTHON_ENV_PATH
environment variable? Because the following doesn't seem right.Creating a new Python environment in C:\Users\myuser\AppData\Local\Programs\Python\Python310\
BTW, the recommended way is to use the Windows Tool Installer from https://dl.espressif.com/dl/esp-idf/ which would install a Python environment locally for ESP-IDF (not even the current Windows user will be affected). You will get the least number of potential issues with this one.
I tried the dedicated installer as you recommended and that worked. The way it organizes the ESP-IDF clone, a local Python environment, and the supplementary tools into one folder is different from what I was doing, which was cloning the ESP-IDF repo directly and running install.bat on the command line (which only seemed to fail on this recent release).
I'm happy that it got solved. Thanks for sharing the results.
Answers checklist.
IDF version.
v5.0.2
Operating System used.
Windows
How did you build your project?
Other (please specify in More Information)
If you are using Windows, please specify command line type.
CMD
What is the expected behavior?
I expect the installation to finish without errors.
What is the actual behavior?
The installation is halted when it encounters an "Access is denied" error.
Steps to reproduce.
Build or installation Logs.
More Information.
I'm running this on Windows 10. I originally had my Python 3.10 installation under "Program Files", but uninstalled it and reinstalled it for just my Windows user account so that it installed under "Users\myuser\AppData\Local\Programs\Python\Python310\".
If I revert my ESP-IDF checkout to tag v5.0.1 and rerun install.bat, it works just fine.