Bug#400071: [Pkg-octave-devel] Bug#400071: octaviz: Examples fail to run

Christian T. Steigies cts at debian.org
Fri Dec 1 14:05:30 CET 2006


On Fri, Dec 01, 2006 at 11:31:11AM +0100, Thomas Weber wrote:
> Am Freitag, den 01.12.2006, 10:15 +0100 schrieb Christian T. Steigies:
> > > vtk 5.0.2-4 migrated into etch.
> > > 
> > > Christian, do you still experience this bug?
> > So I think the answer is yes?
> 
> Ah, sorry. The Octaviz package in testing still has the wrong paths. You
> can take the one from unstable (I just tested this) or wait until
> Octaviz migrates (another 2 days).

vtk_rainbow works now, but:

octave:3> vtk_image_demo
ERROR: In /build/buildd/vtk-5.0.2/IO/vtkPNGReader.cxx, line 43
vtkPNGReader (0x21fe7e0): Unable to open file
/usr/share/vtkdata/Data/fullhead15.png

/usr/share/doc/octaviz/examples/vtk_image_demo.m

has this line:

reader.SetFileName("/usr/share/vtkdata/Data/fullhead15.png")

When I fix the path, or use this patch, that demo works fine like all others
now do.

Christian

--- /usr/share/doc/octaviz/examples/vtk_image_demo.m    2006-11-22 10:35:11.000000000 +0100
+++ vtk_image_demo.m    2006-12-01 14:03:38.000000000 +0100
@@ -16,9 +16,11 @@

 vtk_init;

+VTK_DATA_ROOT = vtkGetDataRoot();
+
 reader = vtkPNGReader();
-reader.SetDataSpacing(0.8, 0.8, 1.5)
-reader.SetFileName("/usr/share/vtkdata/Data/fullhead15.png")
+reader.SetDataSpacing(0.8, 0.8, 1.5);
+reader.SetFileName(strcat(VTK_DATA_ROOT,"/Data/fullhead15.png"));
 shiftScale = vtkImageShiftScale();
 shiftScale.SetInput(reader.GetOutput())
 shiftScale.SetShift(0)




More information about the Pkg-octave-devel mailing list