Open rodizio1 opened 6 years ago
On Mon, 8 Jan 2018, Rodizio wrote:
I've gone through python dependency hell and back now, tried all kinds of stuff, compiling from source, using pip packages, getting all kinds of strange error messages like File "/usr/src/mavlink/pymavlink/generator/mavgen.py", line 211, in
raise DeprecationWarning("Executable was moved to pymavlink.tools.mavgen") or File ./mavgen.py", line 18, in from . import mavparse ValueError: Attempted relative import in non-package
Coincidentally I may have merged a fix for that this-arvo.
Now after hours of tinkering I don't even get any output from mavgen.py or other commands like python -m pymavlink.generator.mavgen --lang=wlua mymavlink.xml -o mymavlink.lua anymore.
Does a clean tree work for you?
Apart from that, I'm totally confused by the documentation. Can you guys please, please put a ready-to-use wireshark dissector script somewhere? All I want to do is look at some wireshark traces with mavlink packets in them, not become a Python expert.
Sorry, I've never used the lua stuff. I believe there's a good mavlink inspector in one of the GCS - qgroundcontrol?
Yours, -- Peter Barker | Programmer,Sysadmin,Geek. pbarker@barker.dropbear.id.au | You need a bigger hammer. :: It's a hack! Expect underscores! - Nigel Williams
The instructions in the file were outdated: they are now correct. Can you retry?
getting this error when running according to the directions: /usr/bin/python: No module named tools
Why not just have the lua script available in the git repository to download? Does it really need to be generated each time?
can you please test https://github.com/ArduPilot/pymavlink/pull/498
I've gone through python dependency hell and back now, tried all kinds of stuff, compiling from source, using pip packages, debian packages, tried starting all-over in a fresh vm, getting all kinds of strange error messages like
File "/usr/src/mavlink/pymavlink/generator/mavgen.py", line 211, in <module> raise DeprecationWarning("Executable was moved to pymavlink.tools.mavgen")
orFile ./mavgen.py", line 18, in <module> from . import mavparse ValueError: Attempted relative import in non-package
Now after hours of tinkering I don't even get any output from mavgen.py or other commands like
python -m pymavlink.generator.mavgen --lang=wlua mymavlink.xml -o mymavlink.lua
anymore.Apart from that, I'm totally confused by the documentation. Can you guys please, please put a ready-to-use wireshark dissector script somewhere? All I want to do is look at some wireshark traces with mavlink packets in them, not become a Python expert.