# Error in the quiz

**URL:** <https://get-help.theconstruct.ai/t/error-in-the-quiz/30603>\
**Category:** ROS2 In 5 Days Python\
**Tags:** error\
**Created:** [May 22, 2024, 12:02am UTC](https://get-help.theconstruct.ai/t/error-in-the-quiz/30603 "2024-05-22T00:02:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonardodavidortegalomeli](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/l/439d5e/32.png) [@leonardodavidortegalomeli](https://get-help.theconstruct.ai/u/leonardodavidortegalomeli)\
**Post date:** [May 22, 2024, 12:02am UTC](https://get-help.theconstruct.ai/t/error-in-the-quiz/30603/1 "2024-05-22T00:02:18Z")

</div>

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.

 ![image](https://get-help.theconstruct.ai/uploads/default/original/2X/7/76da9aa41b41ffb3b1d4dd15088fcbd9d8ceb09c.png)  
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

---

<div class="post-metadata">

**Author:** ![roalgoal](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/roalgoal/32/7280_2.png) [@roalgoal](https://get-help.theconstruct.ai/u/roalgoal)\
**Post date:** [May 22, 2024, 7:54am UTC](https://get-help.theconstruct.ai/t/error-in-the-quiz/30603/2 "2024-05-22T07:54:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![leonardodavidortegalomeli](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/l/439d5e/32.png) [@leonardodavidortegalomeli](https://get-help.theconstruct.ai/u/leonardodavidortegalomeli)\
**Post date:** [May 24, 2024, 10:04pm UTC](https://get-help.theconstruct.ai/t/error-in-the-quiz/30603/3 "2024-05-24T22:04:08Z")

</div>

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$

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [May 27, 2024, 8:24am UTC](https://get-help.theconstruct.ai/t/error-in-the-quiz/30603/4 "2024-05-27T08:24:23Z")

</div>

Let me check later today and get back to you.

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [May 27, 2024, 6:07pm UTC](https://get-help.theconstruct.ai/t/error-in-the-quiz/30603/5 "2024-05-27T18:07:32Z")

</div>

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`.

```auto
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.

---

<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:** [June 1, 2024, 6:08pm UTC](https://get-help.theconstruct.ai/t/error-in-the-quiz/30603/6 "2024-06-01T18:08:10Z")

</div>

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