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:
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.
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.
On May 8, 2009, at 8:46 PM, Tony S Yu wrote:
I'm running into the following error with the wx backend
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
matplotlib/backends/backend_wxagg.py", line 23, in <module>
import backend_wx # already uses wxversion.ensureMinimal('2.8')
matplotlib/backends/backend_wx.py", line 120, in <module>
AttributeError: 'module' object has no attribute 'AlreadyImportedError'
This problem seems to be related to additions made here:
The problem is that my version of wxversion raises 'VersionError' instead of 'AlreadyImportedError'.
I'm running wxPython 188.8.131.52 while people in the above thread seem to be using at least 184.108.40.206. Do I need to upgrade, or is this a bug?
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