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

mavtestgen.py is broken #834

Open
rotu opened this issue Jul 5, 2023 · 1 comment
Open

mavtestgen.py is broken #834

rotu opened this issue Jul 5, 2023 · 1 comment

Comments

@rotu
Copy link
Contributor

rotu commented Jul 5, 2023

Trying to import mavtestgen crashes with an ImportError because of a bad relative import.

Further it has no test coverage and has seemingly been broken since at least as far back as a3c2bdb

@shancock884
Copy link
Contributor

I think the import can be fixed by changing from . import mavparse to from .generator import mavparse.

But then it shows up another error...

$ python -m pymavlink.mavtestgen something.xml
AttributeError: module 'pymavlink.generator.mavparse' has no attribute 'parse_mavlink_xml'

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