dtcooper/python-fitparse — Issue #1: Can't parse FIT file when ride on in-door bike trainer
Author: key
Created: 2011-11-03 15:25:07+00:00
State: open

Hi,

I rode bike on indoor trainer using Garmin Edge800.
python-fitparse can't parse this file.

Traceback (most recent call last):
File "test.py", line 13, in
activity.parse()
File "/Users/mitsukuni/tmp/python-fitparse/fitparse/activity.py", line 29, in parse
return_value = super(Activity, self).parse(*args, **kwargs)
File "/Users/mitsukuni/tmp/python-fitparse/fitparse/base.py", line 82, in parse
self._parse_file_header()
File "/Users/mitsukuni/tmp/python-fitparse/fitparse/base.py", line 288, in _parse_file_header
throw_exception("Invalid header size")
File "/Users/mitsukuni/tmp/python-fitparse/fitparse/base.py", line 278, in throw_exception
raise FitParseError("Bad .FIT file header: %s" % error)
fitparse.exceptions.FitParseError: Bad .FIT file header: Invalid header size