Exercise 6.2: import error std_srv.srv

I have an import error in exercise 6.2.

user:~/catkin_ws$ rosrun unit_6_services bb8_move_in_circle_service_server.py
/home/user/catkin_ws/src/unit_6_services/scripts/bb8_move_in_circle_service_server.py: line 1: import: command not found
from: can’t read /var/mail/std_srvs.srv
from: can’t read /var/mail/geometry_msgs.msg
/home/user/catkin_ws/src/unit_6_services/scripts/bb8_move_in_circle_service_server.py: line 5: syntax error near unexpected token (' /home/user/catkin_ws/src/unit_6_services/scripts/bb8_move_in_circle_service_server.py: line 5: def my_callback(request):’

Does anyone have the same problem?

Make sure you added the: #! /usr/bin/env python
Otherwise show your code please

1 Like

This topic was automatically closed after 7 days. New replies are no longer allowed.