ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The first error is import: command not found
; this means that the import
command itself is unrecognized; not the library being imported. This usually happens when you try to run a python program with the shell.
When you execute a program with ./
, it looks at the first line, and if it starts with #!
, it uses the rest of the line as the program for executing the file. If the file doesn't start with a #!
, it's executed with the default shell. It looks like that's what happing here.
I would double-check your file and make sure that the very first line is #!/usr/bin/env python