Code Monkey home page Code Monkey logo

fit-to-tcx's People

Contributors

cleinias avatar dlenski avatar mkauf avatar reggna avatar tigge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fit-to-tcx's Issues

No module named fitparse

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

Stopped time is included in lap time

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:

  1. Start a lap
  2. Stop the timer (without ending the lap)
  3. Wait some time
  4. Start the timer again
  5. Record a lap
  6. Finish workout, save, copy the FIT file and convert it

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.

pkg_resources.DistributionNotFound: fit-to-tcx==0.1

fittotcx

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

ImportError: cannot import name Activity

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

Intervals fails

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

importlib.metadata.PackageNotFoundError: No package metadata was found for fit-to-tcx

(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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.