Error in the quiz

I have this error topics_quiz
The autograder tells me that I have this error
[16:52:48][assess] The topics_quiz package did not compile successfully. Let’s address this before we continue.
Things you can check before retrying:

  • Run colcon build --packages-select topics_quiz and ensure it compiles without an error.


and when i run the same code colcon build --packages-select topics_quiz
Starting >>> topics_quiz
Finished <<< topics_quiz [1.66s]

Summary: 1 package finished [2.21s]
i dont have problems

what can i do a this situation

Hi @leonardodavidortegalomeli, welcome to the community!

That is a strange issue since it compiled with the provided instruction.

Maybe the autograder somehow took an old version of the package. Can you try removing your build/ and /install and compiling again? Maybe that will fix it.

I tried to do this and it doesn’t work
user:~/ros2_ws$ rm -rf build/ install/ log/
colcon build
Starting >>> custom_interfaces
Starting >>> client_pkg
Starting >>> exercise31_pkg
Starting >>> my_package
Starting >>> publisher_pkg
Starting >>> subscriber_pkg
Finished <<< client_pkg [7.71s]
Finished <<< exercise31_pkg [7.73s]
Finished <<< subscriber_pkg [7.73s]
Finished <<< publisher_pkg [7.80s]
Finished <<< my_package [7.87s]
Finished <<< custom_interfaces [15.8s]
Starting >>> example36_pkg
Starting >>> topics_quiz
Finished <<< example36_pkg [2.31s]
Finished <<< topics_quiz [2.32s]

Summary: 8 packages finished [20.3s]

user:~/ros2_ws$ colcon build --packages-select topics_quiz
Starting >>> topics_quiz
Finished <<< topics_quiz [1.71s]

Summary: 1 package finished [2.27s]
user:~/ros2_ws$

Let me check later today and get back to you.

The problem is that your topics_quiz package has an extraneous dependency - custom_interfaces.

You can easily reproduce this problem by removing build and install and then try compiling on topics_quiz.

cd ~/ros2_ws
rm -rf build/ install/ log/
colcon build --packages-select topics_quiz

Why was this dependency included? Remove it and make any necessary adjustments, and you should be fine.

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