SourceForge logo
SourceForge logo
Menu

matplotlib-checkins — Commit notification. DO NOT POST to this list, just subscribe to it.

You can subscribe to this list here.

2007 Jan
Feb
Mar
Apr
May
Jun
Jul
(115)
Aug
(120)
Sep
(137)
Oct
(170)
Nov
(461)
Dec
(263)
2008 Jan
(120)
Feb
(74)
Mar
(35)
Apr
(74)
May
(245)
Jun
(356)
Jul
(240)
Aug
(115)
Sep
(78)
Oct
(225)
Nov
(98)
Dec
(271)
2009 Jan
(132)
Feb
(84)
Mar
(74)
Apr
(56)
May
(90)
Jun
(79)
Jul
(83)
Aug
(296)
Sep
(214)
Oct
(76)
Nov
(82)
Dec
(66)
2010 Jan
(46)
Feb
(58)
Mar
(51)
Apr
(77)
May
(58)
Jun
(126)
Jul
(128)
Aug
(64)
Sep
(50)
Oct
(44)
Nov
(48)
Dec
(54)
2011 Jan
(68)
Feb
(52)
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
(1)
2018 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S



1
(2)
2
3
(1)
4
5
6
(1)
7
(1)
8
(1)
9
10
(2)
11
(5)
12
(1)
13
14
(4)
15
16
(2)
17
(5)
18
(1)
19
(3)
20
(2)
21
(5)
22
(6)
23
(6)
24
(1)
25
26
(2)
27
(5)
28
(3)
29
(4)
30
(3)
31
(17)

Showing 2 results of 2

Revision: 7252
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7252&view=rev
Author: efiring
Date: 2009年07月10日 21:32:27 +0000 (2009年7月10日)
Log Message:
-----------
Another fix for wxversion problem (thanks, Gael Varoquaux)
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/backends/backend_wx.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_wx.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_wx.py	2009年07月10日 19:41:12 UTC (rev 7251)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_wx.py	2009年07月10日 21:32:27 UTC (rev 7252)
@@ -124,6 +124,10 @@
 else:
 warnings.warn(
 "Update your wxversion.py to one including AlreadyImportedError")
+ try:
+ wxversion.ensureMinimal('2.8')
+ except wxversion.VersionError:
+ pass
 
 try:
 import wx
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 7251
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7251&view=rev
Author: efiring
Date: 2009年07月10日 19:41:12 +0000 (2009年7月10日)
Log Message:
-----------
Allow for broken wxversion in backend_wx
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/backends/backend_wx.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_wx.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_wx.py	2009年07月08日 21:15:46 UTC (rev 7250)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_wx.py	2009年07月10日 19:41:12 UTC (rev 7251)
@@ -115,10 +115,15 @@
 except ImportError:
 raise ImportError(missingwx)
 
-try:
- wxversion.ensureMinimal('2.8')
-except wxversion.AlreadyImportedError:
- pass
+# Some early versions of wxversion lack AlreadyImportedError.
+if hasattr(wxversion, 'AlreadyImportedError'):
+ try:
+ wxversion.ensureMinimal('2.8')
+ except wxversion.AlreadyImportedError:
+ pass
+else:
+ warnings.warn(
+ "Update your wxversion.py to one including AlreadyImportedError")
 
 try:
 import wx
@@ -126,6 +131,12 @@
 except ImportError:
 raise ImportError(missingwx)
 
+# Extra version check in case wxversion is broken:
+major, minor = [int(n) for n in backend_version.split('.')[:2]]
+if major < 2 or (major < 3 and minor < 8):
+ raise ImportError(missingwx)
+
+
 #!!! this is the call that is causing the exception swallowing !!!
 #wx.InitAllImageHandlers()
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Showing 2 results of 2

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 によって変換されたページ (->オリジナル) /