# Topic Quiz mistake 7.9 Actions Quiz

**URL:** <https://get-help.theconstruct.ai/t/topic-quiz-mistake-7-9-actions-quiz/36190>\
**Category:** ROS Basics In 5 Days (Python)\
**Tags:** actions\
**Created:** [May 13, 2025, 12:00pm UTC](https://get-help.theconstruct.ai/t/topic-quiz-mistake-7-9-actions-quiz/36190 "2025-05-13T12:00:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffrey.jahja7](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/j/958977/32.png) [@jeffrey.jahja7](https://get-help.theconstruct.ai/u/jeffrey.jahja7)\
**Post date:** [May 13, 2025, 12:00pm UTC](https://get-help.theconstruct.ai/t/topic-quiz-mistake-7-9-actions-quiz/36190/1 "2025-05-13T12:00:56Z")

</div>

Hi I believe I was incorrectly marked for this section

 ![Screenshot 2025-05-13 at 9.57.13 pm](https://get-help.theconstruct.ai/uploads/default/original/2X/d/dfff6970acd896c6959e5b37f8f45c85426e6b75.png)

Weirdly enough when I was last marked, I received marks for having the bot launch the file correctly. Just unsure why it isn’t the case this time round.

 ![Screenshot 2025-05-13 at 9.57.45 pm](https://get-help.theconstruct.ai/uploads/default/original/2X/4/4eb693291e3c860402316f64710263ec45c67ae3.png)

---

<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:** [May 13, 2025, 2:53pm UTC](https://get-help.theconstruct.ai/t/topic-quiz-mistake-7-9-actions-quiz/36190/3 "2025-05-13T14:53:14Z")

</div>

Hello @jeffrey.jahja7 ,

I just checked your latest correction logs. When launching the action client, the following error appears:

```auto
[server-1] e[31m[ERROR] [1747137421.726183291] [distance_action_server]: Error raised in execute callback: type object 'Distance' has no attribute 'STATUS_SUCCEEDED'e[0m
[server-1] Traceback (most recent call last):
[server-1] File "/home/simulations/ros2_sims_ws/install/rclpy/local/lib/python3.10/dist-packages/rclpy/action/server.py", line 325, in _execute_goal
[server-1] execute_result = await await_or_execute(execute_callback, goal_handle)
[server-1] File "/home/simulations/ros2_sims_ws/install/rclpy/local/lib/python3.10/dist-packages/rclpy/executors.py", line 105, in await_or_execute
[server-1] res = await callback(*args)
[server-1] File "/home/user/ros2_ws/install/actions_quiz/lib/python3.10/site-packages/actions_quiz/action_server.py", line 84, in execute_callback
[server-1] result = await self.send_navigation_goal(x, y, yaw)
[server-1] File "/home/user/ros2_ws/install/actions_quiz/lib/python3.10/site-packages/actions_quiz/action_server.py", line 133, in send_navigation_goal
[server-1] if nav_result.status == Distance.STATUS_SUCCEEDED:
[server-1] AttributeError: type object 'Distance' has no attribute 'STATUS_SUCCEEDED'

```

This is why the grader is failing you at this stage.

Best,

---

<div class="post-metadata">

**Author:** ![jeffrey.jahja7](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/j/958977/32.png) [@jeffrey.jahja7](https://get-help.theconstruct.ai/u/jeffrey.jahja7)\
**Post date:** [May 15, 2025, 2:52am UTC](https://get-help.theconstruct.ai/t/topic-quiz-mistake-7-9-actions-quiz/36190/4 "2025-05-15T02:52:54Z")

</div>

Hi @albertoezquerro ,

What do you think is the best solution to this? I launched it on my own and it worked.

---

<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:** [May 16, 2025, 8:30am UTC](https://get-help.theconstruct.ai/t/topic-quiz-mistake-7-9-actions-quiz/36190/5 "2025-05-16T08:30:31Z")

</div>

It’s an error in your code, exactly in this line:

`if nav_result.status == Distance.STATUS_SUCCEEDED:`

The error is: `AttributeError: type object 'Distance' has no attribute 'STATUS_SUCCEEDED'`

So you need to fix the error in your code.

Best,

---

<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:** [May 21, 2025, 8:31am UTC](https://get-help.theconstruct.ai/t/topic-quiz-mistake-7-9-actions-quiz/36190/6 "2025-05-21T08:31:28Z")

</div>

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