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/[email protected]/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.
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.
One solution is to do bugware with hasattr(wxversion, 'AlreadyImportedError')
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel