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

Where is pymavlink.tools.mavgen? #969

Open
tribbloid opened this issue Aug 19, 2024 · 0 comments
Open

Where is pymavlink.tools.mavgen? #969

tribbloid opened this issue Aug 19, 2024 · 0 comments

Comments

@tribbloid
Copy link

After upgrading pymavlink to the latest, the script invocation to generate message definition:


dialects=("CS")

for i in "${dialects[@]}"; do
  python -m pymavlink.generator.mavgen --lang="$i" --wire-protocol=2.0 ...

triggered the following warning:

Traceback (most recent call last):
  File "/home/shared/conda/envs/swarm/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/shared/conda/envs/swarm/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/shared/conda/envs/swarm/lib/python3.10/site-packages/pymavlink/generator/mavgen.py", line 370, in <module>
    raise DeprecationWarning("Executable was moved to pymavlink.tools.mavgen")
DeprecationWarning: Executable was moved to pymavlink.tools.mavgen

But the new file pymavlink.tools.mavgen can't be found anywhere, when I try to invoke it instead, I got the following error:

  python -m pymavlink.tools.mavgen --lang="$i" --wire-protocol=2.0 ...

 Error while finding module specification for 'pymavlink.tools.mavgen' (ModuleNotFoundError: No module named 'pymavlink.tools')

How can I install this module? Is it published in PyPI or conda?

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

1 participant