ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

It looks like the script is being executed by the shell, not python. Does your script start with a shebang line?

#!/usr/bin/env python

It looks like the script is being executed by the shell, not python. Does your script start with a shebang line?line? Such as:

#!/usr/bin/env python