wandb: AttributeError: module 'wandb.proto.wandb_internal_pb2' has no attribute 'Result'
Describe the bug
Wandb.login()
Additional Files
import wandb import random
wandb.login() #ndb. start a new wandb run to track this script wandb.init( # set the wandb project where this run will be logged project=“anna-awesome-project”,
# track hyperparameters and run metadata
config={
"learning_rate": 0.02,
"architecture": "CNN",
"dataset": "CIFAR-100",
"epochs": 10,
}
)
simulate training
epochs = 10 offset = random.random() / 5 for epoch in range(2, epochs): acc = 1 - 2 ** -epoch - random.random() / epoch - offset loss = 2 ** -epoch + random.random() / epoch + offset
# log metrics to wandb
wandb.log({"acc": acc, "loss": loss})
[optional] finish the wandb run, necessary in notebooks
wandb.finish()
quick tutorial from Wandb website.
Environment
WandB version:latest
OS:Macosx
Python version:3.9
Versions of relevant libraries:
Additional Context
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (3 by maintainers)
I was running into the same bug in my Python 3.12 virtual environment. I found that the following combination worked for me:
This works 👍
@kptkin @yangboz Can I help with this issue?