File "<ipython-input-1-a2fe8708919f>", line 1 roslaunch publisher_example move.launch ^ SyntaxError: invalid syntax

hi i just started basic course of ROS when I execute first shell roslaunch publisher_example move.launch it gives following error
File “”, line 1

                          ^

SyntaxError: invalid syntax

@atifmaju , This could be the possible issue:
If you take a look at the error you’re getting, you’ll see that it mentions that the error is in line 1. Check that line again for any random/unnecessary characters or indents added. It happens sometimes that I have randomly hit some keys on the keyboard and not realized it.

1 Like