This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Build error with ncs v1.2.0

I have the following error when I try to build a sample of ncs v1.2.0 : 

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$ west build -b nrf9160_pca10090ns -d build
-- west build: build configuration:
source directory: /Users/nRF91/ncs/nrf/samples/nrf9160/lwm2m_client
build directory: /Users/nRF91/ncs/nrf/samples/nrf9160/lwm2m_client/build (created)
BOARD: nrf9160_pca10090ns (origin: command line)
-- west build: generating a build system
-- Zephyr version: 2.1.99
-- Found PythonInterp: /usr/local/bin/python3.6 (found suitable version "3.6.1", minimum required is "3.6")
-- Selected BOARD nrf9160_pca10090ns
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'west'
CMake Error at /Users/nRF91/ncs/zephyr/cmake/host-tools.cmake:26 (message):
Unable to import west.veersion from '/usr/local/bin/python3.6'
Call Stack (most recent call first):
/Users/nRF91/ncs/zephyr/cmake/app/boilerplate.cmake:443 (include)
CMakeLists.txt:10 (include)
-- Configuring incomplete, errors occurred!
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I am using mac os x 10.15.4, gcc-arm-none-eabi-8-2019-q3-update, and west v0.6.3.

Note that my env variables ZEPHYR_TOOLCHAIN_VARIANT, GNUARMEMB_TOOLCHAIN_PATH, ZEPHYR_BASE are set correctly, and the west update is performed before the build.

Also, ncs v1.1.0 samples are working well.

Thank you for your time,

Amine