Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-11 Thread John Hunter
On Sat, Jul 11, 2009 at 1:18 PM, Eric Firing wrote: >> These things are hard problems, thanks for your work. > > Thank you for the testing and reporting.  I don't normally use wx and I am > not willing to fiddle with multiple versions of it, so I am working almost > blind on this. This is working

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-11 Thread Eric Firing
Gael Varoquaux wrote: > On Sat, Jul 11, 2009 at 12:49:03PM -0500, John Hunter wrote: >>> Can you do an 'import wxversion; print wxversion.__file__', so that we >>> understand better why you are getting these warnings. > >> In [1]: import wxversion > >> In [2]: print wxversion.__file__ >> /Library

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-11 Thread Gael Varoquaux
On Sat, Jul 11, 2009 at 08:18:25AM -1000, Eric Firing wrote: > Thank you for the testing and reporting. I don't normally use wx and I > am not willing to fiddle with multiple versions of it, so I am working > almost blind on this. I use wx a lot, and with MPL embedded in other programs, so I

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-11 Thread Eric Firing
Gael Varoquaux wrote: > On Sat, Jul 11, 2009 at 08:10:23AM -1000, Eric Firing wrote: >> OK, I tried again in svn 7256. I think this is a little cleaner. More >> diagnostic information could still be added to the exception messages if >> this is going to be a continuing problem. > > It seems

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-11 Thread Gael Varoquaux
On Sat, Jul 11, 2009 at 08:10:23AM -1000, Eric Firing wrote: > OK, I tried again in svn 7256. I think this is a little cleaner. More > diagnostic information could still be added to the exception messages if > this is going to be a continuing problem. It seems to work for me in all the confi

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-11 Thread Gael Varoquaux
On Sat, Jul 11, 2009 at 12:49:03PM -0500, John Hunter wrote: > > Can you do an 'import wxversion; print wxversion.__file__', so that we > > understand better why you are getting these warnings. > In [1]: import wxversion > In [2]: print wxversion.__file__ > /Library/Frameworks/Python.framework/Ve

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-11 Thread John Hunter
On Sat, Jul 11, 2009 at 12:43 PM, Gael Varoquaux wrote: > On Sat, Jul 11, 2009 at 12:38:13PM -0500, John Hunter wrote: >> If I can speak for the typical user, these kinds of warnings are >> usually annoying and not that helpful.  I am a naive wx user -- I >> installed it many moons ago from a binar

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-11 Thread Gael Varoquaux
On Sat, Jul 11, 2009 at 12:38:13PM -0500, John Hunter wrote: > If I can speak for the typical user, these kinds of warnings are > usually annoying and not that helpful. I am a naive wx user -- I > installed it many moons ago from a binary when I installed python and > haven't thought about it sinc

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-11 Thread John Hunter
On Fri, Jul 10, 2009 at 4:33 PM, Eric Firing wrote: > Gael Varoquaux wrote: >> On Fri, Jul 10, 2009 at 11:05:24PM +0200, Gael Varoquaux wrote: Committed to svn.  Please check it. >> >>> Certainly does work betters. >> >> Actually, I beg your pardon, but it does not really work: if you have >>

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-10 Thread Eric Firing
Gael Varoquaux wrote: > On Fri, Jul 10, 2009 at 11:05:24PM +0200, Gael Varoquaux wrote: >>> Committed to svn. Please check it. > >> Certainly does work betters. > > Actually, I beg your pardon, but it does not really work: if you have > 2.6 and 2.8 installed, it will still import 2.6, which is

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-10 Thread Gael Varoquaux
On Fri, Jul 10, 2009 at 11:05:24PM +0200, Gael Varoquaux wrote: > > Committed to svn. Please check it. > Certainly does work betters. Actually, I beg your pardon, but it does not really work: if you have 2.6 and 2.8 installed, it will still import 2.6, which is not what you want. Here is a pat

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-10 Thread Gael Varoquaux
On Fri, Jul 10, 2009 at 09:41:30AM -1000, Eric Firing wrote: >> OK, but right now MPL is broken with my version of wxversion, which is the >> one shipped by default in Ubuntu. So it is broken for a lot of user. > > Are you sure? Could you be pulling in some other wxversion? The only > other per

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-10 Thread Eric Firing
Gael Varoquaux wrote: > On Fri, Jul 10, 2009 at 08:12:14AM -1000, Eric Firing wrote: >> Gael Varoquaux wrote: >>> It seems that matplotlib needs the following patch for wxPython 2.8 >>> (traceback hard to replicate, as you need to import wx before importing >>> matplotlib): > >>> Index: lib/matplo

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-10 Thread Eric Firing
Gael Varoquaux wrote: > It seems that matplotlib needs the following patch for wxPython 2.8 > (traceback hard to replicate, as you need to import wx before importing > matplotlib): > > Index: lib/matplotlib/backends/backend_wx.py > ==

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-10 Thread Gael Varoquaux
On Fri, Jul 10, 2009 at 08:12:14AM -1000, Eric Firing wrote: > Gael Varoquaux wrote: >> It seems that matplotlib needs the following patch for wxPython 2.8 >> (traceback hard to replicate, as you need to import wx before importing >> matplotlib): >> Index: lib/matplotlib/backends/backend_wx.py >>

[matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-10 Thread Gael Varoquaux
It seems that matplotlib needs the following patch for wxPython 2.8 (traceback hard to replicate, as you need to import wx before importing matplotlib): Index: lib/matplotlib/backends/backend_wx.py === --- lib/matplotlib/backends/back

[matplotlib-devel] Fixing matplotlib for wxPython 2.8

2009-07-10 Thread Gael Varoquaux
It seems that the following fix is necessary for matplolitb to work wxPython 2.8. Index: lib/matplotlib/backends/backend_wx.py === --- lib/matplotlib/backends/backend_wx.py (revision 7250) +++ lib/matplotlib/backends/backend_wx.py