<div dir="ltr">Hi All,<div><br></div><div><div>RogueResearch is running Python 2.5.</div><div><br></div><div>Both TestSetGet.py and TestEmptyInput.py fail at this line:</div><div>    vtkClasses = inspect.getmembers(</div><div>                    vtk, inspect.isclass and not inspect.isabstract)</div><div>with this error:</div><div>    vtk, inspect.isclass and not inspect.isabstract)</div><div>AttributeError: 'module' object has no attribute 'isabstract'</div><div><br></div><div>Apparently the isabstract attribute was introduced in Python 2.6.</div><div><br></div><div>From what I can see there are these options:</div><div><br></div><div>1) Skip these two tests by checking the version of Python used when VTK is built.</div><div>2) Extend option 1 by by creating a global variables in ./Cmake/VTKConfig.cmake.</div><div>3) Do nothing, and hope Python 2.5 is eventually deprecated.</div><div><br></div><div>My preferred option is 2) as this could be useful when VTK supports Python 3 e.g it may be useful to know which version of Python VTK is wrapped with, in the same way as we use VTK_QT_VERSION. If this is Ok I propose calling it VTK_WRAPPING_PYTHON_VERSION to distinguish it from VTK_PYTHON_VERSION in ./CmakeLists.txt (which can have the values 2, 2.x, 3, 3.x etc). VTK_WRAPPING_PYTHON_VERSION would be built from PYTHON_MAJOR_VERSION and PYTHON_MINOR_VERSION which are defined in ./CMake/FindPythonLibs.cmake.</div><div>This would require just adding one line to ./CMake/<a href="http://VTKConfig.cmake.in">VTKConfig.cmake.in</a>, something like this:</div><div>2.1)</div><div>SET(VTK_WRAPPING_PYTHON_VERSION "@PYTHON_MAJOR_VERSION@.@PYTHON_MINOR_VERSION@") </div><div><br></div><div>or ... would it be better to simply just do this in this file, since these are defined in ./Utilities/Python/<a href="http://vtkPythonConfigure.h.in">vtkPythonConfigure.h.in</a>?</div><div>2.2)</div><div>SET(VTK_PYTHON_MAJOR_VERSION "@VTK_PYTHON_MAJOR_VERSION @")</div><div>SET(VTK_PYTHON_MINOR_VERSION"@VTK_PYTHON_MINOR_VERSION@")</div><div><br></div><div> I prefer option 2) and, on reflection, I would go with with 2.2) <br></div><div><br></div><div>Please let me know what you think would be the best option.</div><div><br></div><div>Regards</div><div>    Andrew</div><div>    </div><div><br></div>-- <br><div class="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div></div>