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

Trouble building with west - documentation gap between "getting started app" and "toolchain manager"

Hi!

I am trying to work through the nRF Connect SDK tutorial series, and I got stuck at the "building with west step" in part1.

When I try to build my project using the command 

west build -b nRF9160-PCA10090

I get the error

west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')

I am pretty sure that the problem has to do with my environment. I installed everything using the checklist in the "getting started app", but then thetoolchain manager was released and I installed again using it.

My python3 scripts folder is still on my system path (and it will stay that way because I use it for many other things), and west is still installed in global python packages, so it is clear that the command is using the wrong version of west.

I suspect that there is some kind of virtual environment that I need to activate in order to build using the version of west installed via the toolchain manager, but I can't find any documentation explaining how to do that. 

Is there any documentation that I am missing?

Are there any instructions on how to clean up / remove the build environment that I created by following the instructions in the "getting started app"?

thanks!

Related