bash: syntax error near unexpected token `sys.argv'
hi im uing ubuntu 16.04 and ros kinetic. When i try to do moveit tutorials http://docs.ros.org/kinetic/api/movei... this step
moveit_commander.roscpp_initialize(sys.argv)
rospy.init_node('move_group_python_interface_tutorial',
anonymous=True)
i get error like this
bash: syntax error near unexpected token `sys.argv'
can anyone help me? i only copy-paste
Please show your complete Python script.
It's likely you don't have a proper shebang.
i don't know how i show it
Click the
edit
button/link below your original question.Add a few blank lines (press
enter
a few times).Now copy-paste your entire Python script into the question.
Press
save
.Add a shebang at the top of your script.
#!/usr/bin/python3
@arjo129: that will most likely cause the author to not be able to execute his script successfully as there is no support for Python 3 in ROS Kinetic by default.