[vtkusers] vtk.vtkVersion() not exposed to python?
Johann Cohen Tanugi
cohen at slac.stanford.edu
Thu May 4 10:16:08 EDT 2006
excellent tip!
[cohen at glast-jct VTK]$ cd /data0/local/lib/python2.4/site-packages/
[cohen at glast-jct site-packages]$ /data0/local/bin/python
Python 2.4.2 (#3, Apr 21 2006, 11:56:28)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-47)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libvtkCommonPython
>>> libvtkCommonPython.vtkVersion.GetVTKVersion()
'5.0.0'
>>>
so.... somehow, all this part of the code is not exposed as a module to
the vtk wrapper.....
I dont see what I could do wrong that would mess up the install in such
a way....
Well at least I see a few ways I can patch MayaVi locally in order to be
able to run it.....
I do not understand how I can be missing this lib and still be able to
test the python functionalities to vtk fine....
Johann
Charl P. Botha wrote:
> On 5/4/06, Johann Cohen Tanugi <cohen at slac.stanford.edu> wrote:
>
>> [cohen at glast-jct VTK]$ locate libvtkCommonPython
>> /data0/local/lib/python2.4/site-packages/pyvtk/libvtkCommonPython.so
>> /data0/local/lib/libvtkCommonPythonD.so
>
>
> Very strange... go to that directory (i.e. site-packages/pyvtk), then
> startup python and type "import libvtkCommonPython". If this is
> successful, you should be able to do "print
> libvtkCommonPython.vtkVersion.GetVTKVersion()". If not, it should
> give you clues as to the problem.
>
> --
> dr. charl p. botha - http://visualisation.tudelft.nl/
> work: c.p.botha%tudelft.nl other: cpbotha%cpbotha.net
More information about the vtkusers
mailing list