Package: python-gnuplot
Version: 1.7-5
Severity: minor
When I execute the following python program,
---
#!/usr/bin/env python
import Gnuplot
G = Gnuplot.Gnuplot(debug=0)
G.reset()
line = Gnuplot.Func ('x*x')
G.plot(line)
G.hardcopy('foo.eps', terminal='fnord')
---
which should result in terminating with an error message like "Terminal
fnord is not configured in Gnuplot.py." python exits with a NameError
exception:
---
$ python demo.py
Traceback (most recent call last):
File "demo.py", line 7, in ?
G.hardcopy('foo.eps', terminal='fnord')
File "/usr/lib/python2.3/site-packages/Gnuplot/_Gnuplot.py", line 546,
in hardcopy
raise Errors.OptionError(
NameError: global name 'Errors' is not defined
---
I guess the issue can be resolved by adding the line
import Errors
to _Gnuplot.py
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]