tigge / fit-to-tcx Goto Github PK
View Code? Open in Web Editor NEWConverts Flexible and Interoperable Data Transfer (FIT) files to Training Center XML (TCX) files
License: MIT License
Converts Flexible and Interoperable Data Transfer (FIT) files to Training Center XML (TCX) files
License: MIT License
Is the fitparse module something you would provide but not committed?
Traceback (most recent call last):
File "fittotcx.py", line 27, in
from fitparse import Activity
ImportError: No module named fitparse
andreas
When I convert a FIT file which contains laps with breaks in them, the breaks are included in the lap time in the TCX file.
Scenario:
Current result:
The lap written to the TCX file contains both the "active" lap time, and the time spent between steps 2-4.
Expected result:
The lap in the TCX file contains only the "active" lap time.
Traceback (most recent call last):
File "/usr/bin/fittotcx", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2876, in
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 449, in _build_master
ws.require(requires)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 745, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: fit-to-tcx==0.1
I am late to the party, but I am hoping there is still some support around. I'm on Ubuntu 17.04 running python 2.7.13 and am receiving the following error when I try to run fittotcx:
File "/usr/local/bin/fittotcx", line 11, in
load_entry_point('fit-to-tcx==0.1', 'console_scripts', 'fittotcx')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2631, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2291, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2297, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "build/bdist.linux-x86_64/egg/fittotcx/program.py", line 34, in
ImportError: cannot import name Activity
Works well with "normal" workouts, but when trying to convert interval-workouts, recorded with the Forerunner 610, I get the following:
Traceback (most recent call last):
File "/usr/local/bin/fittotcx.py", line 246, in
sys.exit(main())
File "/usr/local/bin/fittotcx.py", line 237, in main
document = convert(sys.argv[1])
File "/usr/local/bin/fittotcx.py", line 219, in convert
add_activity(element, activity)
File "/usr/local/bin/fittotcx.py", line 208, in add_activity
add_lap(actelem, activity, lap)
File "/usr/local/bin/fittotcx.py", line 163, in add_lap
triggermet = LAP_TRIGGER_MAP[lap.get_data("lap_trigger")]
KeyError: 9
Sample workout available here: https://www.dropbox.com/s/hf9qj3zx1n6drlv/2015-08-06_21-51-28_4_348.fit?dl=0
Any ideas?
Kind regards,
Kristian
I downloaded Fit to TCX does not seem to extract cadence from bicycle cadence sensor.
(Kubuntu) Ubuntu 22.04.2 LTS
Unable to get fittotcx parse fit files
After some initial trouble with poetry (never used it before, so not sure if I used it properly) I run python3 -m fittotcx.program
and get following error:
fittotcx is never added to the path so the README information about just running fittotcx
does not work, neither does the shell script.
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/<redacted>/files/40-49-repositories/41-products/FIT-to-TCX/fittotcx/program.py", line 307, in <module>
sys.exit(main())
File "/home/<redacted>/files/40-49-repositories/41-products/FIT-to-TCX/fittotcx/program.py", line 298, in main
document = convert(args.file)
File "/home/<redacted>/files/40-49-repositories/41-products/FIT-to-TCX/fittotcx/program.py", line 277, in convert
add_author(document)
File "/home/<redacted>/files/40-49-repositories/41-products/FIT-to-TCX/fittotcx/program.py", line 154, in add_author
[version_major, version_minor] = importlib_metadata.version("fit-to-tcx").split(".")
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 984, in version
return distribution(distribution_name).version
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 957, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 548, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for fit-to-tcx
Some metadata missing
I have searched for this issue and it seems that it is some kind of build metadata that is not properly set. Any hints which metadata needs to be added where is appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.