>>> - backend_wx does a wxPython version check which does not work when the >>> application is py2exe'd - tracker item 2858638 added and the above wiki page >>> also contains a work around/correction suggestion. >>> >> OK, we will take a look at this too. >> > Maybe instead of using "import wxversion" (I think its intent is for > developers having multiple versions installed) you might wnat to change > the code in backend_wx.py to use one of the following: > import wx > >>> wx.__version__ > '2.8.10.1' > >>> wx.version > <function version at 0x02BAEC30> > >>> wx.version() > '2.8.10.1 (msw-unicode)' > >>> wx.VERSION > (2, 8, 10, 1, '') > >>> wx.VERSION_STRING > '2.8.10.1' > > This way you don't use wxversion and the check will run in all situations.
I don't understand. You are correct that wxversion is used so that if multiple versions are installed, one that will work is the one that gets imported. This seems to be important functionality; it was added because people were having problems, and it seems to have solved those problems. It sounds like you are advocating going back to a simple version check. Instead, it looks to me like the best solution is the one you provided at the very bottom of http://www.py2exe.org/index.cgi/MatPlotLib. Eric ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users