Python not finding interperter
I created a very simply hello world node in python. Though I can not get rosrun to execute because the python script will not find the interpreter. When I run whereis python the first path I get it /user/bin/python3.4m. There are several more bin paths listed and I have tried them all. Not sure why it wont find it. See the whereis and code below
Code
! /user/bin/python3.4m
import rospy
from std_msgs.msg import String
def talker():
pub = rospy.Publisher('hello_pub',String,queue_size=10)
rospy.init_node('hello_world_publisher',anonymous=True)
r = rospy.Rate(10) #10hz
while not rospy.is_shutdown():
str = "hello world %S"%rospy.get_time()
rospy.login(str)
pub.publish(str)
r.sleep()
if__name__=='__main__':
try:
talker()
except rospy.ROSInterruptException:pass
whereis
! /user/bin/python3.4m
import rospy
from std_msgs.msg import String
def talker():
pub = rospy.Publisher('hello_pub',String,queue_size=10)
rospy.init_node('hello_world_publisher',anonymous=True)
r = rospy.Rate(10) #10hz
while not rospy.is_shutdown():
str = "hello world %S"%rospy.get_time()
rospy.login(str)
pub.publish(str)
r.sleep()
if__name__=='__main__':
try:
talker()
except rospy.ROSInterruptException:pass