|
From: Werner F. B. <wer...@fr...> - 2013-03-12 14:11:28
|
Hi, Did some more testing with the "http://matplotlib.org/examples/user_interfaces/embedding_in_wx5.html" example and see the same problem/crash. Attached the slightly adapted version of the script (using wxPython 2.9 and wx.App instead of wx.SimpleApp which is deprecated in 2.9) and the setup.py script I used to generated the py2exe'd version. The py2exe'd version works without problem on my Intel Core i5 but crashes on an AMD Athlon 2400+ equiped PC. Anyone has some tips, ideas on how to track this down? Best regards Werner On 11/03/2013 20:02, Werner F. Bruhin wrote: > Hi, > > Some time ago I tried to upgrade from an old version of mpl 0.99 to 1.0 > but couldn't get it to work with py2exe and running on a Athlon PC. > > I finally got around to upgrade things and have another go at this. > > I am now on: > Python 2.7 > Numpy 1.6.1 /arch nosse > mpl 1.2.0 > > I see a hard crash on the Athlon PC (i.e. no traceback and the MS Win > error "App encountered a problem, do you want to report to MS". > > Trying to narrow it down I don't think it has to do with numpy as I use > it elsewhere in the app together with wxPython/FloatCanvas without any > issue and when I track where the crash is happening with print > statements it happens on this line: > > print 'plot panel 1' > > # initialize matplotlib stuff > self.figure = mpl.figure.Figure(figsize=(5, 4), dpi=75, > facecolor='white', > edgecolor='white') > print 'plot panel 2' > > I still see the first print statement but not the second, my imports are > as follows: > > import matplotlib as mpl > mpl.use('WXAgg') > from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as > FigureCanvas > > I know I don't provide a lot of information (at least not yet), but has > anyone come across some similar crash with py2exe and mpl when one > creates a Figure? > > Any tips on how to further narrow this down or even better on what is > needed to fix it are very welcome. > > Best regards > Werner > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |