use esp32 can't build project


zhichunlee <zhichunlee@...>
 

Hi

I used ESP32 and setup the build environment acording to the docs
as https://docs.zephyrproject.org/latest/boards/xtensa/esp32/doc/index.html.

The mainly environment are as follows:
Linux: Ubuntu18
CMake: 3.22.0
Python: 3.6.9
Devicetree compiler: 1.4.5 (Not 1.4.6, how to  install it?)
zephyr sdk: 0.13.2
ESP32 toolchain: esp-2021r2-8.4.0

The ESP32 toolchain is work using "idf.py build".
But when built the project using west, error occured as follows:



It seems can't import "kconfiglib" but has installed it using "pip3 install".

Please help to see where there are problems and give suggestions.
Thanks very much!

zhichun lee



mlsvrts
 


Hi zhichun lee,

I often find that 'pip3' works in mysterious ways (it is not always clear which python installation it is linked with).

Have you tried `/usr/bin/python3.6 -m pip install kconfiglib` ?

Hope this helps,

James



-------- Original Message --------
On Nov 29, 2021, 3:25 AM, zhichunlee < zhichunlee@...> wrote:

Hi

I used ESP32 and setup the build environment acording to the docs
as https://docs.zephyrproject.org/latest/boards/xtensa/esp32/doc/index.html.

The mainly environment are as follows:
Linux: Ubuntu18
CMake: 3.22.0
Python: 3.6.9
Devicetree compiler: 1.4.5 (Not 1.4.6, how to  install it?)
zephyr sdk: 0.13.2
ESP32 toolchain: esp-2021r2-8.4.0

The ESP32 toolchain is work using "idf.py build".
But when built the project using west, error occured as follows:



It seems can't import "kconfiglib" but has installed it using "pip3 install".

Please help to see where there are problems and give suggestions.
Thanks very much!

zhichun lee