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

Colcon building turtlesim failed

asked 2020-09-12 02:31:55 -0600

Someone0135 gravatar image


I am following the ROS2 tutorials and got stuck on this page. Whenever I try to run the command:

colcon build --merge-install

I get the error:

    Starting >>> turtlesim
--- stderr: turtlesim
Traceback (most recent call last):
  File "c:\python38\lib\site-packages\colcon_core\executor\", line 91, in __call__
    rc = await self.task(*args, **kwargs)
  File "c:\python38\lib\site-packages\colcon_core\task\", line 93, in __call__
    return await task_method(*args, **kwargs)
  File "c:\python38\lib\site-packages\colcon_ros\task\ament_cmake\", line 69, in build
    return await
  File "c:\python38\lib\site-packages\colcon_cmake\task\cmake\", line 87, in build
    rc = await self._reconfigure(args, env)
  File "c:\python38\lib\site-packages\colcon_cmake\task\cmake\", line 172, in _reconfigure
    raise RuntimeError("Could not find 'cmake' executable")
RuntimeError: Could not find 'cmake' executable
Failed   <<< turtlesim [0.03s, exited with code 1]

Summary: 0 packages finished [0.22s]
  1 package failed: turtlesim
  1 package had stderr output: turtlesim
Could not find 'cmake' executable

I have cmake installed, but it is not in the default directory, could this be the problem? I tried searching online but couldn't find any answers, if anyone could help me solve this problem it would be greatly appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-08-17 05:05:49 -0600

MJPS gravatar image

Hello, it seems you are missing cmake python module. Please try to run "pip install cmake".

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-09-12 00:34:57 -0600

Seen: 686 times

Last updated: Sep 12 '20