Ask Your Question

rclpy commend crushed in ROS2

asked 2018-10-31 08:32:31 -0500

MSS gravatar image

updated 2018-10-31 10:43:13 -0500

lucasw gravatar image

what is the mean of SYntaxError: invalid syntax ini rclpy/ Please help this question

Traceback (most recent call last):
  File", line 3, in <module>
    import rclpy
  File "/opt/ros/bouncy/lib/python3.6/site-packages/rclpy/", line 23
    def init(*, args=None):
SyntaxError: invalid syntax
edit retag flag offensive close merge delete


We're gonna need a lot more information to be of use here... What is

allenh1 gravatar image allenh1  ( 2018-10-31 14:47:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-01-23 04:32:58 -0500

marguedas gravatar image

You're using Python 2 (python but rclpy and all of ROS 2 supports only Python 3 so you should run the following python3

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-10-31 08:32:31 -0500

Seen: 89 times

Last updated: Jan 23 '20