VTK 4.2.6 + Python 2.3.4 and VTK Examples problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ron Kneusel

    VTK 4.2.6 + Python 2.3.4 and VTK Examples problem

    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.vtkBoxWidge t()
    AttributeError: 'module' object has no attribute 'vtkBoxWidget'

    This method of running the other VTK examples, including those that
    put up a window (like the medical examples) work properly.

    I read a blurb in the MayaVi installation notes that this is due to a
    problem with a return value but should not exist in versions of VTK
    4.2.5 or higher.

    Any help appreciated!

    Ron
  • Charl P. Botha

    #2
    Re: VTK 4.2.6 + Python 2.3.4 and VTK Examples problem

    In article <2335b39d.04060 20426.4522d772@ posting.google. com>, Ron Kneusel wrote:[color=blue]
    > 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.vtkBoxWidge t()
    > AttributeError: 'module' object has no attribute 'vtkBoxWidget'[/color]

    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/

    Comment

    Working...