Not able to run ros2 node
I installed ros2(crystal) in the same machine having ros(melodic). I changed my .bashrc script also as shown below
source /opt/ros/crystal/setup.bash
source /home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/setup.bash
But when I try to start a ros2 node(ros2 run demo_nodes_cpp talker), I am getting the below error.
Failed to load entry point 'launch': No module named 'rclpy._rclpy'
Failed to load entry point 'start': No module named 'rclpy._rclpy'
Failed to load entry point 'status': No module named 'rclpy._rclpy'
Failed to load entry point 'stop': No module named 'rclpy._rclpy'
Failed to load entry point 'get': No module named 'rclpy._rclpy'
Failed to load entry point 'list': No module named 'rclpy._rclpy'
Failed to load entry point 'nodes': No module named 'rclpy._rclpy'
Failed to load entry point 'set': No module named 'rclpy._rclpy'
Failed to load entry point 'info': No module named 'rclpy._rclpy'
Failed to load entry point 'list': No module named 'rclpy._rclpy'
Failed to load entry point 'delete': No module named 'rclpy._rclpy'
Failed to load entry point 'get': No module named 'rclpy._rclpy'
Failed to load entry point 'list': No module named 'rclpy._rclpy'
Failed to load entry point 'set': No module named 'rclpy._rclpy'
Failed to load entry point 'generate_policy': No module named 'rclpy._rclpy'
Failed to load entry point 'call': No module named 'rclpy._rclpy'
Failed to load entry point 'list': No module named 'rclpy._rclpy'
Failed to load entry point 'delay': No module named 'rclpy._rclpy'
Failed to load entry point 'echo': No module named 'rclpy._rclpy'
Failed to load entry point 'hz': No module named 'rclpy._rclpy'
Failed to load entry point 'info': No module named 'rclpy._rclpy'
Failed to load entry point 'list': No module named 'rclpy._rclpy'
Failed to load entry point 'pub': No module named 'rclpy._rclpy'
Traceback (most recent call last):
File "/home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/bin/ros2", line 11, in <module>
load_entry_point('ros2cli==0.6.3', 'console_scripts', 'ros2')()
File "/home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/lib/python3.6/site-packages/ros2cli/cli.py", line 69, in main
rc = extension.main(parser=parser, args=args)
File "/home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/lib/python3.6/site-packages/ros2run/command/run.py", line 72, in main
return run_executable(path=path, argv=args.argv, prefix=prefix)
File "/home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/lib/python3.6/site-packages/ros2run/api/__init__.py", line 61, in run_executable
process = subprocess.Popen(cmd)
File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/lib/demo_nodes_cpp/talker'
Does anyone faced the same issue? If so, please help me with this. Thank you.