Re: question in zephyrproject

Bolivar, Marti

"Kinder, David B" <> writes:


We’re working on an updated getting started guide that streamlines this setup process so some important steps such as updating the PATH are not missed (so easily).
Check out
and the build artifacts for the GSG here:
FWIW, recent versions of pip3 install will warn you if ~/.local/bin
(or wherever it installs packages with --user) are not on PATH, so
hopefully this problem will become less common as time goes on.

Comments appreciated.

-- david

From: <> On Behalf Of Lawrence King
Sent: Tuesday, September 17, 2019 12:40 PM
To: Allen Curtis <>; Bolivar, Marti <>
Subject: Re: [Zephyr-devel] question in zephyrproject

I’m with Charles. I had to add this to my .bashrc

export PATH=~/.local/bin:$PATH

Once I did this everything is good.
That is a separate issue as described in the back and forth between
Carles and I.

Let's not confuse the PATH environment variable, which is used to locate
the executable "west" file, with sys.path, which is the variable
Python uses to locate importable modules. The latter can be augmented
using the PYTHONPATH environment variable, but it should not be
necessary if python and pip3 are configured properly (and using the
default configuration for at least Ubuntu and Arch in my testing).


Lawrence King
Principal Developer

From:<> <<>> On Behalf Of Allen Curtis
Sent: Tuesday, September 17, 2019 3:36 PM
To: Bolivar, Marti <<>>
Subject: Re: [Zephyr-devel] question in zephyrproject

I did not see the “python -m site” in the instructions.

On Tue, Sep 17, 2019 at 12:33 PM Bolivar, Marti <<>> wrote:
Allen Curtis <<>> writes:

Not my experience. The last time I installed the dependencies went into a
dotlocal directory under the user account. Python couldn’t find them.
What distro are you using? Did you try running python3 -m site as
described below to debug?

On Tue, Sep 17, 2019 at 12:12 PM Bolivar, Marti <<>>

Hi Jaemin, Allen,

"Allen Curtis via Lists.Zephyrproject.Org<http://Lists.Zephyrproject.Org>"
<<>> writes:

I had this same problem. My solution was to export PYTHONPATH to include
the directory containing this module. If you went through the
installing all the dependencies, it is installed on your system
Hmm, that shouldn't be needed if the Python dependencies were installed

On Tue, Sep 17, 2019 at 4:16 AM via Lists.Zephyrproject.Org<http://Lists.Zephyrproject.Org>
<jaeminy.choi=<>> wrote:


This is Jaemin from Samsung Electronics and we are trying to set the
environment up for Zephyr with

Everything went well with your manuals but when I try this one

west build -b reel_board samples/hello_world

(in my case west build -b qemu_x86 samples/hello_world )

The error which can't find pykwalify comes up like below.
Based on your screenshot, it looks like you are running on Linux, so you
should have installed west using "pip3 install --user west", which it
looks like you did:

-- Found west: /home/jaeminy.choi/.local/bin/west

If so, then pykwalify should have been installed too, because west
declares it as a dependency to pip:

$ pip3 show west | grep Requires:
Requires: colorama, PyYAML, pykwalify, configobj, setuptools

So as Allen said, if you have west but it can't import pykwalify, there
is a problem with the Python path. But you shouldn't need to set
PYTHONPATH; pip and Python's USER_BASE should take care of this for you.

First, you should check that pykwalify is installed, like this:

$ pip3 show -f pykwalify | grep Location:
Location: /home/foo/.local/lib/python3.6/site-packages

If that doesn't work, reinstall west with pip3 to make sure you get it.

Second, run "python3 -m site". The output should contain the pykwalify
installation directory in sys.path. Something like this:

$ python3 -m site
sys.path = [
USER_BASE: '/home/foo/.local' (exists)
USER_SITE: '/home/foo/.local/lib/python3.6/site-packages' (exists)

Make sure:

1. USER_SITE is the directory where pykwalify was installed
3. sys.path contains the directory where pykwalify was installed

For more details, check:

I've googled it to solve the problem but i ended up here.
By the way, for the future, please consider cutting and pasting text
instead of using screenshots of your terminal window as discussed in

It makes it easier for others to google your exact error message.

Can I have some advices?
Hope this helps.


(All programs I should install are beyond minimum version and I skipped
set up a toolchain step because I set up the Zephyr SDK toolchains)



*Allen Curtis*
Medical Device Architect
*Critical Software Solutions, LLC*

*Allen Curtis*
Medical Device Architect
*Critical Software Solutions, LLC*
Allen Curtis
Medical Device Architect
Critical Software Solutions, LLC

Join to automatically receive all group messages.