I tried importing wandb logger from pytorch_lightning.loggers and got import error.
from pytorch_lightning.loggers import WandbLogger
conda, pip, source): pipHi! thanks for your contribution!, great first issue!
What is the exact error message? Which lightning version is installed?
from pytorch_lightning.loggers.wandb import WandbLogger also doesn't work?
You need to install wandb package first.
pip install wandb
You may also install all extra libs pip install -r requirements-extra.txt
@braindotai feel free to re-open if needed :rabbit:
Guess it would be helpful if there was a error displayed suggesting to install the logger package while importing. I had this same issue while using comet logger and wasn't sure what was wrong.
I had this same issue while using comet logger and wasn't sure what was wrong.
Actually I opened my code in vs code, and after that, I installed wandb and did the logging. It needed a restart to the editor to setup wandb properly with my editor command line, and after the restart, the error was gone indeed. I guess that's what happened with you as well.
The issue is solved. Thanks to everyone for the quick response.
Most helpful comment
Actually I opened my code in vs code, and after that, I installed wandb and did the logging. It needed a restart to the editor to setup wandb properly with my editor command line, and after the restart, the error was gone indeed. I guess that's what happened with you as well.
The issue is solved. Thanks to everyone for the quick response.