SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

From: John H. <jd...@gm...> - 2009年07月11日 17:38:24
On Fri, Jul 10, 2009 at 4:33 PM, Eric Firing<ef...@ha...> wrote:
> Gael Varoquaux wrote:
>> On Fri, Jul 10, 2009 at 11:05:24PM +0200, Gael Varoquaux wrote:
>>>> Committed to svn. Please check it.
>>
>>> Certainly does work betters.
>>
>> Actually, I beg your pardon, but it does not really work: if you have
>> 2.6 and 2.8 installed, it will still import 2.6, which is not what you
>> want.
>>
>> Here is a patch that works a bit better: it does import 2.8 even when 2.6
>> is installed:
>
> Committed, thank you.
I just updated mpl from svn and now get
y:126: UserWarning: Update your wxversion.py to one including
AlreadyImportedError
 "Update your wxversion.py to one including AlreadyImportedError")
backend WXAgg version 2.8.3.0
If I can speak for the typical user, these kinds of warnings are
usually annoying and not that helpful. I am a naive wx user -- I
installed it many moons ago from a binary when I installed python and
haven't thought about it since. I don't know what wxversion is or how
to upgrade it. All I know is mpl was working fine, still works fine,
and now generates an annoying warning. So I am not sure this is
progress, but may help someone who has a complicated wx setup avoid
difficult to trackdown bug. So I would prefer to silence this, but
am not sure what the right solution is. Here is my wx installation
In [6]: wx.__version__
Out[6]: '2.8.3.0'
In [7]: !ls -ld
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx*
drwxrwxr-x 5 root admin 170 Mar 22 2007
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode
-rw-r--r-- 1 root admin 18 Mar 22 2007
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx.pth
-rw-r--r-- 1 root admin 1266 Mar 22 2007
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wxPython_common-2.8.3.0-py2.5.egg-info
drwxr-xr-x 5 root admin 170 Mar 22 2007
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wxaddons
-rw-r--r-- 1 root admin 1259 Mar 22 2007
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wxaddons-2.8.3.0-py2.5.egg-info
-rw-r--r-- 1 root admin 17809 Mar 16 2006
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wxversion.py
-rw-r--r-- 1 jdhunter admin 15750 Mar 23 20:28
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wxversion.pyc
JDH

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /