[vtkusers] Problem VTK4 + python 2.2
David Gobbi
dgobbi at irus.rri.ca
Fri Jan 11 22:40:01 EST 2002
Hi Emmanual,
Sorry for taking so long to get to this, but I just tried
VTK with python 2.2 today.
At least for me, the VTK 4.X and python2.2 combination seems
to work fine. I built VTK with shared libraries.
My suspicion is that if you do a "make clean" of VTK and rebuild,
then the problem will go away. Also make sure that CMakeCache.txt
is pointing to the correct set of header files for python2.2.
You can also do a quick check as follows:
>> data = vtkImageData()
>> type(data)
<type 'vtkobject'>
If the type of a vtk class instance is not 'vtkobject' then something
is wrong.
- David
--
David Gobbi, MSc dgobbi at irus.rri.ca
Advanced Imaging Research Group
Robarts Research Institute, University of Western Ontario
On Fri, 11 Jan 2002, Emmanuel Olart wrote:
> Hello,
>
> I just installed python 2.2 and vtk 4 on a new computer in order to test
> all my previous modules on this new environment (perviously python 2.1
> and vtk 3.2 for me)
>
> I encounter strange errors that I don t understand :
>
>
>
> /Python 2.2 (#3, Jan 10 2002, 10:43:22) //
> //[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2//
> //Type "help", "copyright", "credits" or "license" for more information.//
> //>>> from vtkpython import *//
> //>>> data=vtkImageData()//
> //>>> reslice=vtkImageReslice()//
> //>>> reslice.SetInput(data)//
> //Traceback (most recent call last)://
> // File "<stdin>", line 1, in ?//
> //ValueError: method requires a VTK object//
> /
> Does anyone ever encountered this and knows a solution ?
>
> Regards
>
> Emmanuel
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list