Catching ImportError exception and giving (hopefully) useful error message to install...
[debian/gnuradio] / gnuradio-core / src / utils / gr_plot_int.py
index 3eb36011df444ce1bca96439ea5422e1b32ffe0f..86ecbce7d7e1d305875868b2e83f4470dd17567e 100755 (executable)
 # Boston, MA 02110-1301, USA.
 # 
 
-import scipy
+try:
+    import scipy
+except ImportError:
+    print "Please install SciPy to run this script (http://www.scipy.org/)"
+    raise SystemExit, 1
+
 from optparse import OptionParser
 from gr_plot_data import plot_data