Proper access to dependencies to read .BIN files with Python scripts

I’m not sure where the best place to post this might be. I’d welcome suggestions to help get it to the right person’s attention.

In my last post here I announced having written python scripts that report on data from .BIN files.

I have three of these scripts so far - and plan to write many more.

I’ve put these up on GitHub - in case anyone would like to review and or add too my code base.

If you look at my README.md file, I describe some very particular requirements for running these scripts. For example, Python Version 3.13 doesn’t work. I use Python 3.11 - which does work. I never tested Python 3.12.

There’s another issue with access to pymavlink_src. Here’s what I have in the README:

It took a fair amount of research to get to uncover this - and there’s quite possibly better ways to accomplish what I’ve done.

I would appreciate it anyone who’s knowledgeable about this area to take a look at my README.md and point out any mistakes or misconceptions I may have.

Thanks!

and there’s quite possibly better ways to accomplish what I’ve done.

Yes, there is. DFReader is included in the pymavlink package, so you’ll need to change your code to the following:

from pymavlink import DFReader

reader = DFReader.DFReader_binary(filepath)

Works fine under Python 3.13. Version issues experienced above are likely down to package or virtual environment mismanagement. Claims of incompatibility are misinformation.

Thank you @stephendade and @Yuri_Rage -

With your direction, I was able to resolve my issues. All were caused by mistakes on my side. I probably should have reached out for help sooner, but I couldn’t resist trying to fix the problems myself.

I’ll send the corrections up to GitHub - and post another comment when that’s done. If you have time to look over my shoulder at it again, I’d greatly appreciate it.

Thanks.