Getting Started fails to find tools
Posted: Thu Sep 19, 2019 2:11 am
Hi All
My first attempts have not gone well and don't know where to look.
I decided to follow the getting started guide to Windows 10, using ESP-IDF.
1. I used esp-idf-tools-setup-2.0.exe and installed the tools but pointed to Python 2.7 which was already on the machine rather than install V3. Since I have already checked out the latest ESP-IDF I pointed its location to there too.
2. Then I rebooted the PC
3. I created %userprofile%\esp and copied hello_world to there too. Then moved to %userprofile%\esp\hello_world
4. idf.py menuconfig was attempted but it didn't understand the command.
Therefore it looks like the environment settings are not working, whereby I find idf-py in the "esp-idf\tools".
5.
If I move to that location and try I then get:
Traceback (most recent call last):
File "D:\\esp-idf\tools\idf.py", line 1520, in <module>
main()
File "D:\\esp-idf\tools\idf.py", line 1433, in main
checks_output = check_environment()
File "D:\esp-idf\tools\idf.py", line 127, in check_environment
print_idf_version()
File "D:\tools\idf.py", line 545, in print_idf_version
version = idf_version()
File "D:\esp-idf\tools\idf.py", line 533, in idf_version
"--git-dir=%s" % os.path.join(os.environ["IDF_PATH"], '.git'),
File "C:\Users\Me\.platformio\python27\lib\os.py", line 425, in __getitem__
return self.data[key.upper()]
KeyError: 'IDF_PATH'
I don't know whether this should work from here or not but it may give some clues (?)
Therefore what needs to be done to get something working after this install? Where can I look and do I need to correct things manually?
Thank in advance
Regards
MJ
My first attempts have not gone well and don't know where to look.
I decided to follow the getting started guide to Windows 10, using ESP-IDF.
1. I used esp-idf-tools-setup-2.0.exe and installed the tools but pointed to Python 2.7 which was already on the machine rather than install V3. Since I have already checked out the latest ESP-IDF I pointed its location to there too.
2. Then I rebooted the PC
3. I created %userprofile%\esp and copied hello_world to there too. Then moved to %userprofile%\esp\hello_world
4. idf.py menuconfig was attempted but it didn't understand the command.
Therefore it looks like the environment settings are not working, whereby I find idf-py in the "esp-idf\tools".
5.
If I move to that location and try I then get:
Traceback (most recent call last):
File "D:\\esp-idf\tools\idf.py", line 1520, in <module>
main()
File "D:\\esp-idf\tools\idf.py", line 1433, in main
checks_output = check_environment()
File "D:\esp-idf\tools\idf.py", line 127, in check_environment
print_idf_version()
File "D:\tools\idf.py", line 545, in print_idf_version
version = idf_version()
File "D:\esp-idf\tools\idf.py", line 533, in idf_version
"--git-dir=%s" % os.path.join(os.environ["IDF_PATH"], '.git'),
File "C:\Users\Me\.platformio\python27\lib\os.py", line 425, in __getitem__
return self.data[key.upper()]
KeyError: 'IDF_PATH'
I don't know whether this should work from here or not but it may give some clues (?)
Therefore what needs to be done to get something working after this install? Where can I look and do I need to correct things manually?
Thank in advance
Regards
MJ