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/matplotlib/backends/backend_wx.py >>> =================================================================== >>> --- lib/matplotlib/backends/backend_wx.py (revision 7250) >>> +++ lib/matplotlib/backends/backend_wx.py (working copy) >>> @@ -117,7 +117,7 @@ >>> try: >>> wxversion.ensureMinimal('2.8') >>> -except wxversion.AlreadyImportedError: >>> +except wxversion.VersionError: >>> pass >>> try: >> No, that is not a good solution: >> http://www.mail-archive.com/matplotlib-devel@lists.sourceforge.net/msg05003.html > > 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 person reporting this problem so far is Tony Yu. I am now on jaunty, and my wxversion has AlreadyImportedError. What version of ubuntu are you using, and what is the full wx version that it includes? > > It seems wrong for me to require the users to upgrade wxversion while > there is a solution that works, eventhough it may not be exactly what you > want. The solution you propose doesn't work. It completely defeats the version check. > > One solution is to do bugware with hasattr(wxversion, 'AlreadyImportedError') Committed to svn. Please check it. Eric > > Gaƫl > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel