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? Such as:

#!/usr/bin/env python

This is required to be recognized as a python node.

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

#!/usr/bin/env python

This is required to be recognized as a python node.

Actually, there a quick google turned up mutiple questions about the same thing here on ROS answers http://answers.ros.org/question/164091/rosrun-of-a-working-python-script-fails/ http://answers.ros.org/question/149916/problems-with-rostutorials-writingserviceclientpython/