UNIT 4 ImportError: No module named action

Hi @umberto.severino,

Have you tried:

cd ~/catkin_ws/
rm -rf build devel
catkin_make
source devel/setup.bash 

Also, look for and remove any compiled python files (.pyc) files in your src folder, as indicated by @duckfrost.

Update:
I have just noticed that your package folder is named action_quiz, but in some part of your code you are referring to actions_quiz. This is probably why you cannot import; you need to correct this, ensuring the package is named as specified in the quiz instructions.

I suggest you create another package named actions_quiz, copy in your code and files from the other package, do the necessary modifications, remove the other package and compile again. PS: never copy CMakeLists.txt and package.xml to avoid errors.

Old screenshot.
I solved correcting the name of the goal, result and feedback as the convention.

Thank you for your time

2 Likes

Solution is below

1 Like