Re: question in zephyrproject
Hi Jaemin, Allen,
"Allen Curtis via Lists.Zephyrproject.Org"
I had this same problem. My solution was to export PYTHONPATH to includeHmm, that shouldn't be needed if the Python dependencies were installed
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:
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)
1. USER_SITE is the directory where pykwalify was installed
2. ENABLE_USER_SITE is True
3. sys.path contains the directory where pykwalify was installed
For more details, check:
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.
Hope this helps.