AttributeError: module 'wandb' has no attribute 'init' or AttributeError: module 'wandb' has no attribute 'login' when importing wandb in Python, wandb is not installed or the installation is corrupted, but a wandb directory exists in the current working directory. To fix this error, uninstall wandb, delete the directory, then install wandb:
Crashing And Hanging Runs