Ginput bug

Hi,

I just tried ginput with the latest SVN (gtkagg backend) and it seemed
to work fine. I recently have had problems with numpy, scipy,
matplotlib and/or wx getting out of sync in terms of binary
compatibility. Perhaps a rebuild of one or more of those will fix
things for you?

Cheers,
David

···

On Thu, 2008-09-11 at 11:13 -0700, matplotlib-devel-request@lists.sourceforge.net wrote:

Message: 2
Date: Tue, 9 Sep 2008 17:18:05 +0200
From: " St?fan van der Walt " <stefan@...337...>
Subject: [matplotlib-devel] Ginput bug
To: matplotlib-devel@...56...
Message-ID:
        <9457e7c80809090818yc439020va5226056e6ac3f9d@...150...>
Content-Type: text/plain; charset=ISO-8859-1

Hi all,

I noticed that `ginput` no longer works (tested with SVN trunk). Is
this a known problem?

Kind regards,
St?fan

---------------------------------------------------------------------------
PyDeadObjectError Traceback (most recent call
last)

/Users/stefan/<ipython console> in <module>()

/Users/stefan/lib/python2.5/site-packages/matplotlib/pyplot.pyc in
ginput(*args, **kwargs)
    353 If *timeout* is negative, does not timeout.
    354 """
--> 355 return gcf().ginput(*args, **kwargs)
    356 if Figure.ginput.__doc__ is not None:
    357 ginput.__doc__ = dedent(Figure.ginput.__doc__)

/Users/stefan/lib/python2.5/site-packages/matplotlib/figure.pyc in
ginput(self, n, timeout, show_clicks)
   1039 blocking_mouse_input = BlockingMouseInput(self)
   1040 return blocking_mouse_input(n=n, timeout=timeout,
-> 1041 show_clicks=show_clicks)
   1042
   1043 def waitforbuttonpress(self, timeout=-1):

/Users/stefan/lib/python2.5/site-packages/matplotlib/blocking_input.pyc
in __call__(self, n, timeout, show_clicks)
    235 self.clicks = []
    236 self.marks = []
--> 237 BlockingInput.__call__(self,n=n,timeout=timeout)
    238
    239 return self.clicks

/Users/stefan/lib/python2.5/site-packages/matplotlib/blocking_input.pyc
in __call__(self, n, timeout)
    105 finally: # Run even on exception like ctrl-c
    106 # Disconnect the callbacks
--> 107 self.cleanup()
    108
    109 # Return the events in this case

/Users/stefan/lib/python2.5/site-packages/matplotlib/blocking_input.pyc
in cleanup(self)
    222 mark.remove()
    223 self.marks = []
--> 224 self.fig.canvas.draw()
    225
    226 # Call base class to remove callbacks

/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.pyc
in __getattr__(self, *args)
  14312 if not hasattr(self, "_name"):
  14313 self._name = "[unknown]"
> 14314 raise PyDeadObjectError(self.attrStr % self._name)
  14315
  14316 def __nonzero__(self):

PyDeadObjectError: The C++ part of the FigureCanvasWxAgg object has
been deleted, attribute access no longer allowed.

--
**********************************
David M. Kaplan
Charge de Recherche 1
Institut de Recherche pour le Developpement
Centre de Recherche Halieutique Mediterraneenne et Tropicale
av. Jean Monnet
B.P. 171
34203 Sete cedex
France

Phone: +33 (0)4 99 57 32 27
Fax: +33 (0)4 99 57 32 95
http://www.ur097.ird.fr/team/dkaplan/index.html
**********************************