Installing ROS2 on my mac [closed]

asked 2018-09-23 22:40:48 -0500

Koby gravatar image

updated 2018-09-23 23:52:39 -0500

jayess gravatar image

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

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2019-02-07 19:03:56.823323

Comments

1

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

marguedas gravatar imagemarguedas ( 2018-09-29 07:36:34 -0500 )edit