[vtkusers] Python Examples

Charl P. Botha c.p.botha at its.tudelft.nl
Wed Jan 22 09:45:25 EST 2003


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?
 
-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list