
Geoffroy Van Cutsem
This is most likely what Marti said, you need to add ~/.local/bin to your PATH:
$ export PATH=$PATH:~/.local/bin
And try again.
If that works, you can make this change permanent via ~/.bashrc
Geoffroy
toggle quoted messageShow quoted text
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
- mrg@mrg-Lenovo-ideapad-110-15ISK:~$ west --version
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
- mrg@mrg-Lenovo-ideapad-110-15ISK:~$ pip3 show -f west
Name: west
Version: 0.5.7
Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap)
Author: Zephyr Project
License: UNKNOWN
Location: /home/mrg/.local/lib/python3.6/site-packages
Requires: configobj, PyYAML, colorama, pykwalify
Files:
../../../bin/west
west-0.5.7.dist-info/DESCRIPTION.rst
west-0.5.7.dist-info/INSTALLER
west-0.5.7.dist-info/METADATA
west-0.5.7.dist-info/RECORD
west-0.5.7.dist-info/WHEEL
west-0.5.7.dist-info/entry_points.txt
west-0.5.7.dist-info/metadata.json
west-0.5.7.dist-info/top_level.txt
west/_bootstrap/__init__.py
west/_bootstrap/__pycache__/__init__.cpython-36.pyc
west/_bootstrap/__pycache__/main.cpython-36.pyc
west/_bootstrap/__pycache__/version.cpython-36.pyc
west/_bootstrap/main.py
west/_bootstrap/version.py
west/_bootstrap/west-schema.yml
Kindly advise
Best Regards
Muhammad Rizwan Ghori
USM Fellow,
School of Computer Sciences,
Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Sent: Friday, March 29, 2019 2:15 PM
To: M Rizwan Ghori; Marti Bolivar
Cc: Brett Preston; devel@...
Subject: RE: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
Moreover, the path of West file is after running the command
home/rizwan/.local/python 3.6/packages
Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path
Sent: Friday, 29 March, 12:43 pm
Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem
What version of Ubuntu are you using?
If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of
Ubuntu sometimes have this issue; I forget which ones.
Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again.
If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list
that follows.
Thank you for your kind response. I am using Ubuntu OS for the project. I have followed all the installation steps given on webpage (Linux)
Moreover, after following all the steps of aforementioned link, i started the next step given on the following link.
Commands Tried on Ubuntu:
Universiti Sains Malaysia (USM),
Sent: Friday, March 29, 2019 8:44:47 AM
Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem
Happy to try to help, but could you please provide details? The below email is a bit vague: "commands given on the website cannot recognize the West file" doesn't provide much context
on what went wrong.
- what is your host operating system?
- what commands did you type?
- what output did you expect?
Feel free to just copy and paste rather than taking screenshots of the terminal window.
On Thu, Mar 28, 2019, 9:39 PM Brett Preston <bpreston@...> wrote:
Sorry - forwarding from the main mail list to
devel@...
I am trying to use Zephyr in my research project. I am following the steps given on this website for the Zephyr installation. During the process i am facing problem regarding the initialization
of West. The commands given on the website cannot recognize the West file. Kindly advise. Waiting for your kind reply.
|