stravalib icon indicating copy to clipboard operation
stravalib copied to clipboard

get_activity issues errors

Open gringorichards opened this issue 7 years ago • 4 comments

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

gringorichards avatar Sep 20 '18 20:09 gringorichards

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')

ghost avatar Sep 21 '18 01:09 ghost

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.

gringorichards avatar Sep 21 '18 06:09 gringorichards

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 .

hozn avatar Sep 21 '18 12:09 hozn

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 .

gringorichards avatar Sep 21 '18 14:09 gringorichards

Fixed by #350

jsamoocha avatar Mar 06 '23 13:03 jsamoocha