[Insight-users] What is wrong if TCL can't find a package (wrapped functions of ITK/VTK)

Roman Grothausmann roman.grothausmann at helmholtz-berlin.de
Mon Jul 16 05:28:35 EDT 2012


Dear mailing list members,


In case the subject of my former inquiry (see below) was not meaningful 
enough, here the problem in a more general way:
What do I have to do if TCL can't find a package (i.e. wrapped functions 
of ITK/VTK)? I even set TCLLIBPATH packages cannot be found although 
they exist:


TCLLIBPATH="/opt/vtk-5.8.0_dyn+py2.7+tcl/lib/vtk-5.8/tcl/ 
/opt/vtk-5.8.0_dyn+py2.7+tcl/lib/vtk-5.8/tcl/vtkinteraction/" tclsh
% puts $auto_path
/opt/vtk-5.8.0_dyn+py2.7+tcl/lib/vtk-5.8/tcl/ 
/opt/vtk-5.8.0_dyn+py2.7+tcl/lib/vtk-5.8/tcl/vtkinteraction/ 
/usr/share/tcltk/tcl8.5 /usr/lib /usr/local/lib/tcltk 
/usr/local/share/tcltk /usr/lib/tcltk /usr/share/tcltk
% package require vtk
can't find package vtk
% package require vtkinteraction
can't find package vtkinteraction


l /opt/v-5.8.0_dyn+py2.7+tcl/lib/vtk-5.8/tcl/ 
/opt/vtk-5.8.0_dyn+py2.7+tcl/lib/vtk-5.8/tcl/vtkinteraction/

/opt/vtk-5.8.0_dyn+py2.7+tcl/lib/vtk-5.8/tcl/:
insgesamt 92K
drwxr-xr-x 18 root root 4,0K Jul  6 14:40 ./
drwxr-xr-x  7 root root  12K Jul  6 14:40 ../
-rw-r--r--  1 root root 4,9K Aug 24  2011 README
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtk/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkbase/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkcommon/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkfiltering/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkgeovis/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkgraphics/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkhybrid/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkimaging/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkinfovis/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkinteraction/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkio/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkrendering/
-rw-r--r--  1 root root 3,1K Aug 24  2011 vtktcl.c
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtktesting/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkviews/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkvolumerendering/
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 vtkwidgets/

/opt/vtk-5.8.0_dyn+py2.7+tcl/lib/vtk-5.8/tcl/vtkinteraction/:
insgesamt 52K
drwxr-xr-x  2 root root 4,0K Jul  6 14:40 ./
drwxr-xr-x 18 root root 4,0K Jul  6 14:40 ../
-rw-r--r--  1 root root 7,7K Aug 24  2011 bindings-iw.tcl
-rw-r--r--  1 root root  489 Aug 24  2011 bindings-rw.tcl
-rw-r--r--  1 root root  13K Aug 24  2011 bindings.tcl
-rw-r--r--  1 root root 4,1K Aug 24  2011 Interactor.tcl
-rw-r--r--  1 root root 2,3K Aug 24  2011 setget.tcl
-rw-r--r--  1 root root  310 Jul  6 14:06 vtkinteraction.tcl

Many thanks for any help or hints.
Roman


On 11.07.2012 19:02, Roman Grothausmann wrote:
> Dear mailing list members,
>
>
> I'm trying to run the SegmentationEditor
> (http://www.itk.org/ITK/applications/segmentationeditor.html)
>
> When I do as told in the SegmentationEditor-readme:
>
> export  TCLLIBPATH="/opt/vtk-5.8.0_dyn+py2.7+tcl/lib/vtk-5.8/tcl/
> /opt/vtk-5.8.0_dyn+py2.7+tcl/lib/vtk-5.8/tcl/vtkinteraction/"
>
>
> ~/sda8/programme/InsightApplications-4.1.1/SegmentationEditor/Scripts$
> ~/sda8/programme/InsightApplications-4.1.1/build_vtk-5.8.0/SegmentationEditor/Wrapping/Tcl/WSTITK
>
> Main.tcl
>
>
> I get this error:
>
> Error in startup script: can't find package vtkinteraction
>
> adding as told in the TCL/README:
>
> source /opt/vtk-5.8.0_dyn+py2.7+tcl/lib/vtk-5.8/tcl/vtk/vtk.tcl
> package require vtk
>
> results in:
>
> Error in startup script: can't read "vtk::init::kits": no such variable
>
> Google only finds one post which was not answered
> (http://www.vtk.org/pipermail/vtk-developers/2003-October/002591.html).
>
> Can anybody help me with this VTK|TCL problem?
>
> Any help or hints are very much appreciated
> Roman
>

-- 
Roman Grothausmann

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Bereich Funktionale Materialien
Institut für angewandte Materialforschung
Hahn-Meitner-Platz 1
D-14109 Berlin	

(früher Hahn-Meitner-Institut und BESSY)


Tel.: +49-(0)30-8062-42816
Fax.: +49-(0)30-8062-43059

Vorsitzender des Aufsichtsrats: Prof. Dr. Dr. h.c. mult. Joachim Treusch
Stellvertretende Vorsitzende: Dr. Beatrix Vierkorn-Rudolph
Geschäftsführer: Prof. Dr. Anke Rita Kaysser-Pyzalla, Dr. Ulrich Breuer
Sitz der Gesellschaft: Berlin
Handelsregister: AG Charlottenburg, 89 HRB 5583





More information about the Insight-users mailing list