Skip to content

TypeError basestring type cannot be instantiated #65

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
sanderroosendaal opened this issue Apr 23, 2018 · 2 comments
Closed

TypeError basestring type cannot be instantiated #65

sanderroosendaal opened this issue Apr 23, 2018 · 2 comments

Comments

@sanderroosendaal
Copy link

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_raw_values_from_data_message(self, def_mesg)
244 is_byte = base_type.name == 'byte'
245 # Struct to read n base types (field def size / base type size)
--> 246 struct_fmt = str(int(field_def.size / base_type.size)) + base_type.fmt
247
248 # Extract the raw value, ask for a tuple if it's a byte type

TypeError: The basestring type cannot be instantiated

davidfit.zip

@sanderroosendaal
Copy link
Author

My last successful build was 12 days ago

@xmedeko
Copy link
Contributor

xmedeko commented Apr 25, 2018

Closing as duplicate to #64, fixed by #66, too.

@xmedeko xmedeko closed this as completed Apr 25, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants