dirk-thomas/vcstool

Invocation of command 'import' on client 'hg' failed

liaoran opened this issue · 2 comments

OS: Ubuntu22.04 LTS
Python version: 3.10.4
ROS Version: ROS rolling
Error Information:

vcs import src < Gazebo9.repos
EEEEEE
=== src/gazebo (hg) ===
Invocation of command 'import' on client 'hg' failed: AssertionError: Could not find 'hg' executable (/usr/lib/python3/dist-packages/vcstool/clients/hg.py:328)
=== src/ign-cmake (hg) ===
Invocation of command 'import' on client 'hg' failed: AssertionError: Could not find 'hg' executable (/usr/lib/python3/dist-packages/vcstool/clients/hg.py:328)
=== src/ign-math (hg) ===
Invocation of command 'import' on client 'hg' failed: AssertionError: Could not find 'hg' executable (/usr/lib/python3/dist-packages/vcstool/clients/hg.py:328)
=== src/ign-msgs (hg) ===
Invocation of command 'import' on client 'hg' failed: AssertionError: Could not find 'hg' executable (/usr/lib/python3/dist-packages/vcstool/clients/hg.py:328)
=== src/ign-transport (hg) ===
Invocation of command 'import' on client 'hg' failed: AssertionError: Could not find 'hg' executable (/usr/lib/python3/dist-packages/vcstool/clients/hg.py:328)
=== src/sdformat (hg) ===
Invocation of command 'import' on client 'hg' failed: AssertionError: Could not find 'hg' executable (/usr/lib/python3/dist-packages/vcstool/clients/hg.py:328)

The error message says "Could not find 'hg' executable" so I'm guessing that hg simply isn't installed. Install it by running:

sudo apt-get install -y mercurial

The error message says "Could not find 'hg' executable" so I'm guessing that hg simply isn't installed. Install it by running:

sudo apt-get install -y mercurial

Thanks!