You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v5.4-398-g473771bc14
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
PowerShell
What is the expected behavior?
run export
What is the actual behavior?
failed
Steps to reproduce.
./export.ps1
Build or installation Logs.
Traceback (most recent call last):
File "C:\Users\yekai\DevPkgs\esp\esp-idf\tools\export_utils\activate_venv.py", line 12, in <module>
from console_output import CONSOLE_STDERR
File "C:\Users\yekai\DevPkgs\esp\esp-idf\tools\export_utils\console_output.py", line 7, in <module>
from utils import conf
File "C:\Users\yekai\DevPkgs\esp\esp-idf\tools\export_utils\utils.py", line 28, in <module>
conf = Config()
File "C:\Users\yekai\DevPkgs\esp\esp-idf\tools\export_utils\utils.py", line 19, in __init__
self.IDF_PATH_OLD = os.environ['IDF_PATH_OLD']
File "C:\Softwares\Python39\lib\os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'IDF_PATH_OLD'
ERROR: Activation script failed
To view detailed debug information, set ESP_IDF_EXPORT_DEBUG=1 and run the export script again.
More Information.
I think it would gen a empty string to env, but it would be cleared after entry subprocess
github-actionsbot
changed the title
export would be failed in pwsh when getting IDF_PATH_OLD
export would be failed in pwsh when getting IDF_PATH_OLD (IDFGH-14648)
Feb 14, 2025
Answers checklist.
IDF version.
v5.4-398-g473771bc14
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
PowerShell
What is the expected behavior?
run export
What is the actual behavior?
failed
Steps to reproduce.
./export.ps1
Build or installation Logs.
More Information.
I think it would gen a empty string to env, but it would be cleared after entry subprocess
esp-idf/tools/activate.py
Line 35 in 0d6099e
Some small test:
test1.py
test2.py
output
The text was updated successfully, but these errors were encountered: