create-esp32-app
create-esp32-app copied to clipboard
Warning!: Python directory in tools was not discovered
Ubuntu 20.04 Espressif sdk: 4.2
Problem: python interpreter not found.
This directory exists: ~/esp/esp-idf/tools
But it has no .espressif
subdirectory.
ie: ~/esp/esp-idf/tools/.espressif
does not exist.
This directory exists: ~/.espressif/tools
, however if selected as the toolsPath, the python dir is not found.
Warning!: Python directory in tools was not discovered
answers {
projectName: 'blinky',
iDFPath: '/home/davem/esp/esp-idf',
toolsPath: '/home/davem/.espressif/tools',
isCpp: false,
pythonDir: null,
Additions: []
}
Generating Template with name"mair1"
Success
There is a python directory here though: /.espressif/python_env/idf4.2_py3.8_env
, but I don't see how to set that separately from the tools directory.
Note: even though the python interpreter isn't found, the project still compiles and flashes just fine!
And opening a terminal in VSCode (ctl-shift-`) does find a python interpreter:
Detecting the Python interpreter
Checking "python" ...
Python 3.8.5
"python" has been detected
Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.16.3.
Using Python interpreter in /home/davem/.espressif/python_env/idf4.2_py3.8_env/bin/python
Checking if Python packages are up to date...
Python requirements from /home/davem/esp/esp-idf/requirements.txt are satisfied.
Added the following directories to PATH:
/home/davem/esp/esp-idf/components/esptool_py/esptool
/home/davem/esp/esp-idf/components/espcoredump
/home/davem/esp/esp-idf/components/partition_table
/home/davem/esp/esp-idf/components/app_update
/home/davem/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin
/home/davem/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin
/home/davem/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin
/home/davem/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin
/home/davem/.espressif/tools/cmake/3.16.4/bin
/home/davem/.espressif/tools/openocd-esp32/v0.10.0-esp32-20200709/openocd-esp32/bin
/home/davem/.espressif/python_env/idf4.2_py3.8_env/bin
/home/davem/esp/esp-idf/tools
Done! You can now compile ESP-IDF projects.