Error while running rosrun

asked 2018-09-05 02:28:22 -0500

sarvagya_Gupta gravatar image

Hey,

I want to a python code for ROS and I get the following error while running rosrun (I am very new to ROS):

from: can't read /var/mail/functions from: can't read /var/mail/moviepy.editor from: can't read /var/mail/sklearn.svm from: can't read /var/mail/sklearn.model_selection from: can't read /var/mail/__future__ from: can't read /var/mail/std_msgs.msg from: can't read /var/mail/sensor_msgs.msg from: can't read /var/mail/nav_msgs.msg from: can't read /var/mail/cv_bridge /home/sarvagya/catkin_ws/src/road_detection_svm/src/ML_road.py: line 18: class: command not found /home/sarvagya/catkin_ws/src/road_detection_svm/src/ML_road.py: line 20: syntax error near unexpected token (' /home/sarvagya/catkin_ws/src/road_detection_svm/src/ML_road.py: line 20: def __init__(self):'

Can someone help me with this?

edit retag flag offensive close merge delete

Comments

1

I think you'll need to post your environment variables, but one of the ROS-related ones looks to be pointing at /var/mail/, which is very much wrong!

KenYN gravatar image KenYN  ( 2018-09-05 02:45:38 -0500 )edit