[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 09/11: gr-utils: Update error message
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 09/11: gr-utils: Update error message |
Date: |
Sun, 17 Jan 2016 18:02:48 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 8bf24dd1a7938caa8fdf1e511ae1dc65f8423e04
Author: iohannez <address@hidden>
Date: Tue Jan 12 17:00:05 2016 +0100
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.
---
gr-utils/python/utils/plot_fft_base.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gr-utils/python/utils/plot_fft_base.py
b/gr-utils/python/utils/plot_fft_base.py
index 4afdc3a..c4bc484 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
- [Commit-gnuradio] [gnuradio] branch maint updated (dec480a -> 4ce1d49), git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 08/11: Merge remote-tracking branch 'tom/issue812' into maint, git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 11/11: Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint, git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 04/11: gru: Fixes an obsolete numpy function call., git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 02/11: analog: Addresses issue #831., git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 03/11: analog: enable setting max dev. during runtime for NBFM transmitter and receiver hier_blocks., git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 05/11: digital: Addresses issue #812., git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 06/11: Updated URL to UHD manual in USRP sink and source blocks, git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 10/11: Merge remote-tracking branch 'dkozel/fix-uhd-manual-url' into maint, git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 09/11: gr-utils: Update error message,
git <=
- [Commit-gnuradio] [gnuradio] 07/11: Merge remote-tracking branch 'tom/nbfm' into maint, git, 2016/01/17
- [Commit-gnuradio] [gnuradio] 01/11: grc: fix 'Parser errors' menu item, git, 2016/01/17