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

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

Open
Kelderro opened this issue Apr 4, 2022 · 1 comment · May be fixed by #5
Open

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

Kelderro opened this issue Apr 4, 2022 · 1 comment · May be fixed by #5

Comments

@Kelderro
Copy link

Kelderro commented Apr 4, 2022

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.

@Sbrowneo
Copy link

Sbrowneo commented Jul 5, 2023

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.

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

Successfully merging a pull request may close this issue.

2 participants