Skip to content

behaviour bug, need better error message #681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JanNiklasFeld opened this issue Mar 15, 2025 · 0 comments
Open

behaviour bug, need better error message #681

JanNiklasFeld opened this issue Mar 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@JanNiklasFeld
Copy link
Member

JanNiklasFeld commented Mar 15, 2025

[taskset-35] Traceback (most recent call last):
[taskset-35]   File "/home/bitbots/colcon_ws/install/bitbots_body_behavior/lib/bitbots_body_behavior/body_behavior", line 33, in <module>
[taskset-35]     sys.exit(load_entry_point('bitbots-body-behavior', 'console_scripts', 'body_behavior')())
[taskset-35]   File "/home/bitbots/colcon_ws/build/bitbots_body_behavior/bitbots_body_behavior/body_behavior.py", line 98, in main
[taskset-35]     body_dsd = BodyDSD(node)
[taskset-35]   File "<@beartype(bitbots_body_behavior.body_behavior.BodyDSD.__init__) at 0x7f1d8c38d6c0>", line 32, in __init__
[taskset-35]   File "/home/bitbots/colcon_ws/build/bitbots_body_behavior/bitbots_body_behavior/body_behavior.py", line 27, in __init__
[taskset-35]     blackboard = BodyBlackboard(node, self.tf_buffer)
[taskset-35]   File "<@beartype(bitbots_blackboard.body_blackboard.BodyBlackboard.__init__) at 0x7f1d8c38d120>", line 51, in __init__
[taskset-35]   File "/home/bitbots/colcon_ws/install/bitbots_blackboard/lib/python3.10/site-packages/bitbots_blackboard/body_blackboard.py", line 29, in __init__
[taskset-35]     self.misc = MiscCapsule(self.node, self)
[taskset-35]   File "/home/bitbots/colcon_ws/install/bitbots_blackboard/lib/python3.10/site-packages/bitbots_blackboard/capsules/misc_capsule.py", line 33, in __init__
[taskset-35]     self.position_number: int = gamestate_settings["position_number"]
[taskset-35]   File "/home/bitbots/.local/lib/python3.10/site-packages/beartype/door/_func/doorcheck.py", line 137, in die_if_unbearable
[taskset-35]     func_raiser(obj)  # pyright: ignore
[taskset-35]   File "<@beartype(__beartype_checker_3) at 0x5ce45f820ec0>", line 19, in __beartype_checker_3
[taskset-35] beartype.roar.BeartypeDoorHintViolation: Callable bitbots_blackboard.capsules.misc_capsule.MiscCapsule.__init__() local variable "self" value "None" violates type hint <class 'int'>, as <class "builtins.NoneType"> "None" not instance of int.

This is raised because the robot was not configured in building. We should catch and raise this error better, to allow fixes.

@JanNiklasFeld JanNiklasFeld added the bug Something isn't working label Mar 15, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in Software Mar 15, 2025
@JanNiklasFeld JanNiklasFeld changed the title behaviour bug behaviour bug, need better error message Mar 15, 2025
@jaagut jaagut moved this from 🆕 New to 🔖 Ready in Software Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🔖 Ready
Development

No branches or pull requests

1 participant