From 672c5cb8566c4484f54e012af46a78dfa7c8c89d Mon Sep 17 00:00:00 2001 From: Waleed Ammar Date: Mon, 11 Nov 2013 11:47:04 -0500 Subject: mira breaks on noninteractive machines when matplotlib is installed, complaining that $DISPLAY environment variable is not set. fix it as described at http://matplotlib.org/faq/howto_faq.html --- training/mira/mira.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'training') diff --git a/training/mira/mira.py b/training/mira/mira.py index 7b2d06a3..d5a1d9f8 100755 --- a/training/mira/mira.py +++ b/training/mira/mira.py @@ -12,6 +12,8 @@ except ImportError: sys.exit(1) have_mpl = True try: + import matplotlib + matplotlib.use('Agg') import matplotlib.pyplot as plt except ImportError: have_mpl = False -- cgit v1.2.3