Python View fails with 'Not a buffer object' message
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Creating new Python View results in these error messages:
ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/ClientServerCore/Rendering/vtkMatplotlibUtilities.cxx, line 315 vtkMatplotlibUtilities (0x4290dc0): Not a buffer object
Traceback (most recent call last): File "", line 1, in NameError: name 'inf' is not defined ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/ClientServerCore/Rendering/vtkMatplotlibUtilities.cxx, line 315 vtkMatplotlibUtilities (0x4290dc0): Not a buffer object
The problem is that matplotlib.backends.backend_agg.FigureCanvasAgg prints an image to an old-style Python buffer and ParaView is using the API for the new-style Python buffer. Serendipitously, this works in Python 2.7.5, but not on other Python versions.