View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014491ParaView(No Category)public2013-12-28 00:222014-01-11 08:39
ReporterCory Quammen 
Assigned ToCory Quammen 
PriorityhighSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versiongit-master 
Target VersionFixed in Version4.1 
Summary0014491: Python View fails with 'Not a buffer object' message
DescriptionCreating 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 "<string>", line 1, in <module>
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.
TagsNo tags attached.
ProjectTBD
Topic Name14491-fix-matplotlib-buffer-object-access
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0032081)
Cory Quammen (developer)
2013-12-28 00:34

commit 505bff5635db51a5c60264361e7febc0b4430bc8
Author: Cory Quammen <cory.quammen@kitware.com>
Date: Sat Dec 28 00:24:59 2013 -0500

    Fix problem reading buffer from matplotlib
    
    matplotlib.backends.backend_agg.FigureCanvasAgg.print_to_buffer()
    prints an image to an old-style Python buffer object and ParaView was
    using the API for the new-style Python buffer object. Serendipitously,
    this works in Python 2.7.5 (on my development machine), but that is
    not so on other Python versions. Switched to using the API for the
    old-style buffer object and verified that it works with Python 2.7.2.
    
    Change-Id: Idfa91c27109756e275d690229865e5f648249bda
(0032088)
Utkarsh Ayachit (administrator)
2013-12-30 10:38

Topics merged into master:
        0014452_fix_animation_in_python
        14368-toolbar
        14383-manual-tfer-function-control-points
(VTK) 14486_enable_particlepaths_optimizations
        14488-fix-mpi-dependent-proxies
        14491-fix-matplotlib-buffer-object-access
        pv-collaboration-widget-state
(VTK) pvweb-extend-protocol-list
        pvweb-fix-ipython-doc
(VTK) remove_sesame_reader
(0032141)
Alan Scott (manager)
2014-01-07 17:05

Developer tag in git. Closing untested.

 Issue History
Date Modified Username Field Change
2013-12-28 00:22 Cory Quammen New Issue
2013-12-28 00:22 Cory Quammen Assigned To => Cory Quammen
2013-12-28 00:34 Cory Quammen Topic Name => 14491-fix-matplotlib-buffer-object-access
2013-12-28 00:34 Cory Quammen Note Added: 0032081
2013-12-28 00:34 Cory Quammen Status backlog => gatekeeper review
2013-12-28 00:34 Cory Quammen Resolution open => fixed
2013-12-30 10:37 Utkarsh Ayachit Fixed in Version => git-master
2013-12-30 10:38 Utkarsh Ayachit Status gatekeeper review => customer review
2013-12-30 10:38 Utkarsh Ayachit Note Added: 0032088
2014-01-07 17:05 Alan Scott Note Added: 0032141
2014-01-07 17:05 Alan Scott Status customer review => closed
2014-01-11 08:39 Utkarsh Ayachit Fixed in Version git-master => 4.1


Copyright © 2000 - 2018 MantisBT Team