Missing parentheses in call to 'print'. Did you mean print(msg) error

In TF ROS, unit 2, When trying to run the program to move the robot using keyboard using program:

roslaunch turtle_tf_3d turtle_keyboard_move.launch

I get the error:

    print msg
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(msg)?
[turtle1_twist_keyboard-1] process has died [pid 10079, exit code 1, cmd /home/simulations/public_sim_ws/src/all/turtle_3d/turtle_tf_3d/scripts/turtle_twist_keyboard.py turtle1 __name:=turtle1_twist_keyboard __log:=/home/user/.ros/log/f19e0d30-818b-11ec-bf51-0242c0a86008/turtle1_twist_keyboard-1.log].
log file: /home/user/.ros/log/f19e0d30-818b-11ec-bf51-0242c0a86008/turtle1_twist_keyboard-1*.log

Can i know what went wrong? my python version is Python 3.8.10

It worked when i manually added parathesis to each print function. But i dont think i should have to since this was a demo program. Is the error based on the python version?

Yeah,

This error is due to the python3 has no print without parethesis, Thnaks for reporting this issue and it will be fixed in the next weekly update

1 Like