# ModuleNotFoundError: No module named 'actions\_quiz.msg'

**URL:** <https://get-help.theconstruct.ai/t/modulenotfounderror-no-module-named-actions-quiz-msg/33543>\
**Category:** ROS Basics In 5 Days (Python)\
**Created:** [November 16, 2024, 5:13pm UTC](https://get-help.theconstruct.ai/t/modulenotfounderror-no-module-named-actions-quiz-msg/33543 "2024-11-16T17:13:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolasjcozzarin](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/nicolasjcozzarin/32/9280_2.png) [@nicolasjcozzarin](https://get-help.theconstruct.ai/u/nicolasjcozzarin)\
**Post date:** [November 16, 2024, 5:13pm UTC](https://get-help.theconstruct.ai/t/modulenotfounderror-no-module-named-actions-quiz-msg/33543/1 "2024-11-16T17:13:55Z")

</div>

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?

 ![image](https://get-help.theconstruct.ai/uploads/default/original/2X/e/ebff1d6d6754b0a561affde89ab245c64e5bc1b9.png)

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?

---

<div class="post-metadata">

**Author:** ![albertoezquerro](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/albertoezquerro/32/7031_2.png) [@albertoezquerro](https://get-help.theconstruct.ai/u/albertoezquerro)\
**Post date:** [November 18, 2024, 9:48am UTC](https://get-help.theconstruct.ai/t/modulenotfounderror-no-module-named-actions-quiz-msg/33543/2 "2024-11-18T09:48:35Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [November 23, 2024, 9:48am UTC](https://get-help.theconstruct.ai/t/modulenotfounderror-no-module-named-actions-quiz-msg/33543/3 "2024-11-23T09:48:44Z")

</div>

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