[matplotlib-devel] Bug in 1.3.0: AttributeError: 'NavigationToolbar2TkAgg' object has no attribute 'draw_idle'
Hi, I've just installed matplotlib 1.3.0 and run into the following error when using the home button of a figure(): Exception in Tkinter callback Traceback (most recent call last): File C:\Python27\lib\lib-tk\Tkinter.py, line 1410, in __call__ return self.func(*args) File C:\Python27\lib\site-packages\matplotlib\backend_bases.py, line 2745, in home self._update_view() File C:\Python27\lib\site-packages\matplotlib\backend_bases.py, line 3149, in _update_view self.draw_idle() AttributeError: 'NavigationToolbar2TkAgg' object has no attribute 'draw_idle' In fact NavigationToolbar2, inherited by NavigationToolbas2TkAgg, calls draw_idle(), in the update() method, but the definition of draw_idle() is missing, so this seems to be a bug. Best Regards, Lorenzo -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Bug in 1.3.0: AttributeError: 'NavigationToolbar2TkAgg' object has no attribute 'draw_idle'
This is addressed on the master branch via #2319, but the commit where the problem was introduced is not included in 1.3.0, so I am not sure what is going on. Although, it does look like the fix should be cherry picked to the 1.3.x branch. On Tue, Sep 17, 2013 at 7:02 AM, Lorenzo Di Gregorio lorenzo.digrego...@gmail.com wrote: Hi, I've just installed matplotlib 1.3.0 and run into the following error when using the home button of a figure(): Exception in Tkinter callback Traceback (most recent call last): File C:\Python27\lib\lib-tk\Tkinter.py, line 1410, in __call__ return self.func(*args) File C:\Python27\lib\site-packages\matplotlib\backend_bases.py, line 2745, in home self._update_view() File C:\Python27\lib\site-packages\matplotlib\backend_bases.py, line 3149, in _update_view self.draw_idle() AttributeError: 'NavigationToolbar2TkAgg' object has no attribute 'draw_idle' In fact NavigationToolbar2, inherited by NavigationToolbas2TkAgg, calls draw_idle(), in the update() method, but the definition of draw_idle() is missing, so this seems to be a bug. Best Regards, Lorenzo -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel -- Thomas A Caswell PhD Candidate University of Chicago Nagel and Gardel labs tcasw...@uchicago.edu jfi.uchicago.edu/~tcaswell o: 773.702.7204 -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Bug in 1.3.0: AttributeError: 'NavigationToolbar2TkAgg' object has no attribute 'draw_idle'
Yes, it does appear that the fix needs to be on 1.3.x as well. I'll cherry-pick it. In the meantime, Lorenzo, you can manually include the fix here: https://github.com/matplotlib/matplotlib/pull/2319 but this will make it into the 1.3.1 release. Mike On 09/17/2013 08:36 AM, Thomas A Caswell wrote: This is addressed on the master branch via #2319, but the commit where the problem was introduced is not included in 1.3.0, so I am not sure what is going on. Although, it does look like the fix should be cherry picked to the 1.3.x branch. On Tue, Sep 17, 2013 at 7:02 AM, Lorenzo Di Gregorio lorenzo.digrego...@gmail.com mailto:lorenzo.digrego...@gmail.com wrote: Hi, I've just installed matplotlib 1.3.0 and run into the following error when using the home button of a figure(): Exception in Tkinter callback Traceback (most recent call last): File C:\Python27\lib\lib-tk\Tkinter.py, line 1410, in __call__ return self.func(*args) File C:\Python27\lib\site-packages\matplotlib\backend_bases.py, line 2745, in home self._update_view() File C:\Python27\lib\site-packages\matplotlib\backend_bases.py, line 3149, in _update_view self.draw_idle() AttributeError: 'NavigationToolbar2TkAgg' object has no attribute 'draw_idle' In fact NavigationToolbar2, inherited by NavigationToolbas2TkAgg, calls draw_idle(), in the update() method, but the definition of draw_idle() is missing, so this seems to be a bug. Best Regards, Lorenzo -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net mailto:Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel -- Thomas A Caswell PhD Candidate University of Chicago Nagel and Gardel labs tcasw...@uchicago.edu mailto:tcasw...@uchicago.edu jfi.uchicago.edu/~tcaswell http://jfi.uchicago.edu/%7Etcaswell o: 773.702.7204 -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel -- _ |\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _ | ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | | http://www.droettboom.com -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] matplotlib 1.3.1
I think there's enough good bug fixes on 1.3.x now to warrant a 1.3.1 release. We have 6 blocker and 12 known bugs on that branch still. I hope to devote some time to triaging and closing as many of these as I can this week, and then maybe tagging a 1.3.1 release candidate early next week. As this is a bugfix release, I'm not feeling extremely strict about closing all known bugs tagged 1.3.x -- it's worth closing those we can, but anything more complex can wait so as not to delay getting out the mass of existing bugfixes already on the branch. Any thoughts? Mike -- _ |\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _ | ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | | http://www.droettboom.com -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] matplotlib 1.3.1
On 2013/09/17 3:03 AM, Michael Droettboom wrote: I think there's enough good bug fixes on 1.3.x now to warrant a 1.3.1 release. We have 6 blocker and 12 known bugs on that branch still. I hope to devote some time to triaging and closing as many of these as I can this week, and then maybe tagging a 1.3.1 release candidate early next week. As this is a bugfix release, I'm not feeling extremely strict about closing all known bugs tagged 1.3.x -- it's worth closing those we can, but anything more complex can wait so as not to delay getting out the mass of existing bugfixes already on the branch. Any thoughts? Sounds good to me. Eric Mike -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] master macosx backend broken?
When I build mpl from master on python.org python 2.7, Mountain Lion, and try to plot anything with the macosx backend, I am now getting an Apple crash--the plot window flashes up and vanishes, and a big OS X crash report window pops up. Ipython shows Trace/BPT trap: 5. I have never seen anything like this before. Building from 1.3.0 works fine. Is anyone else seeing this? Master is also broken, at least on my machine, with other backends. The suggested fix is https://github.com/matplotlib/matplotlib/pull/2431. Eric -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] matplotlib 1.3.1
On Tue, Sep 17, 2013 at 8:03 AM, Michael Droettboom md...@stsci.edu wrote: I think there's enough good bug fixes on 1.3.x now to warrant a 1.3.1 release. We have 6 blocker and 12 known bugs on that branch still. I hope to devote some time to triaging and closing as many of these as I can this week, and then maybe tagging a 1.3.1 release candidate early next week. As this is a bugfix release, I'm not feeling extremely strict about closing all known bugs tagged 1.3.x -- it's worth closing those we can, but anything more complex can wait so as not to delay getting out the mass of existing bugfixes already on the branch. Any thoughts? I like it! Mike -- _ |\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _ | ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | | http://www.droettboom.com -- Damon McDougall http://www.damon-is-a-geek.com Institute for Computational Engineering Sciences 201 E. 24th St. Stop C0200 The University of Texas at Austin Austin, TX 78712-1229 -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] master macosx backend broken?
On Tue, Sep 17, 2013 at 3:49 PM, Eric Firing efir...@hawaii.edu wrote: When I build mpl from master on python.org python 2.7, Mountain Lion, and try to plot anything with the macosx backend, I am now getting an Apple crash--the plot window flashes up and vanishes, and a big OS X crash report window pops up. Ipython shows Trace/BPT trap: 5. I have never seen anything like this before. Building from 1.3.0 works fine. Is anyone else seeing this? Master is also broken, at least on my machine, with other backends. The suggested fix is https://github.com/matplotlib/matplotlib/pull/2431. Eric Building from master produces a broken build of matplotlib for me. After the build finishes, I get this warning from the linker: ld: warning: ignoring file /opt/local/lib/libfreetype.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/local/lib/libfreetype.dylib I don't know why it's compiling with -arch i386. It's also compiling with -arch x86_64. When I install matplotlib, this is what happens from an ipython terminal: In [1]: import matplotlib In [2]: print matplotlib.__version__ 1.4.x In [3]: matplotlib.use('macosx') In [4]: import matplotlib.pyplot as plt In [5]: fig = plt.figure() In [6]: ax = fig.add_subplot(1, 1, 1) In [7]: ax.plot([1, 2, 3]) Out[7]: [matplotlib.lines.Line2D at 0x107523250] In [8]: plt.show() Trace/BPT trap: 5 git bisecting says that f4adec7b569cfd0b30e0f8367ba8618b9e160f92 is the first bad commit, which you can see the diff of herehttps://github.com/matplotlib/matplotlib/commit/f4adec7b569cfd0b30e0f8367ba8618b9e160f92. That's a pretty big commit so it'll take a while to track down. I'm kind of swamped with work right now (a colleague I work with recently resigned) so I don't have as much time as I'd like to dedicate to helping out. Eric, I hope that helps a little bit. Best wishes, Damon -- Damon McDougall http://www.damon-is-a-geek.com Institute for Computational Engineering Sciences 201 E. 24th St. Stop C0200 The University of Texas at Austin Austin, TX 78712-1229 -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] master macosx backend broken?
On Tue, Sep 17, 2013 at 8:55 PM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Tue, Sep 17, 2013 at 3:49 PM, Eric Firing efir...@hawaii.edu wrote: When I build mpl from master on python.org python 2.7, Mountain Lion, and try to plot anything with the macosx backend, I am now getting an Apple crash--the plot window flashes up and vanishes, and a big OS X crash report window pops up. Ipython shows Trace/BPT trap: 5. I have never seen anything like this before. Building from 1.3.0 works fine. Is anyone else seeing this? Master is also broken, at least on my machine, with other backends. The suggested fix is https://github.com/matplotlib/matplotlib/pull/2431. Eric Building from master produces a broken build of matplotlib for me. After the build finishes, I get this warning from the linker: ld: warning: ignoring file /opt/local/lib/libfreetype.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/local/lib/libfreetype.dylib I don't know why it's compiling with -arch i386. It's also compiling with -arch x86_64. When I install matplotlib, this is what happens from an ipython terminal: In [1]: import matplotlib In [2]: print matplotlib.__version__ 1.4.x In [3]: matplotlib.use('macosx') In [4]: import matplotlib.pyplot as plt In [5]: fig = plt.figure() In [6]: ax = fig.add_subplot(1, 1, 1) In [7]: ax.plot([1, 2, 3]) Out[7]: [matplotlib.lines.Line2D at 0x107523250] In [8]: plt.show() Trace/BPT trap: 5 git bisecting says that f4adec7b569cfd0b30e0f8367ba8618b9e160f92 is the first bad commit, which you can see the diff of herehttps://github.com/matplotlib/matplotlib/commit/f4adec7b569cfd0b30e0f8367ba8618b9e160f92. That's a pretty big commit so it'll take a while to track down. I'm kind of swamped with work right now (a colleague I work with recently resigned) so I don't have as much time as I'd like to dedicate to helping out. Eric, I hope that helps a little bit. Best wishes, Damon -- Damon McDougall http://www.damon-is-a-geek.com Institute for Computational Engineering Sciences 201 E. 24th St. Stop C0200 The University of Texas at Austin Austin, TX 78712-1229 Oh, and I get the linker warning both with last good commit, *and* the first bad commit. Just as another data point. -- Damon McDougall http://www.damon-is-a-geek.com Institute for Computational Engineering Sciences 201 E. 24th St. Stop C0200 The University of Texas at Austin Austin, TX 78712-1229 -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel