[vtk-developers] VTK/Python and Sun new discoveries
andy.cedilnik at kitware.com
Fri May 24 10:57:36 EDT 2002
I agree with you. I wish we could use python executable for vtk/python
and tclsh (or wish) for vtk/tcl. Unfortunately that will not work on Sun
using Sun's compiler and probably on HP,SGI,.... Please correct me if I
am wrong. The problem is that C++ code does not get initialized
correctly when the binary is compiled using C compiler and not C++ one.
As a test, please try this code:
from vtk.tk.vtkTkRenderWidget import *
root = Tk()
pane = vtkTkRenderWidget(root)
This will crash on all platforms where classes do not get initialized
properly. The funny thing is that all VTK python tests will pass. This
however is not the case with gcc, which does not have any problem with
So, I think we should add vtkPython, which is just a wrapper around the
actual python library and does not include any code at all.
On Fri, 2002-05-24 at 10:37, Prabhu Ramachandran wrote:
> Well, I am not sure that this is the right way to go. Making a new
> binary seems unnecessary. Also I dont understand clearly what the
> issues are with the current setup and why you need to add a special
> vtkPython binary. Maybe you could explain it a little more? I
> understand that if you want specific features like initializing MPI or
> something like that you'd need a special interpreter but doing it just
> for VTK is a no-no IMHO.
> I dont know what David has to say. I guess he is very busy these
> AC> Note to python developers: Please add some tests to vtk that
> AC> will use tk render widget.
> I'll keep that in mind when I get some time to do the test stuff. The
> trouble is that I'm not too familiar with how the testing exactly
> works and don't have too much time to check it out either.
> vtk-developers mailing list
> vtk-developers at public.kitware.com
More information about the vtk-developers