[vtkusers] Problem VTK4 + python 2.2
Emmanuel Olart
olart at theralys.com
Mon Jan 14 03:58:28 EST 2002
Hi David,
Thx for your answer
After trying several times, i managed to make python 2.2 and vtk 4 to
work together.
The only problem that was remaining was a strange X freeze happening
when displaying a vtkRenderWindows with wxPython .
I was told to modify the vtk.py by Prabbhu anf this now works fine
Thx for help
Regards
Emmanuel
David Gobbi wrote:
>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
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020114/7897f118/attachment.htm>
More information about the vtkusers
mailing list