Retrieve all the sweeps in a team project

I was trying to retrieve all the sweeps in a project, I did the following:

sweeps = wandb.Api().project(<project_name>, entity=<team_name>).sweeps()

However, I got the error that Project object has no attribute sweeps.

Can you please help with it?

Hi @mohamedr002 thank you for writing in! Can you please confirm you wandb version, and if you could try again by upgrading to our latest SDK version 0.13.6? Your one line code is correct and works for me, so could you also check running the following:

api = wandb.Api()
p = api.project('PROJECT', entity='ENTITY')
print(p.url)

Would this return a URL to your project, and can you see if there are Sweeps in it?

Hi @mohamedr002 I wanted to follow up on this issue, does it still occur for you and could you provide a bit more details to assist you further? thanks!

Hi @mohamedr002 since we haven’t heard back from you, I will go ahead and close this ticket for now. If you’re still experiencing any issue retrieving the sweeps please let us know and we will be happy to keep investigating!