-
Notifications
You must be signed in to change notification settings - Fork 228
Description
When I try to run garmindb_cli.py it stops before processing any data with the ValueError: duplicate parameter name: 'timestamp_gmt'
To Reproduce
Steps to reproduce the behavior:
On Mac Os Sequoia 15.7.1, in iTerm2 Build 3.6.5:
- Update garmindb_cli.py using pip install --upgrade garmindb, which is successful
- Attempt to update the database using garmindb_cli.py --all --download --import --analyze --latest
- A long traceback is shown (pasted below), ending in the line ValueError: duplicate parameter name: 'timestamp_gmt'
- If I run garmindb_cli.py --rebuild_db I get the same error, preceded by a similar Traceback.
Expected behavior
I've run this a few times a year over the last few years to download my Garmin data, and on all previous occasions (most recently 26 March 2025) it has downloaded the data successfully without any errors. I'm not aware that I've changed anything on my macbook air, apart from official OS and iTerm2 upgrades. Is there anything I need to check or change to get this working?
Logs
davidrobinson@Davids-MacBook-Air-M1-2020 ~ % pip install --upgrade garmindb
Requirement already satisfied: garmindb in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (3.6.5)
Requirement already satisfied: SQLAlchemy==2.0.41 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from garmindb) (2.0.41)
Requirement already satisfied: garth>=0.5.17 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from garmindb) (0.5.18)
Requirement already satisfied: typing-extensions>=4.6.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from SQLAlchemy==2.0.41->garmindb) (4.7.1)
Requirement already satisfied: pydantic<3.0.0,>=1.10.12 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from garth>=0.5.17->garmindb) (2.5.2)
Requirement already satisfied: requests-oauthlib<3.0.0,>=1.3.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from garth>=0.5.17->garmindb) (1.3.1)
Requirement already satisfied: requests<3.0.0,>=2.0.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from garth>=0.5.17->garmindb) (2.31.0)
Requirement already satisfied: annotated-types>=0.4.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pydantic<3.0.0,>=1.10.12->garth>=0.5.17->garmindb) (0.6.0)
Requirement already satisfied: pydantic-core==2.14.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pydantic<3.0.0,>=1.10.12->garth>=0.5.17->garmindb) (2.14.5)
Requirement already satisfied: charset-normalizer<4,>=2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests<3.0.0,>=2.0.0->garth>=0.5.17->garmindb) (2.0.9)
Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests<3.0.0,>=2.0.0->garth>=0.5.17->garmindb) (3.3)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests<3.0.0,>=2.0.0->garth>=0.5.17->garmindb) (1.26.7)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests<3.0.0,>=2.0.0->garth>=0.5.17->garmindb) (2021.10.8)
Requirement already satisfied: oauthlib>=3.0.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests-oauthlib<3.0.0,>=1.3.1->garth>=0.5.17->garmindb) (3.2.2)
davidrobinson@Davids-MacBook-Air-M1-2020 ~ % garmindb_cli.py --all --download --import --analyze --latest
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/garmindb_cli.py", line 22, in
from garmindb import python_version_check, log_version, format_version
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/garmindb/init.py", line 30, in
from .download import Download
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/garmindb/download.py", line 16, in
from garth import Client as GarthClient
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/garth/init.py", line 1, in
from .data import (
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/garth/data/init.py", line 21, in
from .weight import WeightData
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/garth/data/weight.py", line 18, in
class WeightData(Data):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pydantic/dataclasses.py", line 235, in dataclass
return create_dataclass(_cls)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pydantic/dataclasses.py", line 226, in create_dataclass
pydantic_complete = _pydantic_dataclasses.complete_dataclass(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pydantic/_internal/_dataclasses.py", line 128, in complete_dataclass
sig = generate_dataclass_signature(cls, cls.pydantic_fields, config_wrapper) # type: ignore
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pydantic/_internal/_dataclasses.py", line 242, in generate_dataclass_signature
return generate_pydantic_signature(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 2204, in generate_pydantic_signature
return inspect.Signature(parameters=list(merged_params.values()), return_annotation=None)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/inspect.py", line 2958, in init
raise ValueError(msg)
ValueError: duplicate parameter name: 'timestamp_gmt'
Additional context
garmindb is setup to write to folders under /Users/davidrobinson/HealthData/