[vtkusers] Python Examples
William Greathouse
william.greathouse at the-greathouses.net
Wed Jan 22 10:02:55 EST 2003
> -----Original Message-----
> From: vtkusers-admin at public.kitware.com
> [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Charl P. Botha
> Sent: Wednesday, January 22, 2003 9:45 AM
> To: vtkusers at public.kitware.com
> Subject: Re: [vtkusers] Python Examples
>
>
> On Wed, 2003-01-22 at 15:24, William Greathouse wrote:
> > >From executing "python ImagePlaneWidget.py" in Examples/GUI/Python:
> >
> > ...
> > File "C:\Program Files\vtkNightly\wrapping\python\vtk\tk\vtkTkRe
> > nderWindowInteractor.py", line 28, in __init__
> > vtkLoadPythonTkWidgets(master.tk)
> > File "C:\Program Files\vtkNightly\wrapping\python\vtk\tk\vtkLoad
> > PythonTkWidgets.py", line 59, in vtkLoadPythonTkWidgets
> > interp.call('load', filename)
> > TclError: couldn't load library "vtkRenderingPythonTkWidgets.dll":
> > this library or a dependent library could not be found in the
> > library path
> >
> > I am able to run the Python examples that do not use the Tk rendering.
> > What do I need to build / change to experiment with this?
>
> It looks like your PYTHONPATH and/or PATH haven't been setup correctly,
> probably the latter. Add to PATH the directory where
> vtkRenderingPythonTkWidgets.dll finds itself. Can you run the other
> Python/VTK examples that do not make use of tkinter?
PYTHONPATH and PATH are both configured. I can run other VTK Python
examples that do not require vtkRenderingPythonTkWidgets.dll. This dll
was not installed with the vtkNightly files. Looking further into the
doc's, it seems that "rendering" is not part of the default build. Is
this the build module that results in the needed dll? I have not had
any success in rebuilding VTK from the CVS sources in the past, so I was
looking for a ready-made solution to an integrated VTK, GUI, Python.
Tk seemed the simple choice, but if I need to rebuild VTK Python, I am
willing to use other "free" libraries. Do you have any recommendations?
>
> --
> charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
More information about the vtkusers
mailing list