<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hello Goyo, Thanks so much!<br>It worked!<br>I did what you wrote, because updating osgeo4w didnt work.<br>I´ve tried more than once and there were an error whith Python.<br><br>Betina<br><br>--- El <b>vie 22-abr-11, Goyo <i><goyodiaz@gmail.com></i></b> escribió:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: Goyo <goyodiaz@gmail.com><br>Asunto: Re: [Qgis-user] plugin Statistic dont work<br>Para: "Betina Zucchino" <bzucchino@yahoo.com.ar><br>Cc: "qgis-user" <qgis-user@lists.osgeo.org><br>Fecha: viernes, 22 de abril de 2011, 18:57<br><br><div class="plainMail">Hola Bettina,<br><br>the bug is now closed as fixed (thanks, Jürgen) so updating osgeo4w<br>should be enough.<br><br>If you used the standalone installer I don't know if you can update.<br>If you don't then do
 this:<br><br>1. Open C:\OSGeo4W\apps\Python25\lib\site-packages\matplotlib\backends\backend_agg.py<br>in notepad or any text editor. The exact path can vary if you<br>installed in a custom directory.<br><br>2. Look for this code (it should be lines 319, 320 and 321):<br><br>try: self._lastKey, self.renderer<br>except AttributeError: need_new_renderer = True<br>else:  need_new_renderer = (self._lastKey != key)<br><br>3. Change the second line (320) to this:<br>except (AttributeError, TypeError): need_new_renderer = True<br><br>4. Save changes and try again.<br><br>You can make a backup of the file before making any changes, just for<br>safety. But now that the bug is fixed updating osgeo4w is the right<br>way to go.<br><br>Goyo<br><br>2011/4/22 Betina Zucchino <<a ymailto="mailto:bzucchino@yahoo.com.ar" href="/mc/compose?to=bzucchino@yahoo.com.ar">bzucchino@yahoo.com.ar</a>><br>><br>> Hola Goyo:<br>> Hablas en español?<br>> Te
 agradezco lo que me respondiste. Pero no manejo Python y no se que es lo que tendría que hacer con eso que figura en la página... Te pido disculpas, soy usuaria de qgis, pero sin idea de programación.<br>><br>> Lo que alcancé a hacer es abrir una ventana de python 2.7 y pegar todas las sentencias que figuran en la pagina sin saber cómo continuar. Hice Debug...<br>><br>> En fin,  muchas gracias igualmente.<br>><br>><br>> Betina<br>><br>> --- El vie 22-abr-11, Goyo <<a ymailto="mailto:goyodiaz@gmail.com" href="/mc/compose?to=goyodiaz@gmail.com">goyodiaz@gmail.com</a>> escribió:<br>><br>> De: Goyo <<a ymailto="mailto:goyodiaz@gmail.com" href="/mc/compose?to=goyodiaz@gmail.com">goyodiaz@gmail.com</a>><br>> Asunto: Re: [Qgis-user] plugin Statistic dont work<br>> Para: "Betina Zucchino" <<a ymailto="mailto:bzucchino@yahoo.com.ar"
 href="/mc/compose?to=bzucchino@yahoo.com.ar">bzucchino@yahoo.com.ar</a>><br>> Cc: <a ymailto="mailto:qgis-user@lists.osgeo.org" href="/mc/compose?to=qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>> Fecha: viernes, 22 de abril de 2011, 17:00<br>><br>> 2011/4/22 Betina Zucchino <<a ymailto="mailto:bzucchino@yahoo.com.ar" href="/mc/compose?to=bzucchino@yahoo.com.ar">bzucchino@yahoo.com.ar</a>><br>> ><br>> > Traceback (most recent call last):<br>> >   File "C:\OSGeo4W\apps\Python25\lib\site-packages\matplotlib\backends\backend_qt4.py", line 168, in resizeEvent<br>> >     self.draw()<br>> >   File "C:\OSGeo4W\apps\Python25\lib\site-packages\matplotlib\backends\backend_qt4agg.py", line 130, in draw<br>> >     FigureCanvasAgg.draw(self)<br>> >   File "C:\OSGeo4W\apps\Python25\lib\site-packages\matplotlib\backends\backend_agg.py", line 313,
 in draw<br>> >     self.renderer = self.get_renderer()<br>> >   File "C:\OSGeo4W\apps\Python25\lib\site-packages\matplotlib\backends\backend_agg.py", line 319, in get_renderer<br>> >     try: self._lastKey, self.renderer<br>> > TypeError: 'sip.methoddescriptor' object is not callable<br>><br>> There is an incompatibility between python and sip versions in osgeo4w<br>> affecting the qt4agg backend in matplotlib. I filed a bug about this<br>> some time ago[1]. I had to patch matplotlib in order to get the qt4agg<br>> backend working in osgeo4w, see the bug report for details.<br>><br>> Goyo<br>><br>> [1] <a href="http://trac.osgeo.org/osgeo4w/ticket/213" target="_blank">http://trac.osgeo.org/osgeo4w/ticket/213</a><br></div></blockquote></td></tr></table>