-
Notifications
You must be signed in to change notification settings - Fork 140
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
Mac binary 1.2.4 error when processing Tcx? #45
Comments
You have an activity in a Tcx file that has altitude entries, but the entries are empty. That isn't something I expected. Making a fix. |
Try: https://github.com/tcgoetz/GarminDB/releases/tag/v1.2.5 If you get an error again, please post the new error. |
Hi, thanks for looking into this. I'm using Mac v1.2.5 binary now, but still got the same error:
Btw, I also tried to build using ubuntu 18.04 using commit 8d94016 via ssh git clone. After successful
|
Please update your ubuntu tree and try again. You should see commit |
Now I got this:
Perhaps there's something wrong with my data in Connect? Now it's lap time? |
Tcx files are not usually from Garmin Connect itself. All of the times GC gave me Tcx files was for activities I imported from somewhere else. Tcx files have a lot of variations. Your showing me examples of things I haven't seen before. I'll keep fixing them and hopefully we will have all of your cases covered shortly. |
Next round of fixes: a6ff1bc. Do a |
Hi. Still got another error. I noticed from Connect dashboard that the TCXs processed below doesn't have HR data and the "Elapsed Time" is 0:00.
Thanks |
Couple more fixes. Please try again. |
Now I got this:
I guess the tcx part is fixed now. |
Any chance you could share with me one or more of these files? Then I could fix all of the issue instead of one at a time.
|
commit e5cf943 fixes the stacktrace above. |
Are you still having issues? |
Hi, sorry for the late response. I still got this and I'll send you sample of tcx. 100% (188 of 188) |##############################################################| Elapsed Time: 0:00:04 Time: 0:00:04
Processing activities detail data
100% (188 of 188) |##############################################################| Elapsed Time: 0:00:03 Time: 0:00:03
Processing activities extra data
Processing FileType.activity FIT data from /home/koding/HealthData/FitFiles/Activities
N/A% (0 of 116) | | Elapsed Time: 0:00:00 ETA: --:--:--Traceback (most recent call last):
File "garmin.py", line 387, in <module>
main(sys.argv[1:])
File "garmin.py", line 377, in main
import_data(debug, latest, weight, monitoring, sleep, rhr, activities, test)
File "garmin.py", line 218, in import_data
gfd.process_files(db_params_dict)
File "/home/koding/GarminDB/fit_data.py", line 54, in process_files
fp.write_file(fit_file)
File "/home/koding/GarminDB/fit_file_processor.py", line 83, in write_file
self.__write_message_types(fit_file, fit_file.message_types())
File "/home/koding/GarminDB/fit_file_processor.py", line 71, in __write_message_types
self.__write_message_type(fit_file, message_type)
File "/home/koding/GarminDB/fit_file_processor.py", line 57, in __write_message_type
function(fit_file, message_type, messages)
File "/home/koding/GarminDB/fit_file_processor.py", line 46, in __write_generic
function(fit_file, message_dict)
File "/home/koding/GarminDB/fit_file_processor.py", line 297, in _write_session_entry
activity.update(self.__choose_sport(current.sport, current.sub_sport, sport, sub_sport))
File "/home/koding/GarminDB/fit_file_processor.py", line 261, in __choose_sport
return {'sport' : sport.name, 'sub_sport' : sub_sport.name}
AttributeError: 'NoneType' object has no attribute 'name'
100% (116 of 116) |##############################################################| Elapsed Time: 0:00:04 Time: 0:00:04
Command exited with non-zero status 1
/usr/bin/time
Makefile:116: recipe for target 'garmin' failed
make: *** [garmin] Error 1 |
Here's a sample of tcx. Thanks.
Pada tanggal Min, 19 Jan 2020 pukul 15.12 Tom Goetz <
notifications@github.com> menulis:
… Are you still having issues?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#45?email_source=notifications&email_token=AAHUSSXE4ANWEMSCEMAUXZLQ6QDN7A5CNFSM4KCZSVVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKLXEY#issuecomment-575978387>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHUSSVUT2ZCJZWXKK7WTMLQ6QDN7ANCNFSM4KCZSVVA>
.
|
The above commits should resolve this error:
|
Yes, it worked! Thank you so much. |
I got this message after initial creating database from Connect:
Tried different timeframe (changed the start date) on config but it also failed at 14%.
The text was updated successfully, but these errors were encountered: