Skip to content
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

Assertionerror #20

Open
Nielssss99 opened this issue Nov 11, 2021 · 3 comments
Open

Assertionerror #20

Nielssss99 opened this issue Nov 11, 2021 · 3 comments

Comments

@Nielssss99
Copy link

Nielssss99 commented Nov 11, 2021

Hey

During the use of the fitdecode module I encountered the following AssertionError:

Traceback (most recent call last):
File "C:\Users\niels\OneDrive\Documenten\Metec\Metec_python\unpack_fit_niels.py", line 35, in
for frame in fit_file:
File "C:\Python\Python39\lib\site-packages\fitdecode\reader.py", line 232, in iter
yield from self._read_next()
File "C:\Python\Python39\lib\site-packages\fitdecode\reader.py", line 369, in _read_next
assert self._chunk_size <= self._body_bytes_left
AssertionError

The _chunk_size is 14 and _body_bytes_left is 12.

What's happening here and what's the best way to solve the problem? Ignoring the AssertionError seems to work, but I am not completely sure whether this is desirable at all.

Niels

@polyvertex
Copy link
Owner

Thanks for reporting this!

Would you mind providing the .FIT file (here or PM)? It could help.

@Nielssss99
Copy link
Author

Github seems not to support .fit files, can I mail them to you?

@Nielssss99 Nielssss99 reopened this Nov 18, 2021
@HaleTom
Copy link

HaleTom commented Jul 4, 2023

@Nielssss99 what about you upload to your google drive and share from there?

Or https://www.sendgb.com/ (90 days storage)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants