From cb92e314f1f7014c33cc85026dce11d5fbae82e5 Mon Sep 17 00:00:00 2001 From: Eric Firing Date: Mon, 21 May 2012 16:41:53 -1000 Subject: [PATCH] Add wxversion-specific error message. Closes #885. --- lib/matplotlib/backends/backend_wx.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/backend_wx.py b/lib/matplotlib/backends/backend_wx.py index 7b0e4bef9b81..071a25f8ab7d 100644 --- a/lib/matplotlib/backends/backend_wx.py +++ b/lib/matplotlib/backends/backend_wx.py @@ -37,12 +37,14 @@ _DEBUG_lvls = {1 : 'Low ', 2 : 'Med ', 3 : 'High', 4 : 'Error' } missingwx = "Matplotlib backend_wx and backend_wxagg require wxPython >=2.8" +missingwxversion = ("Matplotlib backend_wx and backend_wxagg " + "require wxversion, which was not found.") if not hasattr(sys, 'frozen'): # i.e., not py2exe try: import wxversion except ImportError: - raise ImportError(missingwx) + raise ImportError(missingwxversion) # Some early versions of wxversion lack AlreadyImportedError. # It was added around 2.8.4?