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

AttributeError: 'Garmin' object has no attribute 'download_activities' #98

Closed
Volker-brdb opened this issue Nov 6, 2022 · 4 comments
Closed

Comments

@Volker-brdb
Copy link

Hi,

choosing option
p -- Download activities data by date from '2022-10-30' to '2022-11-06'

I get following error
Executing: Download activities data by date from '2022-10-30' to '2022-11-06'

Traceback (most recent call last):
File "\example.py", line 377, in
switch(api, option)
File "\example.py", line 271, in switch
display_json(f"api.download_activities({activity_id})", api.download_activities(activity_id))
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Garmin' object has no attribute 'download_activities'. Did you mean: 'download_activity'?

@cyberjunky
Copy link
Owner

Hopefully fixed in version 0.1.49, thanks for reporting @Volker-brdb !

@Volker-brdb
Copy link
Author

@cyberjunky thx for the fast response.

Now I get following error

-------------------- api.download_activity(9928953063) --------------------
Traceback (most recent call last):
File "\example.py", line 397, in switch(api, option)
File "\example.py", line 275, in switch display_json(f"api.download_activity({activity_id})", api.download_activity(activity_id))
File "\example.py", line 91, in display_json print(json.dumps(output, indent=4))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\Python\Python311\Lib\json_init_.py", line 238, in dumps
**kw).encode(obj)
^^^^^^^^^^^
File "\Python\Python311\Lib\json\encoder.py", line 202, in encode
chunks = list(chunks)
^^^^^^^^^^^^
File "\Python\Python311\Lib\json\encoder.py", line 439, in _iterencode
o = _default(o)
^^^^^^^^^^^
File "\Python\Python311\Lib\json\encoder.py", line 180, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type bytes is not JSON serializable

@cyberjunky
Copy link
Owner

@Volker-brdb I believe I have fixed the example,py now, are you able to check?

@Volker-brdb
Copy link
Author

Volker-brdb commented Nov 8, 2022

@cyberjunky: download works now.....great!!
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants