Running a script that converts data.

When you are reading a script that converts data. How do you know which argument that needs a value and which ones you can ignore.

For example this python script mavlogdump.py

https://github.com/ArduPilot/pymavlink/blob/master/tools/mavlogdump.py

I have tried using this script command to try and run it. However, it gives me an error of NameError: name 'long' is not defined.

The script is this: https://github.com/ArduPilot/pymavlink/blob/master/tools/mavlogdump.py

This script takes flight data and converts it to a csv file. I have tried using this command on it

python mavlogdump.py flightdata.bin -f --format "csv"

Posted Oct 22, 2016, 7:11 PM UTC

23
gregvuki•

You could google the error yourself.

If the module uses long then it's written for python 2 and you probably use python 3.

1
IsitwhenipeeOP•

I have both installed, how would you specify which python to run the script on?

1
gregvuki•

Provide full path to the python binary, e.g. on Windows it could be:

C:\Python27\python.exe mavlogdump.py
1