Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Installing ROS2 on my mac

I installed ROS2 on my mac, but I couldn't execute any program about ros2.
I ran these commands and following messages are appeared. How can I fix it?

command:
"ros2 run demo_nodes_cpp add_two_ints_server"
error:
Failed to load entry point 'launch': No module named 'rclpy._rclpy'
Failed to load entry point 'call': No module named 'error'
Failed to load entry point 'echo': No module named 'rclpy._rclpy'
Failed to load entry point 'pub': No module named 'error'

command:
"ros2 rviz2 rviz2"
error:
Failed to load entry point 'launch': No module named 'rclpy._rclpy'
Failed to load entry point 'call': No module named 'error'
Failed to load entry point 'echo': No module named 'rclpy._rclpy'
Failed to load entry point 'pub': No module named 'error'
usage: ros2 [-h] Call ros2 <command> -h for more detailed usage. ...
ros2: error: argument Call ros2 <command> -h for more detailed usage.: invalid choice: 'rviz2' (choose from 'daemon', 'extension_points', 'extensions', 'lifecycle', 'msg', 'node', 'param', 'pkg', 'run', 'security', 'service', 'srv', 'topic')

Thank you , Shigeki Kobayashi

click to hide/show revision 2
None

Installing ROS2 on my mac

I installed ROS2 on my mac, but I couldn't execute any program about ros2.
I ran these commands and following messages are appeared. How can I fix it?

command:
"ros2

ros2 run demo_nodes_cpp add_two_ints_server" 
add_two_ints_server

error:

Failed to load entry point 'launch': No module named 'rclpy._rclpy' 
Failed to load entry point 'call': No module named 'error'
Failed to load entry point 'echo': No module named 'rclpy._rclpy'
Failed to load entry point 'pub': No module named 'error'

command:

ros2 rviz2 rviz2

error:

Failed to load entry point 'launch': No module named 'rclpy._rclpy'  
Failed to load entry point 'call': No module named 'error'  

command:
"ros2 rviz2 rviz2"
error:
Failed to load entry point 'launch': No module named 'rclpy._rclpy'
Failed to load entry point 'call': Failed to load entry point 'echo': No module named 'rclpy._rclpy' Failed to load entry point 'pub': No module named 'error'
Failed to load entry point 'echo': No module named 'rclpy._rclpy'
Failed to load entry point 'pub': No module named 'error'
usage: ros2 [-h] Call ros2 `ros2 <command> -h -h` for more detailed usage. ...
ros2: error: argument Call ros2 `ros2 <command> -h -h` for more detailed usage.: invalid choice: 'rviz2' (choose from 'daemon', 'extension_points', 'extensions', 'lifecycle', 'msg', 'node', 'param', 'pkg', 'run', 'security', 'service', 'srv', 'topic')

'topic')

Thank you , Shigeki Kobayashi