<html>
<head>
</head>
<body>
Hi David,<br>
<br>
Thx for your answer<br>
<br>
After trying several times, i managed to make python 2.2 and vtk 4 to work
together.<br>
The only problem that was remaining was a strange X freeze happening when
displaying a vtkRenderWindows with wxPython .<br>
<br>
I was told to modify the vtk.py by Prabbhu anf this now works fine<br>
<br>
Thx for help<br>
<br>
Regards<br>
<br>
Emmanuel<br>
<br>
<br>
David Gobbi wrote:<br>
<blockquote type="cite" cite="mid:Pine.LNX.4.33.0201112231360.19448-100000@banquo.irus.rri.on.ca">
<pre wrap="">Hi Emmanual,<br><br>Sorry for taking so long to get to this, but I just tried<br>VTK with python 2.2 today.<br><br>At least for me, the VTK 4.X and python2.2 combination seems<br>to work fine. I built VTK with shared libraries.<br><br>My suspicion is that if you do a "make clean" of VTK and rebuild,<br>then the problem will go away. Also make sure that CMakeCache.txt<br>is pointing to the correct set of header files for python2.2.<br><br>You can also do a quick check as follows:<br><br></pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">data = vtkImageData()<br>type(data)<br></pre>
</blockquote>
</blockquote>
<pre wrap=""><!----><type 'vtkobject'><br><br>If the type of a vtk class instance is not 'vtkobject' then something<br>is wrong.<br><br> - David<br><br>--<br> David Gobbi, MSc <a class="moz-txt-link-abbreviated" href="mailto:dgobbi@irus.rri.ca">dgobbi@irus.rri.ca</a><br> Advanced Imaging Research Group<br> Robarts Research Institute, University of Western Ontario<br><br>On Fri, 11 Jan 2002, Emmanuel Olart wrote:<br><br></pre>
<blockquote type="cite">
<pre wrap="">Hello,<br><br>I just installed python 2.2 and vtk 4 on a new computer in order to test<br>all my previous modules on this new environment (perviously python 2.1<br>and vtk 3.2 for me)<br><br>I encounter strange errors that I don t understand :<br><br><br><br>/Python 2.2 (#3, Jan 10 2002, 10:43:22) //<br>//[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2//<br>//Type "help", "copyright", "credits" or "license" for more information.//<br>//>>> from vtkpython import *//<br>//>>> data=vtkImageData()//<br>//>>> reslice=vtkImageReslice()//<br>//>>> reslice.SetInput(data)//<br>//Traceback (most recent call last)://<br>// File "<stdin>", line 1, in ?//<br>//ValueError: method requires a VTK object//<br>/<br>Does anyone ever encountered this and knows a solution ?<br><br>Regards<br><br>Emmanuel<br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep message
s on-topic. Check the FAQ at: <a class="moz-txt-link-rfc2396E" href="http://public.kitware.com/cgi-bin/vtkfaq"><http://public.kitware.com/cgi-bin/vtkfaq></a><br>Follow this link to subscribe/unsubscribe:<br><a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br><br></pre>
</blockquote>
<pre wrap=""><!----><br><br><br></pre>
</blockquote>
<br>
<br>
</body>
</html>