Skip to content

Commit

Permalink
Gives a better error message when there is a missing dependency (#645)
Browse files Browse the repository at this point in the history
PIL is not installed with comet_ml
  • Loading branch information
dsblank committed Dec 26, 2021
1 parent 6cd43b5 commit eefcaa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorboardX/comet_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, comet_config={"disabled": True}):
if comet_config["disabled"] is True:
self._logging = False
elif comet_config["disabled"] is False and comet_installed is False:
raise Exception("Comet not installed. Run 'pip install comet-ml'")
raise Exception("Comet and/or Python Image Library not installed. Run 'pip install comet-ml pillow'")

def _requiresComet(method):
@functools.wraps(method)
Expand Down

0 comments on commit eefcaa7

Please sign in to comment.