VTK 4.2.6 + Python 2.3.4 and VTK Examples problem
Charl P. Botha
cpbotha at i_triple_e.org
Thu Jun 3 04:58:24 EDT 2004
In article <2335b39d.0406020426.4522d772 at posting.google.com>, Ron Kneusel wrote:
> I have installed VTK 4.2.6 and Python 2.3.4. Both are working and I
> can run the VTK Python examples except for those in the GUI directory.
> These always fail with messages similar to this:
>
> /home/rkneusel/VTK/Examples/GUI/Python> python2.3 BoxWidget.py
> Traceback (most recent call last):
> File "BoxWidget.py", line 57, in ?
> boxWidget = vtk.vtkBoxWidget()
> AttributeError: 'module' object has no attribute 'vtkBoxWidget'
You forgot to build the Hybrid packages, i.e. VTK_USE_HYBRID should be set
to ON during your cmake configuration. Many of the classes used in the GUI
examples are part of the Hybrid code.
By the way, it's probably a better idea to post VTK Python problems on the
VTK list.
--
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
More information about the Python-list
mailing list