|
From: Nils W. <nw...@ia...> - 2008-07-27 10:46:30
|
Hi all,
I found a new bug
$HOME=/home/nwagner
matplotlib data path
/usr/lib/python2.4/site-packages/matplotlib/mpl-data
loaded rc file /home/nwagner/matplotlibrc
matplotlib version 0.98.3rc1
verbose.level helpful
interactive is False
units is False
platform is linux2
CONFIGDIR=/home/nwagner/.matplotlib
Using fontManager instance from
/home/nwagner/.matplotlib/fontManager.cache
backend WXAgg version 2.5.3.1
spy(K_bc)
File
"/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
line 2237, in spy
b = ishold()
File
"/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
line 466, in ishold
return gca().ishold()
File
"/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
line 566, in gca
ax = gcf().gca(**kwargs)
File
"/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
line 270, in gcf
return figure()
File
"/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
line 247, in figure
FigureClass=FigureClass,
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py",
line 119, in new_figure_manager
frame = FigureFrameWxAgg(num, fig)
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py",
line 1332, in __init__
self.canvas = self.get_canvas(fig)
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py",
line 32, in get_canvas
return FigureCanvasWxAgg(self, -1, fig)
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py",
line 734, in __init__
self.idletimer = wx.CallLater(1,self._onDrawIdle)
AttributeError: 'module' object has no attribute
'CallLater'
Nils
|
|
From: Eric F. <ef...@ha...> - 2008-07-27 17:19:46
|
Nils Wagner wrote: > Hi all, > > I found a new bug > > $HOME=/home/nwagner > matplotlib data path > /usr/lib/python2.4/site-packages/matplotlib/mpl-data > loaded rc file /home/nwagner/matplotlibrc > matplotlib version 0.98.3rc1 > verbose.level helpful > interactive is False > units is False > platform is linux2 > CONFIGDIR=/home/nwagner/.matplotlib > Using fontManager instance from > /home/nwagner/.matplotlib/fontManager.cache > backend WXAgg version 2.5.3.1 > > spy(K_bc) > File > "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", > line 2237, in spy > b = ishold() > File > "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", > line 466, in ishold > return gca().ishold() > File > "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", > line 566, in gca > ax = gcf().gca(**kwargs) > File > "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", > line 270, in gcf > return figure() > File > "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", > line 247, in figure > FigureClass=FigureClass, > File > "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", > line 119, in new_figure_manager > frame = FigureFrameWxAgg(num, fig) > File > "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", > line 1332, in __init__ > self.canvas = self.get_canvas(fig) > File > "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", > line 32, in get_canvas > return FigureCanvasWxAgg(self, -1, fig) > File > "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", > line 734, in __init__ > self.idletimer = wx.CallLater(1,self._onDrawIdle) > AttributeError: 'module' object has no attribute > 'CallLater' It looks like this was introduced in wxPython 2.7.1: http://mail.python.org/pipermail/python-announce-list/2006-October/005326.html I have changed backend_wx to use the backwards-compatible alias, FutureCall. Eric |
|
From: Eric F. <ef...@ha...> - 2008-07-28 18:13:43
|
Nils Wagner wrote: > On Sun, 27 Jul 2008 07:19:24 -1000 > Eric Firing <ef...@ha...> wrote: >> Nils Wagner wrote: >>> Hi all, >>> >>> I found a new bug >>> >>> $HOME=/home/nwagner >>> matplotlib data path >>> /usr/lib/python2.4/site-packages/matplotlib/mpl-data >>> loaded rc file /home/nwagner/matplotlibrc >>> matplotlib version 0.98.3rc1 >>> verbose.level helpful >>> interactive is False >>> units is False >>> platform is linux2 >>> CONFIGDIR=/home/nwagner/.matplotlib >>> Using fontManager instance from >>> /home/nwagner/.matplotlib/fontManager.cache >>> backend WXAgg version 2.5.3.1 >>> >>> spy(K_bc) >>> File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line >>> 2237, in spy >>> b = ishold() >>> File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line >>> 466, in ishold >>> return gca().ishold() >>> File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line >>> 566, in gca >>> ax = gcf().gca(**kwargs) >>> File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line >>> 270, in gcf >>> return figure() >>> File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line >>> 247, in figure >>> FigureClass=FigureClass, >>> File >>> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", >>> line 119, in new_figure_manager >>> frame = FigureFrameWxAgg(num, fig) >>> File >>> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", >>> line 1332, in __init__ >>> self.canvas = self.get_canvas(fig) >>> File >>> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", >>> line 32, in get_canvas >>> return FigureCanvasWxAgg(self, -1, fig) >>> File >>> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", >>> line 734, in __init__ >>> self.idletimer = wx.CallLater(1,self._onDrawIdle) >>> AttributeError: 'module' object has no attribute 'CallLater' >> >> It looks like this was introduced in wxPython 2.7.1: >> http://mail.python.org/pipermail/python-announce-list/2006-October/005326.html >> >> >> I have changed backend_wx to use the backwards-compatible alias, >> FutureCall. >> >> Eric > > Hi Eric, > > Thank you very much ! The next problem is the following > > Traceback (most recent call last): > File > "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", > line 1094, in _onPaint > self.draw(drawDC=drawDC) > File > "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", > line 64, in draw > self.gui_repaint(drawDC=drawDC) > File > "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", > line 995, in gui_repaint > if self.IsShownOnScreen(): > AttributeError: 'FigureCanvasWxAgg' object has no attribute > 'IsShownOnScreen' > > Nils > WxPython experts: what version do we require? If it is earlier than 2.8, then it appears we badly need a testing procedure to ensure compatibility. (A testing procedure for python version compatibility would be nice, also--has anyone looked into what it would take to set up and run a buildbot?) I presume IsShownOnScreen is another 2.8-specific method, but a Google search does not immediately turn up this information, and I don't normally deal with wx, so I have to pass this problem on to someone who does. Eric |
|
From: Paul K. <pki...@ni...> - 2008-07-28 19:33:48
|
On Mon, Jul 28, 2008 at 08:12:50AM -1000, Eric Firing wrote: > Nils Wagner wrote: > > On Sun, 27 Jul 2008 07:19:24 -1000 > > Eric Firing <ef...@ha...> wrote: > >> Nils Wagner wrote: > >>> Hi all, > >>> > >>> I found a new bug > >>> > >>> $HOME=/home/nwagner > >>> matplotlib data path > >>> /usr/lib/python2.4/site-packages/matplotlib/mpl-data > >>> loaded rc file /home/nwagner/matplotlibrc > >>> matplotlib version 0.98.3rc1 > >>> verbose.level helpful > >>> interactive is False > >>> units is False > >>> platform is linux2 > >>> CONFIGDIR=/home/nwagner/.matplotlib > >>> Using fontManager instance from > >>> /home/nwagner/.matplotlib/fontManager.cache > >>> backend WXAgg version 2.5.3.1 > >>> > >>> spy(K_bc) > >>> File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line > >>> 2237, in spy > >>> b = ishold() > >>> File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line > >>> 466, in ishold > >>> return gca().ishold() > >>> File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line > >>> 566, in gca > >>> ax = gcf().gca(**kwargs) > >>> File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line > >>> 270, in gcf > >>> return figure() > >>> File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line > >>> 247, in figure > >>> FigureClass=FigureClass, > >>> File > >>> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", > >>> line 119, in new_figure_manager > >>> frame = FigureFrameWxAgg(num, fig) > >>> File > >>> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", > >>> line 1332, in __init__ > >>> self.canvas = self.get_canvas(fig) > >>> File > >>> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", > >>> line 32, in get_canvas > >>> return FigureCanvasWxAgg(self, -1, fig) > >>> File > >>> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", > >>> line 734, in __init__ > >>> self.idletimer = wx.CallLater(1,self._onDrawIdle) > >>> AttributeError: 'module' object has no attribute 'CallLater' > >> > >> It looks like this was introduced in wxPython 2.7.1: > >> http://mail.python.org/pipermail/python-announce-list/2006-October/005326.html > >> > >> > >> I have changed backend_wx to use the backwards-compatible alias, > >> FutureCall. > >> > >> Eric > > > > Hi Eric, > > > > Thank you very much ! The next problem is the following > > > > Traceback (most recent call last): > > File > > "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", > > line 1094, in _onPaint > > self.draw(drawDC=drawDC) > > File > > "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", > > line 64, in draw > > self.gui_repaint(drawDC=drawDC) > > File > > "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", > > line 995, in gui_repaint > > if self.IsShownOnScreen(): > > AttributeError: 'FigureCanvasWxAgg' object has no attribute > > 'IsShownOnScreen' > > > > Nils > > > > WxPython experts: what version do we require? If it is earlier than > 2.8, then it appears we badly need a testing procedure to ensure > compatibility. (A testing procedure for python version compatibility > would be nice, also--has anyone looked into what it would take to set up > and run a buildbot?) Clearly I'm developing on 2.8, otherwise I wouldn't be introducing so many issues for older versions. What version do people want supported? > I presume IsShownOnScreen is another 2.8-specific method, but a Google > search does not immediately turn up this information, and I don't > normally deal with wx, so I have to pass this problem on to someone who > does. [41233]: IsVisible --> IsShownOnScreen http://trac.wxwidgets.org/changeset/41210 The date on this patch is 2006-09-14, so almost two years old. It seems like the old name is removed, so it is one or the other. No indication on trac of which release number. - Paul |
|
From: John H. <jd...@gm...> - 2008-07-29 17:22:14
|
On Mon, Jul 28, 2008 at 2:32 PM, Paul Kienzle <pki...@ni...> wrote: > Clearly I'm developing on 2.8, otherwise I wouldn't be introducing > so many issues for older versions. What version do people want > supported? For wxagg, we would like to support 2.6.3.2.2 and later (if it is not too much work) since this is the version in lenny testing. I think they've had a little trouble For wx native rendering, we must use 2.8 or later (if we are going to support this at all). So if you could add the IsVisible compatibility layer to wxagg, that would be great., this would be ideal JDH |
|
From: Nils W. <nw...@ia...> - 2008-07-29 16:19:33
|
On Tue, 29 Jul 2008 12:10:09 -0400 Paul Kienzle <pki...@ni...> wrote: > On Tue, Jul 29, 2008 at 05:46:59PM +0200, Nils Wagner >wrote: >> On Mon, 28 Jul 2008 15:32:38 -0400 >> >> WxPython experts: what version do we require? If it >>is >> >>earlier than >> >> 2.8, then it appears we badly need a testing >>procedure >> >>to ensure >> >> compatibility. (A testing procedure for python >>version >> >>compatibility >> >> would be nice, also--has anyone looked into what it >> >>would take to set up >> >> and run a buildbot?) > > Rather than cycling through the mailing list for each > individual problem, can you please put together a patch > that works on wx-2.6? > > Preferably program to the 2.8 interface so that we don't > build up too much cruft. For example, >IsVisible->IsShownOnScreen > can be handled in __init__ with (untested!): > > if not hasattr(self,'IsShownOnScreen'): > self.IsShownOnScreen = self.IsVisible > > I would like to test the changes on 2.8, but I'm gone > July 31 to after Scipy. > > - Paul Hi Paul, Thank you for your prompt reply. Where should I add the lines if not hasattr(self,'IsShownOnScreen'): self.IsShownOnScreen = self.IsVisible I assume the corresponding file is in the directory matplotlib/lib/matplotlib/backends Is that correct ? I will try it asap. Thanks in advance Nils |
|
From: John H. <jd...@gm...> - 2008-07-29 18:01:08
|
On Tue, Jul 29, 2008 at 11:19 AM, Nils Wagner <nw...@ia...> wrote: > Is that correct ? > > I will try it asap. > > Thanks in advance OK, I just added a compatibility method for isShownOnScreen. Can you give svn another test drive with your wx version, Nils? Thanks, JDH |
|
From: Nils W. <nw...@ia...> - 2008-07-29 18:39:24
|
On Tue, 29 Jul 2008 13:01:04 -0500
"John Hunter" <jd...@gm...> wrote:
> On Tue, Jul 29, 2008 at 11:19 AM, Nils Wagner
> <nw...@ia...> wrote:
>
>> Is that correct ?
>>
>> I will try it asap.
>>
>> Thanks in advance
>
> OK, I just added a compatibility method for
>isShownOnScreen. Can you
> give svn another test drive with your wx version, Nils?
>
> Thanks,
> JDH
Hi John,
My wxpython version (2.5.3.1) seems to be outdated.
Anyway, is there any workaround ?
File
"/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
line 2237, in spy
b = ishold()
File
"/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
line 466, in ishold
return gca().ishold()
File
"/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
line 566, in gca
ax = gcf().gca(**kwargs)
File
"/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
line 270, in gcf
return figure()
File
"/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
line 247, in figure
FigureClass=FigureClass,
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py",
line 125, in new_figure_manager
frame = FigureFrameWxAgg(num, fig)
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py",
line 1346, in __init__
self.canvas = self.get_canvas(fig)
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py",
line 32, in get_canvas
return FigureCanvasWxAgg(self, -1, fig)
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py",
line 701, in __init__
self.IsShownOnScreen = self.IsVisible
AttributeError: 'FigureCanvasWxAgg' object has no
attribute 'IsVisible'
Nils
|
|
From: Paul K. <pki...@ni...> - 2008-07-29 21:38:51
|
On Tue, Jul 29, 2008 at 08:39:10PM +0200, Nils Wagner wrote:
> On Tue, 29 Jul 2008 13:01:04 -0500
> "John Hunter" <jd...@gm...> wrote:
> > On Tue, Jul 29, 2008 at 11:19 AM, Nils Wagner
> > <nw...@ia...> wrote:
> >
> >> Is that correct ?
> >>
> >> I will try it asap.
> >>
> >> Thanks in advance
> >
> > OK, I just added a compatibility method for
> >isShownOnScreen. Can you
> > give svn another test drive with your wx version, Nils?
> >
> > Thanks,
> > JDH
>
> Hi John,
>
> My wxpython version (2.5.3.1) seems to be outdated.
>
> Anyway, is there any workaround ?
>
>
> File
> "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
> line 2237, in spy
> b = ishold()
> File
> "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
> line 466, in ishold
> return gca().ishold()
> File
> "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
> line 566, in gca
> ax = gcf().gca(**kwargs)
> File
> "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
> line 270, in gcf
> return figure()
> File
> "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py",
> line 247, in figure
> FigureClass=FigureClass,
> File
> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py",
> line 125, in new_figure_manager
> frame = FigureFrameWxAgg(num, fig)
> File
> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py",
> line 1346, in __init__
> self.canvas = self.get_canvas(fig)
> File
> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py",
> line 32, in get_canvas
> return FigureCanvasWxAgg(self, -1, fig)
> File
> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py",
> line 701, in __init__
> self.IsShownOnScreen = self.IsVisible
> AttributeError: 'FigureCanvasWxAgg' object has no
> attribute 'IsVisible'
Okay, how about
if not hasattr(self,'IsVisible'):
self.IsVisible = lambda self: True
in __init__
That way it will always think it is visible.
- Paul
|
|
From: John H. <jd...@gm...> - 2008-07-29 21:43:46
|
On Tue, Jul 29, 2008 at 4:38 PM, Paul Kienzle <pki...@ni...> wrote: > Okay, how about > if not hasattr(self,'IsVisible'): > self.IsVisible = lambda self: True > in __init__ > > That way it will always think it is visible. OK, Nils, I committed a minor variant of that in r5926. Test again... JDH |
|
From: Nils W. <nw...@ia...> - 2008-07-30 15:58:25
|
On Tue, 29 Jul 2008 16:43:42 -0500
"John Hunter" <jd...@gm...> wrote:
> On Tue, Jul 29, 2008 at 4:38 PM, Paul Kienzle
><pki...@ni...> wrote:
>
>> Okay, how about
>> if not hasattr(self,'IsVisible'):
>> self.IsVisible = lambda self: True
>> in __init__
>>
>> That way it will always think it is visible.
>
> OK, Nils, I committed a minor variant of that in r5926.
> Test again...
>
> JDH
Hi John,
Sorry for the delay and thank you for your patience.
Here is the output of the "never-ending story"
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py",
line 1099, in _onPaint
self.draw(drawDC=drawDC)
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py",
line 64, in draw
self.gui_repaint(drawDC=drawDC)
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py",
line 1000, in gui_repaint
if self.IsShownOnScreen():
TypeError: <lambda>() takes exactly 1 argument (0 given)
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py",
line 1101, in _onPaint
self.gui_repaint(drawDC=drawDC)
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py",
line 1000, in gui_repaint
if self.IsShownOnScreen():
TypeError: <lambda>() takes exactly 1 argument (0 given)
BTW, the entries are identical for both revisions.
Is that intended ?
r5923 | jdh2358 | 2008-07-29 20:01:16 +0200 (Di, 29 Jul
2008) | 1 line
special case contains test for degenerate rectangle
------------------------------------------------------------------------
r5922 | jdh2358 | 2008-07-29 19:47:50 +0200 (Di, 29 Jul
2008) | 1 line
special case contains test for degenerate rectangle
|
|
From: John H. <jd...@gm...> - 2008-07-30 17:31:01
|
On Wed, Jul 30, 2008 at 10:58 AM, Nils Wagner <nw...@ia...> wrote: > Sorry for the delay and thank you for your patience. > Here is the output of the "never-ending story" Could you try again with r5932 |