From: Benjamin R. <ben...@ou...> - 2011-05-05 21:18:03
|
There seems to be an odd error that comes up when exiting python after using matplotlib with gtkagg backend. I only notice this error if I do not display the figure (i.e., only saving figures in a headless mode) and during the test. Also, this is with matplotlib master branch. I have not tested this with any other branch. Here is the error message: Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/usr/lib/python2.6/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/home/bvr/Programs/matplotlib/lib/matplotlib/_pylab_helpers.py", line 82, in destroy_all manager.destroy() File "/home/bvr/Programs/matplotlib/lib/matplotlib/backends/backend_gtk.py", line 552, in destroy self.canvas.destroy() AttributeError: FigureManagerGTKAgg instance has no attribute 'canvas' Error in sys.exitfunc: Traceback (most recent call last): File "/usr/lib/python2.6/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/home/bvr/Programs/matplotlib/lib/matplotlib/_pylab_helpers.py", line 82, in destroy_all manager.destroy() File "/home/bvr/Programs/matplotlib/lib/matplotlib/backends/backend_gtk.py", line 552, in destroy self.canvas.destroy() AttributeError: FigureManagerGTKAgg instance has no attribute 'canvas' This happens with both python 2.6 and 2.7. I have not tested any other version. Ben Root |