Error from gnuplot

69 views
Skip to first unread message

Mark Fraser

unread,
Apr 11, 2016, 1:05:55 AM4/11/16
to pywws
Yesterday evening I started getting errors like the one below
016-04-10 22:35:49:pywws.LiveLog:Command '['gnuplot', '/tmp/weather/plot.c
d']' returned non-zero exit status -11
raceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pywws/LiveLog.py", line 86,
in LiveLog
tasks.do_tasks()
File "/usr/local/lib/python2.7/dist-packages/pywws/Tasks.py", line 340, in
do_tasks
self._do_common(sections)
File "/usr/local/lib/python2.7/dist-packages/pywws/Tasks.py", line 246, in
_do_common
upload = self.do_plot(template)
File "/usr/local/lib/python2.7/dist-packages/pywws/Tasks.py", line 402, in
do_plot
self.plotter.DoPlot(input_xml, output_file) == 0):
File "/usr/local/lib/python2.7/dist-packages/pywws/Plot.py", line 727, in
DoPlot
subprocess.check_call(['gnuplot', cmd_file])
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
calledProcessError: Command '['gnuplot', '/tmp/weather/plot.cmd']' returned
non-zero exit status -11

I've got pywws running at the moment my removing all plot lines from weather.ini, but obviously that isn't ideal.

Jim Easterbrook

unread,
Apr 11, 2016, 4:26:54 AM4/11/16
to py...@googlegroups.com
On 11/04/16 06:05, Mark Fraser wrote:
> Yesterday evening I started getting errors like the one below
> 016-04-10 22:35:49:pywws.LiveLog:Command '['gnuplot', '/tmp/weather/plot.c
> d']' returned non-zero exit status -11
> raceback (most recent call last):
> File "/usr/local/lib/python2.7/dist-packages/pywws/LiveLog.py", line 86,
> in LiveLog
> tasks.do_tasks()
> File "/usr/local/lib/python2.7/dist-packages/pywws/Tasks.py", line 340, in
> do_tasks
> self._do_common(sections)
> File "/usr/local/lib/python2.7/dist-packages/pywws/Tasks.py", line 246, in
> _do_common
> upload = self.do_plot(template)
> File "/usr/local/lib/python2.7/dist-packages/pywws/Tasks.py", line 402, in
> do_plot
> self.plotter.DoPlot(input_xml, output_file) == 0):
> File "/usr/local/lib/python2.7/dist-packages/pywws/Plot.py", line 727, in
> DoPlot
> subprocess.check_call(['gnuplot', cmd_file])
> File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
> raise CalledProcessError(retcode, cmd)
> calledProcessError: Command '['gnuplot', '/tmp/weather/plot.cmd']' returned
> non-zero exit status -11

Tracking down gnuplot errors can be tricky. Try running it from the
command line, which will at least tell you if it's still installed
correctly.

Because an exception was raised in pywws you might still have the
temporary plot files in /tmp/weather (they're normally deleted after the
plot command is run). If so, you can try running gnuplot from the
command line with its command file: 'gnuplot /tmp/weather/plot.cmd'

With any luck you'll get a helpful error message.
--
Jim Easterbrook <http://www.jim-easterbrook.me.uk/>

Mark Fraser

unread,
Apr 11, 2016, 6:06:48 AM4/11/16
to py...@googlegroups.com

Tried it from the command line and just got "seg fault", rebooted and tried gnuplot again and it worked. Going to try adding the plot lines back in when I get home - bit difficult from a mobile phone!

Reply all
Reply to author
Forward
0 new messages