[vtkusers] vtk.vtkVersion() not exposed to python?

Brian London bml573 at northwestern.edu
Fri May 5 13:34:05 EDT 2006


Johann Cohen Tanugi Wrote:

> >>> from vtk import common
> >>> common.vtkVersion.GetVTKVersion()
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> AttributeError: 'module' object has no attribute 'vtkVersion'


You forgot a pair of parenthsese.  Try:

 >>> import vtk
 >>> vtk.vtkVersion().GetVTKVersion()
'5.0.0'


-Brian



More information about the vtkusers mailing list