ModuleNotFoundError: No module named 'actions_quiz.msg'

I have read all the replies on this topic, watch the QA video, read line by line. I still cannot compile my custon Action msg.

I have created the files, confirmed the paths are correct, double checked cmakelist and package.xml. did catkin_make, sourced all the terminals, still not getting the CustomActionMsg compiled. Can u help me finde my error?

package.xml

Blockquote<?xml version="1.0"?>

actions_quiz
0.1.0
Custom action for drone control

User
MIT

<buildtool_depend>catkin</buildtool_depend>
<build_depend>rospy</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>actionlib</build_depend>
<build_depend>actionlib_msgs</build_depend>
<build_depend>message_generation</build_depend>

<exec_depend>rospy</exec_depend>
<exec_depend>std_msgs</exec_depend>
<exec_depend>actionlib_msgs</exec_depend>
<exec_depend>message_runtime</exec_depend>

CMakelists.txt

cmake_minimum_required(VERSION 2.8.3)
project(actions_quiz)

find_package(catkin REQUIRED COMPONENTS
rospy
std_msgs
actionlib
actionlib_msgs
message_generation
)

Add the action files here

add_action_files(
FILES
CustomActionMsg.action
)

Generate messages

generate_messages(
DEPENDENCIES
std_msgs
actionlib_msgs
)

catkin_package(
CATKIN_DEPENDS rospy std_msgs actionlib_msgs message_runtime
)

include_directories(
${catkin_INCLUDE_DIRS}
)

Can anyone help me point out my error?

Hello @nicolasjcozzarin ,
I believe you might have a problem with a name collision between your package (actions_quiz) and your script (actions_quiz.py). Could you try renaming your Python script to something else, ie. actions_quiz_node.py?

Let me know if this works,

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