Permission denied when trying to access artifact versions in pytorch lightning callback

Hi @develop, the fact that this does work in debugging mode leads me to think this may be an issue with the lazy loading the API uses. Could you try to reinstantiate the wandb api in your remove_old_versions(self)function? For example:
self._api = wandb.Api(overrides={"entity": wandb.run.entity, "project": wandb.run.project}

Before you iterate through the Artifact versions that exist?

1 Like