ArduPilot / ArduPilot/MAVProxy
mavplayback.py issue for binary file
- Dominant language
- Python
- Stars
- 595
- Forks
- 773
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 18
Description
When I run:
mavplayback.py 252.BIN
I receive this error:
Traceback (most recent call last):
File "/usr/local/bin/mavplayback.py", line 4, in
**import**('pkg_resources').run_script('pymavlink==1.1.53', 'mavplayback.py')
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-8.2.1-py2.7.egg/pkg_resources.py", line 646, in run_script
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-8.2.1-py2.7.egg/pkg_resources.py", line 1567, in run_script
File "/usr/local/lib/python2.7/site-packages/pymavlink-1.1.53-py2.7-macosx-10.10-x86_64.egg/EGG-INFO/scripts/mavplayback.py", line 246, in
app=App(filename)
File "/usr/local/lib/python2.7/site-packages/pymavlink-1.1.53-py2.7-macosx-10.10-x86_64.egg/EGG-INFO/scripts/mavplayback.py", line 97, in **init**
self.next_message()
File "/usr/local/lib/python2.7/site-packages/pymavlink-1.1.53-py2.7-macosx-10.10-x86_64.egg/EGG-INFO/scripts/mavplayback.py", line 189, in next_message
pos = float(self.mlog.f.tell()) / self.filesize
AttributeError: 'DFReader_binary' object has no attribute 'f'
The BIN file is off the Arduplane software stack running on a PX4.
Thanks, Chris
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with mavplayback.py, especially App.__init__ and next_message, using the reported DFReader_binary traceback as the entry point. Check how binary 252.BIN logs are opened and how progress uses self.mlog.f. Done means mavplayback.py can process the supplied binary log without the AttributeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100