diff --git a/confluent_client/bin/stats b/confluent_client/bin/stats index 3bfa61ee..7158e7a7 100755 --- a/confluent_client/bin/stats +++ b/confluent_client/bin/stats @@ -37,6 +37,8 @@ except ImportError: def plot(gui, output, plotdata, bins): import matplotlib as mpl + if gui and mpl.get_backend() == 'agg': + sys.stderr.write('Error: No GUI backend available and -g specified!\n') if not gui: mpl.use('Agg') import matplotlib.pyplot as plt