Skip to content

Building from Source - Fails on importing fitfile module #258

@delize

Description

@delize

Describe the bug
Unable to make setup from source

To Reproduce
Steps to reproduce the behavior:

  1. Clone Github Repo
  2. Run make setup
  3. Receive Error

Expected behavior
Expected to have make setup complete successfully.

Logs

~/Documents/github/GarminDB master
$ make setup                                                                                                [10:31:53]
$PROJECT_BASE is [/Users/username/Documents/github/GarminDB]
$PLATFORM is [Darwin]
$SHELL is [/bin/sh]
$PIP_PATH is [/opt/homebrew/bin/pip3]
python3 -m venv --upgrade-deps /Users/username/Documents/github/GarminDB/.venv
git submodule init
Submodule 'Fit' (https://github.com/tcgoetz/Fit.git) registered for path 'Fit'
Submodule 'Plugins' (https://github.com/tcgoetz/GarminDbPlugins.git) registered for path 'Plugins'
Submodule 'Tcx' (https://github.com/tcgoetz/Tcx.git) registered for path 'Tcx'
Submodule 'utilities' (https://github.com/tcgoetz/utilities.git) registered for path 'utilities'
git submodule update
Cloning into '/Users/username/Documents/github/GarminDB/Fit'...
Cloning into '/Users/username/Documents/github/GarminDB/Plugins'...
Cloning into '/Users/username/Documents/github/GarminDB/Tcx'...
Cloning into '/Users/username/Documents/github/GarminDB/utilities'...
Submodule path 'Fit': checked out '306ad50288a1ead8dec9502708560d410ac69306'
Submodule path 'Plugins': checked out '82bd3faba1de9bbd9eb7e2bf82687b62d7458c7a'
Submodule path 'Tcx': checked out '277b2748d01df47e3d696e876c8a0947997e6162'
Submodule path 'utilities': checked out '5ce3f712f34818cddf5327cd827a480989ff6940'
python -c 'import sys; import garmindb.version; garmindb.version.python_dev_version_check(sys.argv[0])'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import sys; import garmindb.version; garmindb.version.python_dev_version_check(sys.argv[0])
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/username/Documents/github/GarminDB/garmindb/__init__.py", line 15, in <module>
    from .activity_fit_file_processor import ActivityFitFileProcessor
  File "/Users/username/Documents/github/GarminDB/garmindb/activity_fit_file_processor.py", line 10, in <module>
    import fitfile
ModuleNotFoundError: No module named 'fitfile'
make: *** [version_check] Error 1

Additional context

$ python --version                                                                                          [10:32:02]
Python 3.13.1

$ command -v python                                                                                         [10:34:25]
/opt/homebrew/opt/python@3/libexec/bin/python

$ system_profiler SPSoftwareDataType                                                                        [10:37:23]
Software:

    System Software Overview:

      System Version: macOS 15.2 (24C101)
      Kernel Version: Darwin 24.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions