Installing ROS2 on my mac [closed]
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
Can you please provide more information about your system? What mac version, how you installed ROS2 and its' dependencies? do you have SIP enabled?
My guess is that either SIP strips your library path or the shebang line in the python exectables doesn't match the location of your Python interpreter