Import command not working
This is the first part of my code:
#!/usr/bin/env python
import os
import sys
import signal
import rospy
import time
Even then I got the error saying that:
line 1:#!/usr/bin/env: no such file or directory
line 3: import command not found
how ever it is working normally when I run with Python Before running it I even did this
source ~/catkin_ws/devel/setup.bash
Please format code and console output with the Preformatted Text button next time (it's the one with
101010
on it). Otherwise your code is unreadable / invisible.Thanks.
What is the output of
/usr/bin/env python
, when you run that line in a terminal?python 2.7.9