Skip to content

TypeError basestring type cannot be instantiated #65

Closed

Description

@sanderroosendaal

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

Activity

  1. sanderroosendaal commented on Apr 23, 2018

    @sanderroosendaal
    Author

    My last successful build was 12 days ago

  2. xmedeko commented on Apr 25, 2018

    @xmedeko
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions