Unit 6 quiz, srv message

File “/home/user/catkin_ws/src/services_quiz/scripts/bb8_move_custom_service_server.py”, line 4, in
from services_quiz.srv import BB8CustomServiceMessage, BB8CustomServiceMessageResponse
ModuleNotFoundError: No module named ‘services_quiz’
I am getting this error that says that no module name ‘services_quiz’, and i just created the srv directory in the services_quiz folder just as mentioned in the course, and i added the .srv file, then i modified the CMakeLists.txt and the package.xml, where may the problem be??

Hello,
did you compile and source?

yes, i did, and there was no problem

is it present in the packages list, have you checked?

yes

/home/user/catkin_ws/src/services_quiz/srv,
this is the path

and here i imported it:
from services_quiz.srv import BB8CustomServiceMessage, BB8CustomServiceMessageResponse

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