Skip to content

Commit 8bf24dd

Browse files
johschmitzjmcorgan
authored andcommitted
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.
1 parent 095b2e7 commit 8bf24dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gr-utils/python/utils/plot_fft_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
try:
3131
from pylab import *
3232
except ImportError:
33-
print "Please install Matplotlib to run this script (http://matplotlib.sourceforge.net/)"
33+
print "Please install Python Matplotlib (http://matplotlib.sourceforge.net/) and Python TkInter https://wiki.python.org/moin/TkInter to run this script"
3434
raise SystemExit, 1
3535

3636
from optparse import OptionParser

0 commit comments

Comments
 (0)