[Paraview] mpi + pvtk = tcl/tk errors ?

Ian Watkins watkinsig@ornl.gov
Fri, 31 Jan 2003 10:56:56 -0500


Hello,

I'm trying to run paraview/pvtk on a 4 node cluster (Redhat 7.2), using
mpich 1.2.4.  
I'm not the sysadmin, so ParaView/pvtk is not installed on each node,
but in my home area (which is cross mounted on all nodes). 

If I run the following script through vtk on the head node, there are no
errors.

# ParaView Version 0.6

package require vtkio
package require vtkrendering
package require vtkparallel
puts "Success"
exit

As you can see, the script isn't very complicated.

On any other node, running the script produces:

no display name and no $DISPLAY environment variable
::vtk::load_component: tk could not be found.
can't find package Tk
Tk was not found: the VTK rendering package can not be used... Please
check that your Tcl/Tk installation is correct. Windows users should
also check that the program used to open/execute Tcl files is the Tk
shell (wish), not the Tcl shell (tclsh).
can't find package vtkrendering
    while executing
"package require vtkrendering"
    (file "check.tcl" line 4)

I've attempted to solve the problem by moving all executables and
libraries to all nodes, but the same error occurs (all nodes are
identical).  I've also added:
"wm withdraw ." as the first execution line, but then vtk fails with:

Application initialization failed: no display name and no $DISPLAY
environment variable
Error in startup script: invalid command name "wm"
    while executing
"wm withdraw ."
    (file "check.tcl" line 2)

The child nodes are on a private network, and not world accessible.
(The head node has 2 nics, one for world, one for the private network.)

I've verified that wish and tclsh exist on all machines.  (In fact, both
wish and tclsh run the above script fine on the head node.)

I've attempted to do X11 forwarding from the child nodes.  I've tried
setting the DISPLAY environment var, but nothing seems to work.

I imagine at least one person is asking where the mpi problem is.  When
I began trying to run pvtk, I was using:
mpirun -np 4 -machinefile ~/machines pvtk [script]
The system would puke, giving an error similar to the above three times.
That is when I began attempting to run a smaller script on each node.

Any help would be greatly appreciated.
Ian Watkins