Closed AYellowDart closed 4 years ago
You have a device that includes a manufacturer id (213) that I haven't seen before, in docs or FIT files. It could be for any device: watch, sensor, etc. Do you know which device it is? Can you share the FIT file that failed with me so I can debug it?
Here's a link to the existing manufacture definitions: https://github.com/tcgoetz/Fit/blob/6d104df61540931a1f5e88f6f0684cc15c8199a2/field_enums.py#L174
I'd be happy to share the file if I could find which one has new manufacturer ID. Any suggestions on how to narrow it down? I don't have any guess as what could be the errant device.
what do the last couple of lines in garmin.log say?
The last 20 or so lines are all similar to this but with different FIT files.
ERROR:root:Exception in _write_running_entry from /Users/wheath/HealthData/FitFiles/Activities/1654927128.fit: 'Cadence' object has no attribute 'to_f'
Here's the FIT file in TXT so I could upload it
The JSONs of those files all appear to have null as the manufacturer
Looks like all these activities were tracked on my "vívoactive HR" by Garmin
1654927128 parses fine for me and I don't see any manufacturer ids other than garmin.
Can you post the log file? What code version are you running?
ERROR:root:Exception in _write_running_entry from /Users/wheath/HealthData/FitFiles/Activities/1654927128.fit: 'Cadence' object has no attribute 'to_f'
commit c0801bd fixes this issue
Hi.!
i have the same issue with other manufacturer code
(builtins.LookupError) "164" is not among the defined enum values [SQL: UPDATE devices SET serial_number=?, timestamp=?, manufacturer=?, product=? WHERE devices.serial_number = ?] [parameters: [{'product': 'UnknownProduct_0', 'manufacturer': 164, 'serial_number': '3923282663000003', 'timestamp': datetime.datetime(2017, 2, 27, 16, 19, 47), 'devices_serial_number': 3923282663000003}]]
witch info do you need for debugging?
Hi.!
i have the same issue with other manufacturer code
(builtins.LookupError) "164" is not among the defined enum values [SQL: UPDATE devices SET serial_number=?, timestamp=?, manufacturer=?, product=? WHERE devices.serial_number = ?] [parameters: [{'product': 'UnknownProduct_0', 'manufacturer': 164, 'serial_number': '3923282663000003', 'timestamp': datetime.datetime(2017, 2, 27, 16, 19, 47), 'devices_serial_number': 3923282663000003}]]
witch info do you need for debugging?
Hi can you open a new issue for this? Can you share file that produced this error? Also what device is this?
Happens when trying to build the database for the first time: