Skip to content
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

Odd traceback error when a variable is not defined #2933

Open
gonzalalGFM opened this issue Jan 13, 2025 · 1 comment
Open

Odd traceback error when a variable is not defined #2933

gonzalalGFM opened this issue Jan 13, 2025 · 1 comment

Comments

@gonzalalGFM
Copy link

Morning!
We're using the rescue people example and my students are encoutering a kind of odd behaviour in the tracebacks. For instace, if at some point in the code you are using a variable that is not already assigned, instead of launching the common error in python:
line X: Undefined variable 'var' (undefined-variable)
It throughs this kind of error:
line 7: Module 'cv2' has no 'CascadeClassifier' member (no-member)
line 52: Module 'cv2' has no 'cvtColor' member (no-member)
line 52: Module 'cv2' has no 'COLOR_BGR2GRAY' member (no-member)
line 58: Module 'cv2' has no 'rectangle' member (no-member)
Leading to check the import of the libraries when the actual error is not indicated.

@JdeRobot JdeRobot deleted a comment from YashShukla925 Jan 31, 2025
@javizqh
Copy link
Collaborator

javizqh commented Jan 31, 2025

We are aware of this problem, but we have not been able to solve it because the traceback is being generated by Ros. The only solution currently is to read properly the error traceback and find the real error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants