morugu/timetree-sdk-python

TypeError: __init__() got an unexpected keyword argument 'location_lat'

Opened this issue · 1 comments

An update of the timetree SDK breaks the current code base as it does not support the location_lat and location_lon attributes. Add these two attribute to the method EventAttributes in responses.py to make the SDK compatible again.

I am getting this error even when not specifying anything related to location_lat or location_lon. When I execute:
events = api.get_upcoming_events(CALENDAR_KEY, timezone='UTC', days=7)

I get the error: TypeError: __init__() got an unexpected keyword argument 'location_lat'

There seems to be a bug in the code that breaks this get_upcoming_events function, or there is another error that is being mislabeled. Strangely enough, in this case setting timezone to be 'Asia/Tokyo' removed the error (I just got an empty list, probably no events in the next 7 days), but in other cases I'm still getting the same error even with timezone set to be Asia/Tokyo. Not sure what's going on here. This was the only post I found related to this error.