Octave 2.9: Error when trying to plot with gnuplot installed

Bug #141059 reported by GabrielGrant
4
Affects Status Importance Assigned to Milestone
octave2.9 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: octave2.9

After manually installing gnuplot, in order to get around bug #141055, using the plot command still throws a (different) error:

octave:1> x=0:pi/1000:2*pi;
octave:2> plot(x, sin(x))
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
error: `have_newer_gnuplot' undefined near line 333 column 8
error: evaluating binary operator `||' near line 333, column 27
error: if: error evaluating conditional expression
error: evaluating if command near line 333, column 4
error: evaluating switch command near line 245, column 7
error: evaluating for command near line 241, column 5
error: evaluating if command near line 29, column 3
error: called from `__go_draw_axes__' in file `/usr/share/octave/2.9.12/m/plot/__go_draw_axes__.m'
error: evaluating switch command near line 57, column 4
error: evaluating for command near line 55, column 2
error: evaluating if command near line 37, column 7
error: evaluating if command near line 30, column 5
error: evaluating if command near line 29, column 3
error: called from `__go_draw_figure__' in file `/usr/share/octave/2.9.12/m/plot/__go_draw_figure__.m'
error: evaluating if command near line 61, column 6
error: evaluating if command near line 58, column 4
error: evaluating if command near line 56, column 2
error: evaluating for command near line 55, column 7
error: evaluating if command near line 38, column 5
error: called from `drawnow' in file `/usr/share/octave/2.9.12/m/plot/drawnow.m'

Expected result: show a plot

description: updated
Revision history for this message
GabrielGrant (gabrielgrant) wrote :

I got an email from Ingo Kresse, a debian user, with a simple fix that worked for me:

>I had the same problem as you had, and fixed it with
>
># dpkg-reconfigure octave
>
>(execute as root)
>
>I think, apt-get should have done that automatically. Anyway,
>that was my workaround.
>
>Cheers,
>Ingo

I probably should have tried that right away, but decided to pollute Launchpad instead :)

If the package could be coerced into doing this somehow. that would be good. The problem is that it needs to be done after gnuplot is installed, which is not necessarily at the same time as octave is installed, since gnuplot is a recommended, rather than dependent, package. (See the discussion in bug #141055)

Thanks,
-Gabriel

Revision history for this message
Stephan Rügamer (sruegamer) wrote : Please check if this bug is still valid for octave3.0

Dear Reporter,

please check if your bugreport is still valid for octave3.0.

If yes, please update your package to octave3.0.

Rational:

Octave3.0 is the latest stable release of Octave. All former versions
like octave2.1 or octave2.9 were development releases, which are
obsolete now (for Hardy that is).

As your bugs are not worth a StableReleaseUpdate for the still
maintained Ubuntu release, I would like to ask you to check out
Octave3.0 and eventually, when you bug is fixed, close your bugreport
or update your report to match source package "octave3.0".

Thank you for shaping the future of Ubuntu,

\sh

--
SysAdmin, OSS Developer
GPG-Key ID: 0xC098EFA8
Fingerprint: 3D8B 5138 0852 DA7A B83F DCCB C189 E733 C098 EFA8
http://www.sourcecode.de/

Revision history for this message
ShanaVar (shanavar) wrote :

I just tried this on Hardy Heron (just updated) with octave3 and gnuplot and got the same error. dpkg-reconfigure octave fixed the problem

greets

Revision history for this message
beam (adamzieba) wrote :

ShanaVar:

I think that you mean:

sudo dpkg-reconfigure octave3.0

Revision history for this message
npast (npastouchenko) wrote :

Just had the same situation on Hardy Heron (installed a few days ago), got the same error.
sudo dpkg-reconfigure octave fixed the problem.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 RC or later?

Changed in octave2.9:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in octave2.9:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.