stravalib
stravalib copied to clipboard
get_activity issues errors
No such attribute visibility on entity <Activity id=X name='Morning Ride' resource_state=3> No such attribute available_zones on entity <Activity id=X name='Morning Ride' resource_state=3>
Get_activities does it too.
Sorry if it's something I am doing wrong but couldn't work out how to stop it popping up!
Thanks
Came here for the same reason; looks like somewhere along the line the warnings are being logged because the get_activities() call tries to retrieve a visibility attribute from the Activity entities.
In the meantime, a quick fix to make the warnings go away is to set the logging level higher than WARNING:
Log = logging.getLogger()
Log.setLevel('ERROR')
Thanks, was trying everything under the sun to suppress the list of warnings in my Jupyter Notebook - your quick fix did the trick! Glad to see I wasn't imagining it too.
Thanks for the heads up -- I'll push out a fix to correct the expectation of these attributes being present.
On Fri, Sep 21, 2018 at 2:39 AM gringorichards [email protected] wrote:
Thanks, was trying everything under the sun to suppress the list of warnings in my Jupyter Notebook - your quick fix did the trick! Glad to see I wasn't imagining it too.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hozn/stravalib/issues/159#issuecomment-423429810, or mute the thread https://github.com/notifications/unsubscribe-auth/AAX7A1qP1B-A-J0POcGJssFK05lgcChyks5udImEgaJpZM4Wy2lY .
Thank you very much. It's a great library.
On Fri, 21 Sep 2018, 13:47 Hans Lellelid, [email protected] wrote:
Thanks for the heads up -- I'll push out a fix to correct the expectation of these attributes being present.
On Fri, Sep 21, 2018 at 2:39 AM gringorichards [email protected] wrote:
Thanks, was trying everything under the sun to suppress the list of warnings in my Jupyter Notebook - your quick fix did the trick! Glad to see I wasn't imagining it too.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hozn/stravalib/issues/159#issuecomment-423429810, or mute the thread < https://github.com/notifications/unsubscribe-auth/AAX7A1qP1B-A-J0POcGJssFK05lgcChyks5udImEgaJpZM4Wy2lY
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hozn/stravalib/issues/159#issuecomment-423519110, or mute the thread https://github.com/notifications/unsubscribe-auth/ApVVWcW-suvWBQ-pNNHiGZnVpXGjaUJqks5udN_wgaJpZM4Wy2lY .
Fixed by #350