ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
There is a good chance that your detect_faces_video.py
doesn't have a shebang line. That would make it work when started directly with python ..
, but rosrun
doesn't start a node/script like that.
Verify the first line of detect_faces_video.py
is something like #!/usr/bin/env python
. If there isn't such a line, that would most likely be your problem.
The imports are not authorized, and I feel like I need to change the rights to read | write for these imports
that has most likely nothing to do with it. Your shell is just using the wrong program to interprete the Python script, leading to all sorts of problems when that interpreter is trying to make sense of your Python statements.