Re: [matplotlib-devel] Selecting WX2.8 causes problems on wx 2.8.4

2009-05-14 Thread Tony Yu

I hope you don't mind if I bump this.

I'm curious if Eric, or any others from the following thread had a  
comment on this issue:

http://www.nabble.com/Selecting-WX2.8-in-examples-td22380586.html

I don't mind upgrading if that's what's required, but I was just  
wondering if this issue was an intended result of the patch.


Best,
-Tony


On May 8, 2009, at 8:46 PM, Tony S Yu wrote:


I'm running into the following error with the wx backend


import wx
import matplotlib.backends.backend_wxagg

Traceback (most recent call last):
 File "", line 1, in 
 File "/Users/Tony/python/matplotlib/trunk/matplotlib/lib/
matplotlib/backends/backend_wxagg.py", line 23, in 
   import backend_wx# already uses wxversion.ensureMinimal('2.8')
 File "/Users/Tony/python/matplotlib/trunk/matplotlib/lib/
matplotlib/backends/backend_wx.py", line 120, in 
   except wxversion.AlreadyImportedError:
AttributeError: 'module' object has no attribute
'AlreadyImportedError'


This problem seems to be related to additions made here:
http://www.nabble.com/Selecting-WX2.8-in-examples-td22380586.html

The problem is that my version of wxversion raises 'VersionError'
instead of 'AlreadyImportedError'.

I'm running wxPython 2.8.4.0 while people in the above thread seem to
be using at least 2.8.7.1. Do I need to upgrade, or is this a bug?

Thanks,
-Tony

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances!  
Your
production scanning environment may not be a perfect world - but  
thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW  
KODAK i700

Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel







--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Selecting WX2.8 causes problems on wx 2.8.4

2009-05-14 Thread Eric Firing
Tony Yu wrote:
> I hope you don't mind if I bump this.
> 
> I'm curious if Eric, or any others from the following thread had a 
> comment on this issue:
> http://www.nabble.com/Selecting-WX2.8-in-examples-td22380586.html
> 
> I don't mind upgrading if that's what's required, but I was just 
> wondering if this issue was an intended result of the patch.

Tony,

No, it certainly wasn't.

As for upgrading, it looks to me like you don't need to upgrade 
wxpython, just wxversion, which is a single independent file.

I don't know whether wxversion is always packaged with a wxpython 
itself, or whether it is distributed separately.

I don't see any decent workaround.  We can't just catch VersionError 
instead of AlreadyImportedError because that would defeat the purpose. 
It looks to me like upgrading wxversion is the only option, unless 
someone with wx expertise wants to plunge in and figure out a better 
solution.  The only other thing I can think of would be for mpl to 
include its own copy of wxversion.  I would prefer not to clutter mpl 
that way--it would be just one more obscure thing to maintain.

Eric

> 
> Best,
> -Tony
> 
> 
> On May 8, 2009, at 8:46 PM, Tony S Yu wrote:
> 
>> I'm running into the following error with the wx backend
>>
>> import wx
>> import matplotlib.backends.backend_wxagg
>>> Traceback (most recent call last):
>>>  File "", line 1, in 
>>>  File "/Users/Tony/python/matplotlib/trunk/matplotlib/lib/
>>> matplotlib/backends/backend_wxagg.py", line 23, in 
>>>import backend_wx# already uses wxversion.ensureMinimal('2.8')
>>>  File "/Users/Tony/python/matplotlib/trunk/matplotlib/lib/
>>> matplotlib/backends/backend_wx.py", line 120, in 
>>>except wxversion.AlreadyImportedError:
>>> AttributeError: 'module' object has no attribute  
>>> 'AlreadyImportedError'
>>
>> This problem seems to be related to additions made here:
>> http://www.nabble.com/Selecting-WX2.8-in-examples-td22380586.html
>>
>> The problem is that my version of wxversion raises 'VersionError'  
>> instead of 'AlreadyImportedError'.
>>
>> I'm running wxPython 2.8.4.0 while people in the above thread seem to  
>> be using at least 2.8.7.1. Do I need to upgrade, or is this a bug?
>>
>> Thanks,
>> -Tony
>>
>> --
>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
>> production scanning environment may not be a perfect world - but thanks to
>> Kodak, there's a perfect scanner to get the job done! With the NEW 
>> KODAK i700
>> Series Scanner you'll get full speed at 300 dpi even with all image
>> processing features enabled. http://p.sf.net/sfu/kodak-com
>> ___
>> Matplotlib-devel mailing list
>> Matplotlib-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 
> 
> 
> 


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Selecting WX2.8 causes problems on wx 2.8.4

2009-05-14 Thread Tony Yu
I just downloaded wxversion.py from the wxPython trunk and everything  
seems to working fine. Thanks for your help!


-T

On May 14, 2009, at 1:27 PM, Eric Firing wrote:


Tony Yu wrote:

I hope you don't mind if I bump this.
I'm curious if Eric, or any others from the following thread had a  
comment on this issue:

http://www.nabble.com/Selecting-WX2.8-in-examples-td22380586.html
I don't mind upgrading if that's what's required, but I was just  
wondering if this issue was an intended result of the patch.


Tony,

No, it certainly wasn't.

As for upgrading, it looks to me like you don't need to upgrade  
wxpython, just wxversion, which is a single independent file.


I don't know whether wxversion is always packaged with a wxpython  
itself, or whether it is distributed separately.


I don't see any decent workaround.  We can't just catch VersionError  
instead of AlreadyImportedError because that would defeat the  
purpose. It looks to me like upgrading wxversion is the only option,  
unless someone with wx expertise wants to plunge in and figure out a  
better solution.  The only other thing I can think of would be for  
mpl to include its own copy of wxversion.  I would prefer not to  
clutter mpl that way--it would be just one more obscure thing to  
maintain.


Eric


Best,
-Tony
On May 8, 2009, at 8:46 PM, Tony S Yu wrote:

I'm running into the following error with the wx backend


import wx
import matplotlib.backends.backend_wxagg

Traceback (most recent call last):
File "", line 1, in 
File "/Users/Tony/python/matplotlib/trunk/matplotlib/lib/
matplotlib/backends/backend_wxagg.py", line 23, in 
  import backend_wx# already uses  
wxversion.ensureMinimal('2.8')

File "/Users/Tony/python/matplotlib/trunk/matplotlib/lib/
matplotlib/backends/backend_wx.py", line 120, in 
  except wxversion.AlreadyImportedError:
AttributeError: 'module' object has no attribute   
'AlreadyImportedError'


This problem seems to be related to additions made here:
http://www.nabble.com/Selecting-WX2.8-in-examples-td22380586.html

The problem is that my version of wxversion raises 'VersionError'   
instead of 'AlreadyImportedError'.


I'm running wxPython 2.8.4.0 while people in the above thread seem  
to  be using at least 2.8.7.1. Do I need to upgrade, or is this a  
bug?


Thanks,
-Tony

--
The NEW KODAK i700 Series Scanners deliver under ANY  
circumstances! Your
production scanning environment may not be a perfect world - but  
thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW  
KODAK i700

Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel





Tony S Yu
PhD Candidate
Hatsopoulos Microfluids Laboratory

email: tsy...@gmail.com
office: 617.324.0128




--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel