Asana / python-asana

Official Python client library for the Asana API v1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Team Memberships : 'Client' object has no attribute 'team_memberships'

talhakalim opened this issue · comments

It seems that the team memberships piece of the API is not working in Pythons
team_members = client.team_memberships.get_team_memberships_for_team(this_team['gid'], {}, opt_pretty=True)
AttributeError: 'Client' object has no attribute 'team_memberships'

Can you run:

import asana
print("ASANA VERSION:" + asana.__version__)

To confirm what version you're on?

I am on ASANA VERSION: 0.10.0

I have worked around by manually adding the team_memberships.py and creating a stub class in asana/resources pointing to asana/resources/gen/team_memberships.py. Which got things rolling.

Thank you @talhakalim !

This should be resolved in 0.10.1