Thank you for contacting us and welcome to the Community!
Please make the following corrections (if necessary and try again):
Your action message name is named CustomActionMsg.launch. It should be CustomActionMsg.action. Also ensure that this file is inside a subdirectory named action, in your actions_quiz package directory.
The import line should read from actions_quiz.msg .... You cannot import directly from actions_quiz.
Please remove the folder if there’s nothing inside it. It’s not needed and might cause some confusion.
Also,
ensure you have run source devel/setup.bashon the terminal on which you’re trying to run the code. Running on one terminal does not work for other terminals; it has to be run on each terminal.
check that you are importing the right message (not typo or error in the name).
The error is caused by the naming of the package and the python file.
If the name is exactly the same except for the .py ending you will have trouble with the imports.
Sometimes the tutorials suggest problematic naming.