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

[BUG]Most data not converted to tcx files #28

Closed
powerriegel opened this issue Sep 19, 2020 · 3 comments
Closed

[BUG]Most data not converted to tcx files #28

powerriegel opened this issue Sep 19, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@powerriegel
Copy link

powerriegel commented Sep 19, 2020

Describe the bug
I gat very less tcy files from by collected Huawei data. There are hundreds of json files but only a few tcx files. I filtered out 2020 and tthere are many tracks missing for sure.

Logs
2020-09-19 12:27:34,500 - DEBUG - generate_xml - Generating TCX XML data for activity HiTrack_20200104_155538 2020-09-19 12:27:34,500 - INFO - _calc_pool_swim_data - Calculating swim data for activity HiTrack_20200104_155538 2020-09-19 12:27:34,500 - ERROR - generate_xml - Error generating TCX XML content for activity <HiTrack_20200104_155538> 'NoneType' object is not iterable Traceback (most recent call last): File "Hitrava.py", line 1466, in generate_xml self._generate_swim_xml_data(el_activity) File "Hitrava.py", line 1594, in _generate_swim_xml_data for n, lap in enumerate(self.hi_activity.get_swim_data()): File "Hitrava.py", line 786, in get_swim_data return self._calc_pool_swim_data() File "Hitrava.py", line 823, in _calc_pool_swim_data for n, segment in enumerate(self._segment_list): TypeError: 'NoneType' object is not iterable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "Hitrava.py", line 2009, in <module> main() File "Hitrava.py", line 2004, in main tcx_activity.save() File "Hitrava.py", line 1662, in save self.generate_xml() File "Hitrava.py", line 1517, in generate_xml raise Exception('Error generating TCX XML content for activity <%s>\n%s', self.hi_activity.activity_id, e) Exception: ('Error generating TCX XML content for activity <%s>\n%s', 'HiTrack_20200104_155538', TypeError("'NoneType' object is not iterable")) 2020-09-19 12:27:34,539 - DEBUG - _close_json - JSON file <2020/Motion path detail data & description/motion path detail data.json> closed

Files
If applicable, add relevant input and output files (by dragging them here).
For JSON conversions, you can use the --json_export command line argument. This will generate a separate .json file with the original Huawei HiTrack data for each activity that you can add here.

Note: be aware that your fitness activity files (may) contain personal data. We will notify that you can remove the attached files from your report as soon as we have downloaded them. We will ONLY use the files for debugging purposes.

Screenshots
If applicable, add screenshots to help explain your problem.
HiTravat

Additional context
Im mostly interested in my bicycle tracks. Bought a race bike this year and from february to may, I used my Huawei Band 2 to track my rides. But I get only twoi tcx files. There should be dozens of files.

@CTHRU CTHRU self-assigned this Sep 19, 2020
@CTHRU CTHRU added the bug Something isn't working label Sep 19, 2020
@CTHRU
Copy link
Owner

CTHRU commented Sep 19, 2020

It looks like the data for the swim activity of Jan 4th, 2020 (HiTrack_20200104_155538) didn't get parsed in a correct manner and when trying to convert, there is no data. You could help me by (temporarily) sharing the json export of that activity so I can check what's going on.

@powerriegel
Copy link
Author

powerriegel commented Sep 19, 2020

[Link removed] Please delete the file as soon as you downloaded it. P.S. the same behavior for 2019. Is it possible, that any "swim" activity leads to problems?

@CTHRU
Copy link
Owner

CTHRU commented Sep 19, 2020

Yes, I'll check what's going wrong. If you're in a hurry, you can try to use the Hitrava Web App and deselect the swimming activities for now.

@CTHRU CTHRU closed this as completed in 135164e Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants