wandb / wandb

The AI developer platform. Use Weights & Biases to train and fine-tune models, and manage models from experimentation to production.
https://wandb.ai
MIT License
9.13k stars 671 forks source link

[Bug]: Warning when import wandb #8358

Closed thinh-dao closed 1 month ago

thinh-dao commented 2 months ago

Describe the bug

Hello wandb team, I'm reporting a warning when I import the latest version of wandb: SentryHubDeprecationWarning: 'sentry_sdk.Hub' is deprecated and will be removed in a future major release. Please consult our 1.x to 2.x migration guide for details on how to migrateHubusage to the new API: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x self.hub = sentry_sdk.Hub(client)

ArtsiomWB commented 1 month ago

Hey @Ducthinh19102003! Thank you for writing in!

Looking at the warning above, it does not seem to be coming from wandb.

Are you seeing this warning on 0.18.0 every time you import wandb?

How do you use sentry-python, in your current code?

ArtsiomWB commented 1 month ago

Hi @Ducthinh19102003! I have reported this behavior to our engineering team. Thank you for bringing it up!

anmolmann commented 1 month ago

HI @thinh-dao , a quick update on this - a fix for this issue has been merged by our team and this fix will be included in our next SDK release.