ModuleNotFoundError: No module named 'services_quiz'

Hi,

I am getting the below error. I did try my best to each ine of the code to find out what is wrong, but still can quiet figure out what is wrong

user:~/catkin_ws$ rosrun services_quiz bb8_move_custom_service_server.py

Traceback (most recent call last):
File “/home/user/catkin_ws/src/services_quiz/scripts/bb8_move_custom_service_server.py”, line 5, in

from services_quiz.srv import BB8CustomServiceMessage, BB8CustomServiceMessageResponse

ModuleNotFoundError: No module named ‘services_quiz’

when I do “rossrv list” , i can find the “services_quiz/BB8CustomServiceMessage” in the list though.

Please guide me through this.

Thanks You

On the web shell where you are doing the rosrun, did you run source ~/catkin_ws/devel/setup.bash?

You need to run this command on every web shell after compiling your custom messages (or generally after making changes to your code).

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