It seems to be complaining about the ‘Client’ is not a valid attribute of the asana package, so has anyone experience this issue before?? Are there any other environment to run the asana python code in?
This error typically shows up if you have a different version of the library installed that doesn’t have a “Client” implemented. In the directory where you are testing your code can you type in your console:
pip list
It should look like this:
Make sure the “Version” is 3.2.2
Also, are you using a python virtual environment to install your packages? If not, it might be good to do so to avoid conflict with another asana python packages installed globally on your computer.
After you have confirmed that the package version you are using is indeed 3.2.2 try the following code sample (Replace <YOUR_PERSONAL_ACCESS_TOKEN> with your own Asana Personal Access Token):
import asana
from pprint import pprint
client = asana.Client.access_token("<YOUR_PERSONAL_ACCESS_TOKEN>")
result = client.users.get_user("me")
pprint(result)