Update requirements.txt (#1869)
* Update requirements.txt * Add wandb.errors.UsageError * bug fix
This commit is contained in:
parent
c35400cffd
commit
9d0e1cf298
@ -14,7 +14,7 @@ tqdm>=4.41.0
|
||||
|
||||
# Logging -------------------------------------
|
||||
tensorboard>=2.4.1
|
||||
# wandb
|
||||
wandb
|
||||
|
||||
# Plotting ------------------------------------
|
||||
pandas>=1.1.4
|
||||
|
||||
@ -24,7 +24,10 @@ try:
|
||||
|
||||
assert hasattr(wandb, '__version__') # verify package import not local dir
|
||||
if pkg.parse_version(wandb.__version__) >= pkg.parse_version('0.12.2') and RANK in [0, -1]:
|
||||
wandb_login_success = wandb.login(timeout=30)
|
||||
try:
|
||||
wandb_login_success = wandb.login(timeout=30)
|
||||
except wandb.errors.UsageError: # known non-TTY terminal issue
|
||||
wandb_login_success = False
|
||||
if not wandb_login_success:
|
||||
wandb = None
|
||||
except (ImportError, AssertionError):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user