-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FitParseError invalid field size 227 for type 'sint32' #64
Comments
My last successful build was 12 days ago |
I've tried |
Here is some example code that gives the error (Python 2.7): from fitparse import FitFile
f = '../testdata/3x250m.fit'
fitfile = FitFile(f,check_crc=False)
fitfile.parse() When I git checkout 5d8bb3a everything is fine. |
What exact version returns |
On my local system: Python 2.7.12 :: Anaconda 4.2.0 (64-bit) |
Got the error on a different machine with Python 2.7.12 (do not understand, why my installation of 2.7.12 works): The error is caused by the |
Sure, remove the shim.
As a sidenote, In the future I would prefer it if commits could go into a
PR before they hit master.
…On 24 April 2018 at 15:19, Ondrej Medek ***@***.***> wrote:
Got the error on a different machine with Python 2.7.12 (do not
understand, why my installation of 2.7.12 works): TypeError: The
basestring type cannot be instantiated. Probably duplicate of #65
<#65>
The error is caused by the str shim, already discussed in #58
<#58>. @pR0Ps
<https://github.com/pR0Ps> I will remove the shim from master, OK?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#64 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAcf_YoX8YaURzYZAlFJsw70Kv3C0HJkks5tr3rAgaJpZM4TfZdZ>
.
|
I've made a PR to fix this. Also, travis builds would make the contributing to this project much easier, see #40. |
After upgrading fitparse to the latest (master branch), one of my standard test files fails to parse. This is a file produced by a NK SpeedCoach GPS 2 device. The file parses well on SportTracks, Strava, etc.
C:\Users\e408191\AppData\Local\Continuum\Anaconda2\lib\site-packages\fitparse\base.pyc in _parse_definition_message(self, header)
196 # examples in the wild. For now, just throw an exception
197 raise FitParseError("Invalid field size %d for type '%s' (expected a multiple of %d)" % (
--> 198 field_size, base_type.name, base_type.size))
199
200 # If the field has components that are accumulators
FitParseError: Invalid field size 227 for type 'sint32' (expected a multiple of 4)
3x250m.zip
The text was updated successfully, but these errors were encountered: