Hi each time that i submit the quiz error it stops to the build of the pkg, it doesnt find it and doesnt go on… remaining to score 0
Which of the quizzes are you talking about? What happens exactly? What is the message from gradebot
? Any screenshots?
Thank you for your interest. I’m having trouble with the quiz on services (5.11), and it’s giving me this output:
[19:38:10] [info] Setting up ROS2 environment (mark: 0)
[19:38:11] [info] ROS2 environment setup is okay (mark: 0)
[19:38:12] [assess]
services_quiz
package not found. It was supposed to be there!
Things your can check:
- Did you create it in
/home/user/ros2_ws/src
? - Did you run
colcon build
after creating it? - Was the compilation successful?
- Did you run
source install/setup.bash
after compiling? - Did you find it in
ros2 pkg list
? (mark: 0)
[19:38:17] [assess]
services_quiz_srv
package not found. What do you take me for?
Please check these and try again.
- Did you create it in
/home/user/ros2_ws/src
? - Did you run
colcon build
after creating it? - Was the compilation successful?
- Did you run
source install/setup.bash
after compiling? - Did you find it in
ros2 pkg list
? (mark: 0)
I’ve sent a screenshot—as you can see, the packages are there, but for one reason or another, the quiz doesn’t recognize them. I’m having the same issue with the action quiz as well
The problem was that your services_quiz_srv
package had an external dependency custom_interfaces
. None of the quiz packages should have external dependencies, except that services_quiz
should depend on services_quiz_srv
.
The external dependency causes compilation to fail because the grader only tries to compile the packages related to the quiz.
You can reproduce this error by running
cd ros2_ws
rm -rf build/ install/ log/
colcon build --packages-select services_quiz services_quiz_srv
Unfortunately, you can no longer attempt this quiz because you have viewed the solution. You should have contacted us at the 2nd or 3rd trial, and before viewing the solution.
I only found out about the attempt limit when I reached the maximum, which was 5. I thought it was an issue on my end, so I kept trying to solve it—unaware that there was a limited number of attempts. I ended up running the bot multiple times before checking the solution, simply because I didn’t know how to fix it. Such a shame
Actions quiz packages seem to have a similar problem. Please run the following to check:
cd ros2_ws
rm -rf build/ install/ log/
colcon build --packages-select actions_quiz actions_quiz_msg
`colcon build --packages-select actions_quiz actions_quiz_msg
[0.953s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/topics_quiz’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.953s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/topic_subscriber_pkg’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.953s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/services_quiz’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.953s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/services_quiz_srv’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.953s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/my_package’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.953s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/my_components’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.953s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/my_action_server’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.953s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/my_action_client’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.953s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/movement_pkg’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.953s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/logs_test’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/exercise52_pkg’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/executors_exercises_pkg’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/custom_interfaces’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/client_pkg’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/actions_quiz’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/ros2_ws/install/actions_quiz_msg’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/topics_quiz’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/topic_subscriber_pkg’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/services_quiz’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/services_quiz_srv’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/my_package’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/my_components’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/my_action_server’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.954s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/my_action_client’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.955s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/movement_pkg’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.955s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/logs_test’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.955s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/exercise52_pkg’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.955s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/executors_exercises_pkg’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.955s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/custom_interfaces’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.955s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/client_pkg’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.955s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/actions_quiz’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[0.955s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/ros2_ws/install/actions_quiz_msg’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
Starting >>> actions_quiz_msg
Finished <<< actions_quiz_msg [17.2s]
Starting >>> actions_quiz
Finished <<< actions_quiz [25.7s]
Summary: 2 packages finished [43.6s]`
I removed log, install, and build directories and rebuilt. This is the response, everything seems fine
Strange. We state the used and remaining attempts every time you submit. Also, the grader mentions that disputes should be “filed” on the 2nd or 3rd attempt. Wasn’t this so?
Another strange thing was that the attempts seemed to be in quick succession, suggesting that no refactoring was made after each attempt.
It should work in the grader, then. Perhaps something has changed since the last time you submitted,
Please submit again and let’s see.
I thought the issue was in my own code—maybe in the Makefile, the package, or the launch file. They were all quite close together because I tried following what the bot was suggesting, like checking the packages with ros2 pkg list
, and they were there , another things that i’ve done is rebuilt and sourced the workspace again,actually, I did that twice, and double-checked all the files. I really didn’t realize I was supposed to build only those two specific packages, otherwise I would’ve understood there was an external package involved. Since I didn’t know there was a maximum number of attempts, I didn’t worry too much about it. But thanks anyway for explaining it to me!
I’ve just submit everything for the action as well, and I didn’t run into the same issue. Thanks a lot for the support!
Thank you for your understanding and explanations.
We should probably clarify the “external dependency” bit in the notebooks. Thanks for the feedback.
We could add more attempts for you, but viewing the solution was the show-stopper. That said, if you wish to obtain the certificate for the course and successfully present the Real Robot Project, we will allow you to attempt the quiz (just for fun).
PS: None of the quizzes are required for the certificates, but they are useful for checking your knowledge, fun, and preparing you for the project.
If it’s possible and doesn’t cause too many problems, that would be perfect, thank you!
I didn’t get the it
in question here . Do you mean allowing you to re-attempt the quiz? If so, we look forward to reviewing your Real Robot Project. After that, reply on this thread or point us to it elsewhere, and we’ll be game.
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.