[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 11/20: clarify missing module exception.
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 11/20: clarify missing module exception. |
Date: |
Fri, 28 Aug 2015 19:19:52 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit d7a2a2b65407a8f1bc2c05747088e96a1f1b8315
Author: Chris Kuethe <address@hidden>
Date: Fri Aug 28 11:38:22 2015 -0400
clarify missing module exception.
reduces surprise and tells me what i need to do to fix it.
---
.../python/gnuradio/ctrlport/gr-perf-monitorx | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx
b/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx
index a05ea3a..cc7f7d9 100644
--- a/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx
+++ b/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx
@@ -20,18 +20,23 @@
# Boston, MA 02110-1301, USA.
#
+import sys, time, re, pprint
import random,math,operator
-import networkx as nx
-import matplotlib
-matplotlib.use("QT4Agg")
-import matplotlib.pyplot as plt
-from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as
FigureCanvas
-from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as
NavigationToolbar
-from matplotlib.figure import Figure
+try:
+ import networkx as nx
+ import matplotlib
+ matplotlib.use("QT4Agg")
+ import matplotlib.pyplot as plt
+ from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as
FigureCanvas
+ from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as
NavigationToolbar
+ from matplotlib.figure import Figure
+except ImportError:
+ print sys.argv[0], "requires networkx and matplotlib.", \
+ "Please check that they are installed and try again."
+ sys.exit(1)
from PyQt4 import QtCore,Qt,Qwt5
import PyQt4.QtGui as QtGui
-import sys, time, re, pprint
import itertools
from gnuradio import gr, ctrlport
- [Commit-gnuradio] [gnuradio] branch master updated (22e2f1a -> 68c6862), git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 02/20: Merge branch 'maint_grcwg' into master_grcwg, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 01/20: qtgui: added trigger callbacks to GRC XML files, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 06/20: grc: add warning for invalid xterm setting (fixes #828), git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 05/20: grc: rewrite Preferences.py, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 16/20: Merge remote-tracking branch 'ckuethe/trap_import_errors', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 17/20: Merge remote-tracking branch 'saikwolf/qt_themeing', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 11/20: clarify missing module exception.,
git <=
- [Commit-gnuradio] [gnuradio] 07/20: grc: move gui prefs file to ~/.gnuradio/grc.conf, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 20/20: Merge branch 'maint', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 19/20: Merge remote-tracking branch 'gnuradio-wg-grc/master_grcwg', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 04/20: grc: clean-up ActionHandler.py imports, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 14/20: Merge remote-tracking branch 'estatz/qtgui_trigger_callbacks', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 13/20: grc: super-secret, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 10/20: grc: show cmdline when xterm is used, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 12/20: qtgui: Modified the qproperties to scale the colorbar title from the .qss file, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 18/20: Merge remote-tracking branch 'sdh11/complexity', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 15/20: Merge remote-tracking branch 'tom/docs/sphinx_update', git, 2015/08/28