By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,350 Members | 1,263 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,350 IT Pros & Developers. It's quick & easy.

VTK 4.2.6 + Python 2.3.4 and VTK Examples problem

P: n/a
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'

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
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <23**************************@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/
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.