ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

vcs command not found?

asked 2021-09-09 12:07:53 -0500

SpencerH gravatar image

Trying to use the vcs command to install ros yields this error:

vcs : The term 'vcs' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again

My python path is set correctly, and using pip install -U vcstool tells me that vcstool is already installed.

edit retag flag offensive close merge delete

Comments

Is your PATH set correctly to get tools from pip? Depending on your specific setup, pip install may have installed the binary to ~/.local/bin - can you check if there is an executable called vcs in that directory? If so, then you'll need to add this to your PATH

emersonknapp gravatar image emersonknapp  ( 2021-09-09 17:06:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-12-09 01:04:48 -0500

updated 2022-12-09 01:08:24 -0500

In my case, I was following the macOS tutorial at https://docs.ros.org/en/humble/Instal...

When I run

pip install -U \
 argcomplete catkin_pkg colcon-common-extensions coverage \
 cryptography empy flake8 flake8-blind-except==0.1.1 flake8-builtins \
 flake8-class-newline flake8-comprehensions flake8-deprecated \
 flake8-docstrings flake8-import-order flake8-quotes \
 importlib-metadata lark==1.1.1 lxml matplotlib mock mypy==0.931 netifaces \
 nose pep8 psutil pydocstyle pydot pygraphviz pyparsing==2.4.7 \
 pytest-mock rosdep rosdistro setuptools==59.6.0 vcstool

I got error

ERROR: Could not find a version that satisfies the requirement vcstoolpip (from versions: none)

ERROR: No matching distribution found for vcstoolpip

However, after I install vcstool individually by

pip install vcstool

Then I can use vcs.

For the question, it might be because of environment. Using conda helps me have a clean Python environment:

conda create --name=ros python=3.10 --yes
conda activate ros
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-09-09 12:07:53 -0500

Seen: 11,623 times

Last updated: Dec 09 '22