ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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.
2 | No.2 Revision |
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/