any stravalib users encountering 'list index out of range error'?
151 views
Skip to first unread message
hubcy...@outlook.com
unread,
Aug 12, 2021, 3:18:26 PM8/12/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Strava API
I got an error that suddenly began yesterday when I try to pull a list of activities in my django app. I've been using stravalib python library since I started learning python a couple of years back and have just stuck with it, and I'm getting an exception in it. Is anyone in a similar situation? Have there been any changes with Strava's API which would break any libraries like stravalib? Just curious!
MikeQuirk
unread,
Aug 13, 2021, 11:32:32 AM8/13/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Strava API
I get the same error while trying to iterate over my Activities object returned from get_activities(). Looks like something has changed to break this stravalib method.
Jeff Plotzke
unread,
Aug 13, 2021, 12:49:48 PM8/13/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Strava API
Yes, it appears that Strava made an unannounced change two days ago to the API where activities without any GPS data are returned differently for the start_latLng attribute. This resulted in an IndexError from stravalib when an activity did not have GPS data. An update to the stravalib library has already been committed which fixes this issue.
hubcy...@outlook.com
unread,
Aug 13, 2021, 12:56:54 PM8/13/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Strava API
I can confirm the fix works, got mine working after I updated this morning
MikeQuirk
unread,
Aug 15, 2021, 7:51:51 AM8/15/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Strava API
That's good news. How did you get the update? I tried pip install stravalib=0.10.3 (on the basis I was using the previous latest 0.10.2) but this version was not recognized. Grateful for your help.
Michael Wood
unread,
Aug 17, 2021, 12:42:45 AM8/17/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Strava API
I was able to clone the github repo and re-deploy locally with the fix. Looks like the maintainer hasn't pushed a package for this version yet but the code has been fixed...
Michael Wood
unread,
Aug 17, 2021, 4:16:40 PM8/17/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Strava API
When deploying the new library to our k8s clusters we're seeing an error related to unicode being undefined. We don't see this on local machines so my bet is something is botched in the python container builds. Anyone else see this?