diff options
author | iohannez <johannes.schmitz1@gmail.com> | 2016-01-12 17:00:05 +0100 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-01-17 08:57:16 -0800 |
commit | 8bf24dd1a7938caa8fdf1e511ae1dc65f8423e04 (patch) | |
tree | 3bb28c77f698a95cbcf7cdfdecc49bb8b1f86cbc /gr-utils/python | |
parent | 095b2e725d3debf682b33ffbba22b21d912d732c (diff) |
gr-utils: Update error message
Prevent people from running into the problem that "import pylab" doesn't work because python tkinter is not installed.
For example on a fresh Ubuntu or Mint system it is not enough to install python-matplotlib.
However, the true error message:
"ImportError: No module named _tkinter, please install the python-tk package"
is obfuscated towards the user.
Another good option would be to not catch this import error but just show the true error message from python to the user.
Diffstat (limited to 'gr-utils/python')
-rwxr-xr-x | gr-utils/python/utils/plot_fft_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-utils/python/utils/plot_fft_base.py b/gr-utils/python/utils/plot_fft_base.py index 4afdc3a360..c4bc484d97 100755 --- a/gr-utils/python/utils/plot_fft_base.py +++ b/gr-utils/python/utils/plot_fft_base.py @@ -30,7 +30,7 @@ except ImportError: try: from pylab import * except ImportError: - print "Please install Matplotlib to run this script (http://matplotlib.sourceforge.net/)" + print "Please install Python Matplotlib (http://matplotlib.sourceforge.net/) and Python TkInter https://wiki.python.org/moin/TkInter to run this script" raise SystemExit, 1 from optparse import OptionParser |